1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00
Commit Graph

57889 Commits

Author SHA1 Message Date
Dmitry Gutov
bb808526ae * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Extract `ruby-syntax-propertize-expansions'.
(ruby-syntax-propertize-expansions): Only change syntax on
certain string delimiters, to punctuation.  This way the common
functions like forward-word and thing-at-point still work.
(ruby-match-expression-expansion): Improve readability.
(ruby-block-contains-point): New function.
(ruby-add-log-current-method): Handle several edge cases.

* test/automated/ruby-mode-tests.el
Rename one interpolation test; add three more.
(ruby-with-temp-buffer): New macro, use it where appropriate.
(ruby-add-log-current-method-examples): Use "_" for target point.
Add four tests for ruby-add-log-current-method.
2012-12-14 10:58:15 +04:00
Dmitry Gutov
dbb530d988 * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Extract `ruby-syntax-propertize-expansions'.
(ruby-syntax-propertize-expansions): Only change syntax on
certain string delimiters, to punctuation.  This way the common
functions like forward-word and thing-at-point still work.

* test/automated/ruby-mode-tests.el
Rename one interpolation test; add three more.
2012-12-14 08:55:23 +04:00
Akinori MUSHA
fd1b1e2ed2 sieve-mode font-lock fix (tiny change)
* sieve-mode.el (sieve-font-lock-keywords): Keywords should be word delimited.

Fixes: debbugs:13173
2012-12-13 20:26:47 -08:00
Juanma Barranquero
ce0440ff96 lisp/emacs-lisp/edebug.el: Fix previous change.
(edebug-unload-function): Make sure that unload-feature finishes even when
aborting an ongoing edebug session.  Also, do not worry about edebug-mode,
unload-feature takes care of it.
2012-12-13 19:15:42 +01:00
Andreas Schwab
f10331bfe9 * net/tls.el (tls-program): Update customize type. 2012-12-13 10:48:54 +01:00
Juanma Barranquero
5f3a3bb1f5 lisp/emacs-lisp/edebug.el: Fix bug#13163.
(edebug--require-cl-read): New function.
(edebug-setup-hook, cl-read-load-hooks): Use it.
(edebug-unload-function): New function.
2012-12-13 10:45:54 +01:00
Michael Albinus
6ce2146306 * net/tramp-adb.el (tramp-adb-file-name-p): Make it a defsubst.
Otherwise, there could be errors in autoloading.  (Bug#13151)
2012-12-13 09:42:25 +01:00
Jürgen Hötzel
d754b364fa * net/tramp-adb.el (tramp-adb-wait-for-output): Remove spurious " ^H"
sequences.
2012-12-13 09:38:16 +01:00
Glenn Morris
727f973937 Merge from emacs-24; up to 2012-11-30T04:44:52Z!cyd@gnu.org 2012-12-12 21:29:15 -08:00
Stefan Monnier
eb8006c61f * lisp/emacs-lisp/cl.el (letf): Make it an alias of cl-letf.
(cl--symbol-function): Remove (now that funbound is like nil).
2012-12-12 20:46:47 -05:00
Katsumi Yamaoka
dd40b94746 gnus-start.el (gnus-before-resume-hook): Add :version 2012-12-13 00:52:17 +00:00
Glenn Morris
4c74b1e465 * lisp/button.el (button--area-button-p): Fix typo (defun is not defalias). 2012-12-12 17:39:29 -05:00
Katsumi Yamaoka
202c16d5f5 gnus.el (gnus-other-frame-resume-function): Add :version 2012-12-12 22:29:54 +00:00
Katsumi Yamaoka
5ea1a8d1ee gnus-art.el (gnus-article-browse-html-parts): Use <div align="left"> instead of <pre> to align message header 2012-12-12 22:22:31 +00:00
Bastien Guerry
63aa098259 Merge upstream Org (from commit 488eea) 2012-12-12 17:47:07 +01:00
Sam Steingold
d0efe6ec5b * lisp/gnus/gnus.el (gnus-other-frame-resume-function): Add user option.
(gnus-other-frame): Call `gnus-other-frame-resume-function' on resume.
2012-12-12 09:46:58 -05:00
Sam Steingold
37f38bca1d * lisp/frame.el (frame-maximization-style): New user option.
(toggle-frame-maximized): Toggle frame maximization according to
`frame-maximization-style', bound to <f11>.
(cycle-frame-maximized): Cycle between all maximization styles and
non-maximized frame, bound to shift-<f11>.
2012-12-12 09:43:45 -05:00
David Cadé
fd49a2185f * lisp/mpc.el (mpc-format): Use truncate-string-to-width.
Fixes: debbugs:13143
2012-12-12 09:42:03 -05:00
Jonas Bernoulli
69e1c203e9 * lisp/emacs-lisp/eieio.el: Prettier object pretty-printing.
(eieio-override-prin1): Don't quote kewords and booleans.
(object-write) <eieio-default-superclass>: Don't put closing parens
on new line, avoid needless empty lines, align values that are objects
with the slot keyword (instead of beginning on the same line).
(eieio-list-prin1): Align value with slot keyword; increase
eieio-print-depth before printing members of the list.

Fixes: debbugs:13115
2012-12-11 21:16:05 -05:00
Alan Mackenzie
14b8c3d926 Make CC Mode not hang when _some_ lines end in CRLF. Bug #11841.
cc-engine.el (c-backward-comments): Add code to work around
`forward-comment' not recognizing ^M as whitespace.
2012-12-11 19:06:57 +00:00
Stefan Monnier
030f4af55b * lisp/mail/emacsbug.el (report-emacs-bug): Move the intangible text to
a display text-property.
(report-emacs-bug-hook): Don't bother deleting it any more.
2012-12-11 13:52:31 -05:00
Stefan Monnier
6ac1f8ca03 * lisp/hilit-chg.el (highlight-save-buffer-state): Delete.
Use with-silent-modifications instead.
(hilit-chg-set-face-on-change): Only fixup the text that's modified.
2012-12-11 13:51:27 -05:00
Stefan Monnier
4b0df84832 * lisp/button.el: Handle buttons in display text-properties.
(button--area-button-p, button--area-button-string):
Use (STRING . STRING-POS) representation instead of just STRING.
2012-12-11 13:49:25 -05:00
Eli Zaretskii
d46d2d3a70 Fix a typo in lisp/makefile.w32-in.
See http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00288.html
for the details.

 lisp/makefile.w32-in (compile4-SH): Fix a typo that caused term
 subdirectory be skipped.
2012-12-11 09:49:06 +02:00
Fabián Ezequiel Gallina
2c43a9adb2 * progmodes/python.el (python-skeleton-class)
(python-skeleton-def): Do not add space after defun name.
2012-12-11 04:22:55 -03:00
Glenn Morris
36327e4ffc * lisp/net/rcirc.el (rcirc-urls, rcirc-condition-filter): Doc fixes. 2012-12-10 20:44:26 -08:00
Glenn Morris
a0099d31a6 Fix for indentation of f90 preproc lines embedded in continuations
* lisp/progmodes/f90.el (f90-line-continued, f90-indent-region):
Treat preprocessor lines embedded in continuations like comments.
(f90-indent-line): Special-case preprocessor lines. 

* test/automated/f90.el (f90-test-bug13138): New test.
2012-12-10 20:42:49 -08:00
Jay Belanger
8c21bef6d1 * lisp/calc/calc-forms.el (calc-date-notation): Fix typo. 2012-12-10 20:37:36 -06:00
Jay Belanger
ff3f6c266a * lisp/calc/calc.el (calc-standard-date-formats): Add more date
formats.

* lisp/calc/calc-forms.el (math-parse-iso-date): New function.
  (math-parse-date): Use `math-parse-iso-date' when appropriate.
  (math-parse-iso-date-validate): Add extra error checking.
  (calc-date-notation): Add ability to access new date formats.
2012-12-10 20:29:21 -06:00
Stefan Monnier
ed6f2cd47f * lisp/hi-lock.el (hi-lock--regexps-at-point): Fix boundary case for
font-lock as well as when there's no text-property.
2012-12-10 16:26:13 -05:00
Jambunathan K
c868b91923 * lisp/hi-lock.el: Refine the choice of default face.
(hi-lock-keyword->face): New function.  Use it wherever we used
cadadadr instead.
(hi-lock--regexps-at-point): Ignore faces that can't come from hi-lock.
(hi-lock--last-face): Remove var.
(hi-lock--unused-faces): New var to replace it.
(hi-lock-read-face-name): Use/maintain it.
(hi-lock-unface-buffer): Maintain it.  Fix error for the C-u case.
(hi-lock-set-pattern): Ignore new rule if it has the same regexp even
if it has another face.

Fixes: debbugs:11095
2012-12-10 13:33:59 -05:00
Eli Zaretskii
2b8c906403 Final cleanups and updated ChangeLog entries. 2012-12-10 15:25:17 +02:00
Eli Zaretskii
3907e630a7 Merge from trunk + rename the event. Not tested yet. 2012-12-10 14:08:02 +02:00
Rüdiger Sonderfeld
81606b1050 Support filesystem notification through inotify on GNU/Linux.
configure.ac (inotify): New option.
 (HAVE_INOTIFY): Test for inotify.

 src/termhooks.h (enum event_kind) [HAVE_INOTIFY]: Add
 FILE_NOTIFY_EVENT.
 src/lisp.h (syms_of_inotify) [HAVE_INOTIFY]: Add prototype.
 src/keyboard.c (Qfile_inotify) [HAVE_INOTIFY]: New variable.
 (syms_of_keyboard): DEFSYM it.
 (kbd_buffer_get_event) [HAVE_INOTIFY]: Generate FILE_NOTIFY_EVENT.
 (make_lispy_event): Support FILE_NOTIFY_EVENT by generating
 Qfile_inotify events.
 (keys_of_keyboard) [HAVE_INOTIFY]: Bind file-inotify events in
 special-event-map to inotify-handle-event.
 src/emacs.c (main) [HAVE_INOTIFY]: Call syms_of_inotify.
 src/Makefile.in (base_obj): Add inotify.o.
 src/inotify.c: New file.

 lisp/subr.el (inotify-event-p, inotify-handle-event): New functions.

 test/automated/inotify-test.el: New test.
2012-12-10 06:17:21 -05:00
Glenn Morris
265c2fbf11 Merge from emacs-24; up to 2012-11-26T19:56:14Z!monnier@iro.umontreal.ca 2012-12-09 18:00:42 -08:00
Stefan Monnier
bad162fd1b * lisp/emacs-lisp/cl-lib.el (cl-declaim): Paren typo. 2012-12-09 20:32:36 -05:00
Eli Zaretskii
ca065258cc Parallelize byte compilation on MS-Windows.
lisp/makefile.w32-in (WINS_BASIC1, WINS_BASIC2, WINS_BASIC3)
 (WINS_BASIC4): New variables, subdivide subdirectories into 4
 parts.
 (WINS_BASIC): Define as concatenation of the above.
 (compile): Subdivide into 4 separate and independent jobs that can
 be run in parallel.
 (compile0-CMD, compile0-SH): New targets for compiling
 COMPILE_FIRST files, which are prerequisites for the rest of the
 byte-compilation.
 (compile1-CMD, compile2-CMD, compile3-CMD, compile4-CMD): New
 targets for parallel compilation with cmd.exe.
 (compile1-SH, compile2-SH, compile3-SH, compile4-SH): Ditto for
 compiling under a Unixy shell.
2012-12-09 23:32:12 +02:00
Chong Yidong
2c066ad3ae * simple.el (set-mark-default-inactive): Mark for removal after 24.3. 2012-12-09 11:44:59 +08:00
Chong Yidong
5dea55d2fa * simple.el (set-mark-default-inactive): Delete accidentally-introduced option.
(set-mark-command, exchange-point-and-mark): Remove calls.
2012-12-09 11:40:09 +08:00
Glenn Morris
c6c08d3f8f Make eval-defun on a pre-defined defcustom call any :set function
* lisp/emacs-lisp/lisp-mode.el (eval-defun-1): Doc fix.
Respect a defcustom's :set function, if appropriate. 
(eval-defun): Doc fix.

* doc/lispref/customize.texi (Variable Definitions): Mention eval-defun
on a defcustom calls the :set function when appropriate.

* etc/NEWS: Mention this.

Fixes: debbugs:109
2012-12-08 17:04:43 -08:00
Juri Linkov
858aab4c02 * lisp/info.el (Info-copy-current-node-name, Info-breadcrumbs)
(Info-fontify-node, Info-bookmark-make-record): Remove the
file extension from Info-current-file.

Fixes: debbugs:13016
2012-12-09 01:12:08 +02:00
Dani Moncayo
6ce49f2459 * lisp/simple.el (just-one-space): Doc fix.
* doc/emacs/killing.texi (Deletion): Doc fix.

Fixes: debbugs:12748
2012-12-08 11:25:28 +08:00
Stefan Monnier
2e4ad7e5a4 * lisp/hi-lock.el (hi-lock-unface-buffer): If there's no matching regexp at
point, still provide some default.
(hi-lock--regexps-at-point): Don't enforce a "hi-lock-" prefix on face
names, since we don't use it right now.  Actually return the list.
(hi-lock-file-patterns, hi-lock-interactive-patterns): Use defvar-local.
2012-12-07 11:48:42 -05:00
Chong Yidong
ffe7ba8f15 * novice.el (disabled-command-function): Remove a spurious help xref.
Suggested by Kelly Dean.

Fixes: debbugs:13043
2012-12-08 00:34:01 +08:00
Chong Yidong
454eb09524 * subr.el (text-clone-maintain): Fix clone overlay deletion
when a syntax is specified.

Fixes: debbugs:13025
2012-12-08 00:25:28 +08:00
Eli Zaretskii
8d43bd3023 Fix insertion of " inside @smallexample.
lisp/textmodes/texinfo.el (texinfo-enable-quote-envs): Add "smallexample".
2012-12-07 17:52:40 +02:00
Chong Yidong
75498db059 * info.el (Info-set-mode-line): Remove file extension from Info-current-file
if there is one.

Fixes: debbugs:13016
2012-12-07 23:31:43 +08:00
Glenn Morris
3f1071c747 Auto-commit of loaddefs files. 2012-12-07 06:19:45 -05:00
Glenn Morris
54c8b5baf1 rmail-cease-edit fixes related to "^From " escaping
* mail/rmail.el (rmail-mime-decoded): New permanent local.
(rmail-show-message-1): Set rmail-mime-decoded when appropriate.
* mail/rmailedit.el (rmail-cease-edit): Respect rmail-mbox-format
and rmail-mime-decoded.

Fixes: debbugs:9841
2012-12-07 00:59:14 -08:00
Le Wang
3a21537c13 * lisp/hilit-chg.el (hilit-chg-set-face-on-change): Don't burp in
narrowed buffer.

Fixes: debbugs:12361
2012-12-07 00:00:04 -05:00
Glenn Morris
8e0762cade Fix :type in previous (un)rmail change, use a better :group 2012-12-06 20:57:43 -08:00
Glenn Morris
13a40633cf Default to mboxrd in Rmail, allow mboxo as an option
* lisp/mail/unrmail.el (unrmail-mbox-format): New option. 
(batch-unrmail, unrmail): Doc fixes.
(unrmail): Respect unrmail-mbox-format.
* lisp/mail/rmail.el (rmail-mbox-format): New option.
(rmail-show-message-1): Respect rmail-mbox-format.

* etc/NEWS: Related edits.

Fixes: debbugs:6574
2012-12-06 20:37:14 -08:00
Michael Heerdegen
610251116c * lisp/emacs-lisp/debug.el (debug): Fix hard-coded frame counts.
Virtually backported from trunk.

Fixes: debbugs:10025
2012-12-06 23:31:24 -05:00
Stefan Monnier
4611a3cce7 * lisp/emacs-lisp/cl-macs.el (cl-tagbody): New macro. 2012-12-06 22:56:57 -05:00
Juanma Barranquero
bf741d337c lisp/vc/vc-hooks.el (vc-state): Doc fix. 2012-12-07 04:55:40 +01:00
Paul Eggert
f24f2e22aa Spelling fixes. 2012-12-06 18:37:20 -08:00
Glenn Morris
0702616647 Further rmail.el fix for bug#13066
* lisp/mail/rmail.el (rmail-maybe-display-summary):
Preserve buffer, in case select-window changes it.
2012-12-06 16:41:32 -05:00
Stefan Monnier
338bfefacb Further cleanup of the "cl-" namespace. Fit CL in 80 columns.
* lisp/emacs-lisp/cl-macs.el (cl--pop2, cl--optimize-safety)
(cl--optimize-speed, cl--not-toplevel, cl--parse-loop-clause)
(cl--expand-do-loop, cl--proclaim-history, cl--declare-stack)
(cl--do-proclaim, cl--proclaims-deferred): Rename from the "cl-" prefix.
(cl-progv): Don't rely on dynamic scoping to find the body.
* lisp/emacs-lisp/cl-lib.el (cl--optimize-speed, cl--optimize-safety)
(cl--proclaims-deferred): Rename from the "cl-" prefix.
(cl-declaim): Use backquotes.
* lisp/emacs-lisp/cl-extra.el (cl-make-random-state, cl-random-state-p):
Use "cl--" prefix for the object's tag.
2012-12-06 16:29:29 -05:00
Stefan Monnier
82e1f390ab * lisp/emacs-lisp/cl.el, lisp/emacs-lisp/cl-lib.el: Move cl-unload-function and
cl-load-hook where they belong.
2012-12-06 16:08:50 -05:00
Stefan Monnier
1812c7246e * lisp/ses.el: Use advice-add/remove.
(ses--advice-copy-region-as-kill, ses--advice-yank): New functions.
(copy-region-as-kill, yank): Use advice-add.
(ses-unload-function): Use advice-remove.
2012-12-06 15:16:38 -05:00
Jonas Bernoulli
24fc948039 * lisp/button.el: Make them work in header-lines.
(button-map): Add bindings for header-line and mode-line use.
(button-get, button-put, button-label): `button' may now be a string.
(button-activate): Don't make it a defsubst.
(button--area-button-p, button--area-button-string): New functions.
(make-text-button): Fix the return value when `beg' was a string.
(push-button): Handle the mode-line case.

Fixes: debbugs:12817
2012-12-06 15:10:36 -05:00
Sam Steingold
5b4d7e523f * lisp/gnus/gnus-start.el (gnus-before-resume-hook): Add.
(gnus-1): Run it when Gnus is alive.
2012-12-06 13:30:38 -05:00
Stefan Monnier
93852cb0cf * lisp/progmodes/sql.el: Use cl-lib and lexical-binding; various cleanup.
(sql-signum): Remove.  Use `cl-signum' instead.
(sql-read-passwd): Remove; use read-passwd instread.
(sql-get-login-ext): Use read-string.
(sql-get-login): Use dolist and pcase.
(sql--completion-table): Rename from sql-try-completion.
Use complete-with-action.
(sql-mode): Don't change abbrev-all-caps globally.
(sql-connect): Don't rely on dynamic scoping for `new-name'.
(sql-postgres-completion-object): Initialize vars in their `let'.
(sql-comint-sybase, sql-comint-sqlite, sql-comint-mysql)
(sql-comint-solid, sql-comint-ms, sql-comint-postgres)
(sql-comint-interbase): Use a single append, without setq.
(sql-comint-linter): Same, and unwind-protect the LINTER_MBX var.
2012-12-06 12:29:30 -05:00
Stefan Monnier
853c1ffc03 * lisp/hi-lock.el: Rework the default face and the serialize regexp code.
(hi-lock--auto-select-face-defaults): Remove.
(hi-lock-string-serialize-serial): Remove.
(hi-lock--hashcons-hash): Rename from hi-lock-string-serialize-hash;
make weak.
(hi-lock--hashcons): Rename from hi-lock-string-serialize, return an
equal string.
(hi-lock-set-pattern): Adjust accordingly.
(hi-lock--regexps-at-point): Simplify accordingly.
(hi-lock--auto-select-face-defaults): Remove.
(hi-lock--last-face): New var to replace it.
(hi-lock-read-face-name): Rewrite.
(hi-lock-unface-buffer): Arrange for the face to be the next default.

Fixes: debbugs:11095
2012-12-06 11:17:11 -05:00
Glenn Morris
347966bf30 Auto-commit of loaddefs files. 2012-12-06 06:21:08 -05:00
Michael Albinus
5504e2c7ec * net/tramp.el (tramp-replace-environment-variables): Hide
compiler warning.
(tramp-file-name-for-operation): Remove `executable-find',
`start-process', `call-process' and `call-process-region'.

* net/tramp-compat.el (top): Don't require 'tramp-util and 'tramp-vc.

* net/tramp-gvfs.el (tramp-gvfs-dbus-event-error): Ensure backward
compatibility.

* net/tramp-sh.el (top): Remove `tramp-sh-handle-call-process-region'.
2012-12-06 10:15:27 +01:00
Glenn Morris
7fc5e83f7f Convert consecutive copyright years to range 2012-12-05 23:33:20 -08:00
Glenn Morris
d8ad4d3ff9 Merge from emacs-24; up to 2012-11-24T16:58:43Z!cyd@gnu.org 2012-12-05 22:17:10 -08:00
Katsumi Yamaoka
b7f3003fdd spam.el: Fix last change 2012-12-06 04:37:54 +00:00
Katsumi Yamaoka
da9462398a gmm-utils.el (gmm-called-interactively-p): Restore as a macro.
gnus-art.el (article-unsplit-urls)
gnus-bookmark.el (gnus-bookmark-bmenu-list)
gnus-registry.el (gnus-registry-get-article-marks)
message.el (message-goto-body): Use it.
  (message-called-interactively-p): Remove.

spam-stat.el (spam-stat-called-interactively-p): New macro.
  (spam-stat-score-buffer): Use it.

spam.el: Silence the warnings against BBDB functions when compiling.

gnus-score.el (gnus-score-decode-text-parts):
  Use append+mapcar instead of the cl function mapcan.
2012-12-06 04:28:00 +00:00
Katsumi Yamaoka
9ad948e2fd Avoid letf macro use from Gnus
gnus/gmm-utils.el (gmm-flet): Remove.
gnus/gnus-sync.el (gnus-sync-lesync-call): Avoid overriding json-alist-p.
gnus/message.el (message-read-from-minibuffer): Avoid overriding mail-abbrev-in-expansion-header-p.
mail/mailabbrev.el (mail-abbrev-expand-wrapper): Work in minibuffer so as to enable message-read-from-minibuffer to expand mail aliases.
2012-12-06 03:30:23 +00:00
Chong Yidong
e1d51545ce * ffap.el (ffap-replace-file-component): Fix typo. 2012-12-06 11:04:21 +08:00
Stefan Monnier
4b5c89eefe * lisp/minibuf-eldef.el (minibuf-eldef-update-minibuffer): Don't mess with
the `intangible' property.
Suggested by Christopher Schmidt <christopher@ch.ristopher.com>
2012-12-05 20:39:03 -05:00
Sam Steingold
ffcee8d7c4 * lisp/gnus/gnus.el (gnus-delete-gnus-frame): Extract from `gnus-other-frame'.
(gnus-other-frame): Add `gnus-delete-gnus-frame' to
`gnus-suspend-gnus-hook' in addition to `gnus-exit-gnus-hook'.
2012-12-05 13:13:38 -05:00
Deniz Dogan
5602a53a2c * lisp/net/rcirc.el (rcirc-urls): Update documentation.
(rcirc-condition-filter): New function.
(rcirc-browse-url, rcirc-markup-urls): Use only URLs before point
and exclude consecutive duplicate URLs.

Fixes: debbugs:6082
2012-12-05 17:45:37 +01:00
Michael Albinus
82176fcdeb * tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Check error
code also on MS-Windows machines.
2012-12-05 16:50:32 +01:00
Michael Albinus
d5f97f6295 * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Check return code of copy command.
2012-12-05 15:06:06 +01:00
Glenn Morris
4038c7a2fd Auto-commit of loaddefs files. 2012-12-05 07:20:55 -05:00
Katsumi Yamaoka
aa7e16fc84 lisp/gnus/ChangeLog: Fix typo 2012-12-05 10:29:31 +00:00
Katsumi Yamaoka
299a66e982 gmm-utils.el (gmm-called-interactively-p): Revert. This seems to causes Emacs to get stuck! 2012-12-05 10:27:16 +00:00
Michael Albinus
51b890acbf * net/tramp-adb.el (tramp-adb-sdk-dir, tramp-adb-prompt): Use
group `tramp'.  Add version.
2012-12-05 11:09:54 +01:00
Katsumi Yamaoka
ad6fe94df2 gmm-utils.el (gmm-called-interactively-p): New function.
gnus-art.el (article-unsplit-urls)
gnus-bookmark.el (gnus-bookmark-bmenu-list)
gnus-registry.el (gnus-registry-get-article-marks)
message.el (message-goto-body): Use it.
  (message-called-interactively-p): Remove.
2012-12-05 09:24:27 +00:00
Chong Yidong
a368019460 Improve url matching in ffap.el.
* ffap.el (ffap-url-regexp): Don't require matching at front of string.
(ffap-url-p): If only a substring matches, return that.
(ffap-url-at-point): Use the return value of ffap-url-p.
(ffap-read-file-or-url, ffap-read-file-or-url-internal)
(find-file-at-point, dired-at-point, dired-at-point-prompter)
(ffap-guess-file-name-at-point): Likewise.
(ffap-replace-file-component): Fix typo.

Fixes: debbugs:4952
2012-12-05 15:29:02 +08:00
Chong Yidong
04b14f2b27 Improve completion behavior of info-display-manual.
* lisp/info.el (info-display-manual): Add existing Info buffers, whose
files may not be in Info-directory-list, to the completion.
(info--manual-names): New helper function.
2012-12-05 14:14:11 +08:00
Stefan Monnier
ef54d315e8 * lisp/progmodes/octave-mod.el (octave-mark-block): Move out of tokens and
fix open-paren-like token test.

Fixes: debbugs:12785
2012-12-05 00:30:58 -05:00
Katsumi Yamaoka
066f0e09bc gmm-util.el: Re-introduce gmm-flet using cl-letf 2012-12-05 02:26:15 +00:00
Glenn Morris
49596095d0 Add conflict detection/resolution to vc-hg (bug#10709)
* lisp/vc/vc-hg.el (vc-hg-resolve-when-done, vc-hg-find-file-hook):
New functions, for detecting and resolving conflicts.
2012-12-04 20:49:31 -05:00
Katsumi Yamaoka
f2484dffa2 gmm-utils.el (gmm-labels): Doc fix 2012-12-05 00:18:23 +00:00
Katsumi Yamaoka
1191913260 gmm-utils.el (gmm-flet): Remove.
gnus-sync.el (gnus-sync-lesync-call)
message.el (message-read-from-minibuffer): Don't use it.
2012-12-05 00:13:56 +00:00
Katsumi Yamaoka
b2b049bc37 gmm-utils.el (gmm-labels): Dox fix 2012-12-04 23:33:24 +00:00
Katsumi Yamaoka
68c2d59da4 gmm-utils.el (gmm-labels): Use cl-labels if available 2012-12-04 23:24:24 +00:00
Jambunathan K
b85aec936c * lisp/hi-lock.el (hi-lock-auto-select-face): New user variable.
(hi-lock-auto-select-face-defaults): New buffer local variable.
(hi-lock-read-face-name): Honor `hi-lock-auto-select-face'.
(hi-lock-unface-buffer): Prompt user with useful defaults.
With prefix arg, unhighlight all hi-lock patterns in buffer.

Fixes: debbugs:11095
2012-12-04 16:13:47 -05:00
Glenn Morris
52d129cd62 rmail-new-summary fix for bug#13066
* lisp/mail/rmailsum.el (rmail-new-summary):
Tweak for rmail-maybe-display-summary changing buffer.
2012-12-04 13:08:01 -05:00
Stefan Monnier
8515507f1f * lisp/obsolete/terminal.el, lisp/obsolete/longlines.el: Add obsolecence info. 2012-12-04 12:04:01 -05:00
Michael Albinus
72cebfb7b1 * Makefile.in (TRAMP_SRC):
* makefile.w32-in (TRAMP_SRC): Add tramp-adb.el.
2012-12-04 17:56:04 +01:00
Juergen Hoetzel
0ec3f7ead1 * net/tramp-adb.el: New package. 2012-12-04 17:53:01 +01:00
Katsumi Yamaoka
46a2cc4470 gmm-utils.el (gmm-flet, gmm-labels): New macros.
gnus-sync.el (gnus-sync-lesync-call)
message.el (message-read-from-minibuffer): Use gmm-flet.
gnus-score.el (gnus-score-decode-text-parts): Use gmm-labels.
gnus-util.el (gnus-macroexpand-all): Remove.
2012-12-04 08:22:12 +00:00
Chong Yidong
ce3e7725b4 Obsolete terminal.el.
* terminal.el: Move to obsolete/.
2012-12-04 11:04:31 +08:00
Chong Yidong
770de7cf72 Obsolete longlines.el.
* longlines.el: Move to obsolete/.

* lisp/org/org-bibtex.el (org-bibtex-ask): Use visual-line-mode instead of
longlines-mode.

* lisp/vc/ediff-diff.el (ediff-extract-diffs, ediff-extract-diffs3):
Remove code referring to longlines mode.
2012-12-04 10:47:43 +08:00
Juri Linkov
c38a186c2e * lisp/sort.el (delete-duplicate-lines): New command.
Fixes: debbugs:13032
2012-12-04 01:49:08 +02:00
Juri Linkov
68bf4e0964 * lisp/info.el (Info-fontify-node): Don't hide the last newline.
Fixes: debbugs:12272
2012-12-04 01:38:56 +02:00
Katsumi Yamaoka
9320b007d5 gnus-sync.el (gnus-sync-newsrc-offsets): Add :version 2012-12-03 22:08:37 +00:00
Agustín Martín
475eea6f70 Fix my last Changelog entry. 2012-12-03 18:23:42 +01:00
Agustín Martín
214bd48163 ispell.el: Use expanded values of personal dictionary for process restart checks.
(ispell-internal-change-dictionary):
 Improve ispell process restart checks by using expanded values for ispell
  personal dictionary and for related restart check.

(ispell-start-process):
 * Remove apparently redundant code that seems better handled from
  (ispell-internal-change-dictionary)
 * No longer need to expand ispell personal dictionary, it is already
   expanded.

Fixes: debbugs:13019
2012-12-03 18:15:32 +01:00
Agustín Martín
329bfd64c2 ispell.el: Fix ispell personal dictionary name expansion.
textmodes/ispell.el (ispell-init-process, ispell-start-process): 
Make sure ispell personal dictionary name is expanded after initial
`default-directory' value (Bug#13019).
2012-12-03 17:08:23 +01:00
Chong Yidong
1c960c45ac * lisp/url/url-misc.el (url-do-terminal-emulator): Use make-term
instead of terminal-emulator.
2012-12-03 14:23:06 +08:00
Jay Belanger
77a7493589 * lisp/calc/calc-forms.el (math-date-to-iso-dt): Fix weekday number. 2012-12-02 22:46:49 -06:00
Glenn Morris
c5bc2d1d05 Merge from emacs-24; up to 2012-11-23T06:23:28Z!cyd@gnu.org 2012-12-02 17:08:31 -08:00
Jay Belanger
1bf3989cd4 * lisp/calc/calc-forms.el (math-date-to-iso-dt): Fix typo. 2012-12-02 19:05:08 -06:00
Jay Belanger
682ceaf895 * lisp/calc/calc-forms.el (math-absolute-from-iso-dt)
(math-date-to-iso-dt, math-parse-iso-date-validate)
(math-iso-dt-to-date): New functions.
(math-fd-iso-dt, math-fd-isoyear, math-fd-isoweek)
(math-fd-isoweekday): New variables.
(calc-date-notation, math-parse-standard-date, math-format-date)
(math-format-date-part): Add support for more formatting codes.
2012-12-02 18:54:11 -06:00
Dmitry Gutov
db47d5e975 * lisp/vc/vc.el (vc-delete-file, vc-rename-file): Default to the
current buffer's file name when called interactively.

Fixes: debbugs:12488
2012-12-03 01:12:31 +04:00
Andreas Schwab
061c322778 * gnus-sum.el (gnus-summary-mode-map): Bind gnus-summary-widget-forward
to TAB, not [tab].
(gnus-summary-article-map): Likewise.
2012-12-02 12:45:36 +01:00
Andreas Schwab
1e14f99eca * gnus-sync.el (gnus-sync-newsrc-offsets): Restore definition.
(gnus-sync-save): Use correct format for gnus-sync-newsrc-loader.
2012-12-02 11:55:08 +01:00
Juri Linkov
010db6da65 * info.el (info-display-manual): Add completion.
Fixes: debbugs:10771
2012-12-02 14:41:22 +08:00
Juri Linkov
3faf494431 * info.el (info-display-manual): Don't clobber an existing Info buffer.
Fixes: debbugs:10770
2012-12-02 14:22:32 +08:00
Leo Liu
ff3d86d099 * lisp/files.el (dir-locals-read-from-file): Check file non-empty
before reading.

Fixes: debbugs:13038
2012-12-01 23:45:38 +08:00
Yuya Nishihara
cb5d51dc07 Fix use of buffer-file-truename in vc-find-file-hook (tiny change).
* lisp/vc/vc-hooks.el (vc-find-file-hook): Expand buffer-file-truename
before using it for comparison.

Fixes: debbugs:5297
2012-12-01 21:25:13 +08:00
Glenn Morris
b9cf4db5c9 Auto-commit of loaddefs files. 2012-12-01 07:17:48 -05:00
Glenn Morris
ae067123d3 Auto-commit of loaddefs files. 2012-12-01 06:20:45 -05:00
Jari Aalto
f38cd76e55 Add `add-log-current-defun-function's for CSS and HTML mode.
* textmodes/css-mode.el (css-current-defun-name): New function.
(css-mode): Use it.

* textmodes/sgml-mode.el (html-current-defun-name): New function.
(html-mode): Use it.
2012-12-01 13:51:33 +08:00
Chong Yidong
9dffb5b693 Fix last change.
* emacs-lisp/lisp-mode.el (lisp-current-defun-name):
* progmodes/m4-mode.el (m4-current-defun-name):
* progmodes/perl-mode.el (perl-current-defun-name):
* textmodes/tex-mode.el (tex-current-defun-name):
* textmodes/texinfo.el (texinfo-current-defun-name): Use save-excursion.
2012-12-01 13:09:12 +08:00
Chong Yidong
ba03d0d932 Modularize add-log-current-defun.
Suggested by Jari Aalto.

* lisp/emacs-lisp/lisp-mode.el (lisp-current-defun-name): New.
(lisp-mode-variables): Use it.

* lisp/progmodes/cc-mode.el (c-common-init):
* lisp/progmodes/cperl-mode.el (cperl-mode): Set a value for
add-log-current-defun-function.

* lisp/progmodes/m4-mode.el (m4-current-defun-name): New function.
(m4-mode): Use it.

* lisp/progmodes/perl-mode.el (perl-current-defun-name): New.
(perl-mode): Use it.

* lisp/progmodes/scheme.el (scheme-mode-variables, dsssl-mode): Use
lisp-current-defun-name.

* lisp/textmodes/tex-mode.el (tex-current-defun-name): New.
(tex-common-initialization): Use it.

* lisp/textmodes/texinfo.el (texinfo-current-defun-name): New.
(texinfo-mode): Use it.

* lisp/vc/add-log.el (add-log-current-defun-function): Doc fix.
(add-log-current-defun): Move mode-specific code to other files.
(add-log-lisp-like-modes, add-log-c-like-modes)
(add-log-tex-like-modes): Variables deleted.

Fixes: debbugs:2224
2012-12-01 12:57:07 +08:00
Chong Yidong
92eadba57f Convert several major modes to setq-local.
* emacs-lisp/lisp-mode.el (lisp-mode-variables, lisp-mode):
* progmodes/autoconf.el (autoconf-mode):
* progmodes/js.el (js-mode):
* progmodes/make-mode.el (makefile-mode, makefile-makepp-mode)
(makefile-bsdmake-mode, makefile-imake-mode, makefile-browse):
* progmodes/perl-mode.el (perl-mode):
* progmodes/sh-script.el (sh-mode, sh-set-shell):
* textmodes/css-mode.el (css-mode):
* textmodes/sgml-mode.el (html-mode, sgml-mode)
(sgml-tags-invisible, sgml-guess-indent):
* textmodes/tex-mode.el (tex-common-initialization)
(latex-complete-bibtex-keys, tex-shell, tex-main-file)
(doctex-mode, plain-tex-mode, latex-mode):
* textmodes/texinfo.el (texinfo-mode): Use setq-local.
2012-12-01 12:09:55 +08:00
Kirk Kelsey
3ddbf80375 * vc-hg.el (vc-hg-next-revision): Ensure use of default "tip" output format
Fixes: debbugs:6968
2012-11-30 21:10:53 -05:00
Chong Yidong
5781e949ae Improve the descriptive message in `recover-session'.
* lisp/files.el (recover-session): Improve the descriptive message,
and use substitute-command-keys.
2012-12-01 10:09:45 +08:00
Kim F. Storm
f0b6ae635d * startup.el (fancy-startup-tail): Add a clickable link. 2012-12-01 10:08:30 +08:00
Chong Yidong
c01bf73e79 * startup.el (fancy-startup-tail): Improve the message about auto-save files.
Fixes: debbugs:2176
2012-12-01 09:49:29 +08:00
Glenn Morris
a940045887 ido.el fix for bug#13036
* lisp/ido.el (ido-file-internal): Handle other-window, other-frame for dired.
2012-11-30 20:27:56 -05:00
Glenn Morris
fb3bf6ced4 Defcustom :version fixes
* lisp/icomplete.el (icomplete-separator): Fix :version.

* lisp/erc/erc.el (erc-accidental-paste-threshold-seconds): Add :version.
2012-11-30 09:09:55 -08:00
Chong Yidong
276479fd70 In Shell mode, reapply ansi colorization if the mode is re-enabled.
* shell.el (shell-apply-ansi-color, shell-reapply-ansi-color): New functions.
(shell-mode): Use them to reapply ansi colorization if Shell mode is re-enabled.
2012-11-30 16:24:53 +08:00
Chong Yidong
a813fe3fb8 Improve buffer name default for C-u M-x shell.
* shell.el (shell): For C-u M-x shell, use an inactive shell
buffer as the default.

Fixes: debbugs:1975
2012-11-30 16:06:04 +08:00
Chong Yidong
a8b733a519 * vc/vc-git.el (vc-git-command): Disable the pager.
Fixes: debbugs:6137
2012-11-30 15:43:05 +08:00
Samuel Bronson
6fccd6e8b5 * progmodes/grep.el (grep-compute-defaults): Do not pass the -e flag to xargs
for compatibility with BSD xargs.

Fixes: debbugs:11703
2012-11-30 15:37:23 +08:00
Toru TSUNEYOSHI
53c9a337fa * textmodes/fill.el (fill-region-as-paragraph): Handle overshoot by move-to-column.
Fixes: debbugs:3234
2012-11-30 15:10:30 +08:00
Chong Yidong
ccf520bb26 * longlines.el (longlines-wrap-line, longlines-encode-region): Preserve text properties.
Fixes: debbugs:1425
2012-11-30 14:56:51 +08:00
OKAZAKI Tetsurou
171b09490b Relax existing-registration check in vc-register (tiny change).
* vc/vc.el (vc-register): Allow registering a file which is already
registered with a different backend.

Fixes: debbugs:10589
2012-11-30 12:44:52 +08:00
Eric Hanchrow
21859ebcaf New ERC option to avoid sending accidentally-pasted text to the server.
* erc.el (erc-last-input-time): New variable.
(erc-accidental-paste-threshold-seconds): New option to avoid
sending accidentally-pasted text to the server.
(erc-send-current-line): Use it.

Also,

* erc.el (erc-lurker-cleanup, erc-lurker-p): Use float-time.

Fixes: debbugs:11592
2012-11-30 12:18:22 +08:00
Jambunathan K
cc37e70f66 * lisp/icomplete.el: Change separator; add ido-style commands.
(icomplete-show-key-bindings): Remove custom var.
(icomplete-get-keys): Remove function.
(icomplete-forward-completions, icomplete-backward-completions):
New commands.
(icomplete-minibuffer-map): New var.
(icomplete-minibuffer-setup): Use it.
(icomplete-exhibit): Don't delay if the list of completions is known.
(icomplete-separator): New custom.
(icomplete-completions): Use it.
* lisp/minibuffer.el (completion-all-sorted-completions): Delete duplicates.
(minibuffer-force-complete-and-exit): New command.
(minibuffer--complete-and-exit): New function extracted from
minibuffer-complete-and-exit.
(minibuffer-complete-and-exit): Use it.
2012-11-29 16:32:24 -05:00
Stefan Monnier
83e12fe07c * lisp/progmodes/etags.el (visit-tags-table-buffer): Give a more precise
error message when the file doesn't exist.

Fixes: debbugs:12974
2012-11-29 15:19:11 -05:00
Kelly Dean
31646597cd * lisp/simple.el (activate-mark): Run activate-mark-hook.
Fixes: debbugs:13027
2012-11-29 15:09:37 -05:00
Glenn Morris
824eefe427 Warn if try to set coding in dir-locals (bug#7169)
* lisp/files.el (hack-dir-local-variables):
Warn if try to set coding via dir-locals, since it doesn't work.
2012-11-29 14:28:39 -05:00
Glenn Morris
4ad900d993 Add desktop support for restoring vc-dir buffers (bug#10606)
* lisp/vc/vc-dir.el (vc-dir-mode): Autoload it (for desktop restore).
Set buffer-local value of desktop-save-buffer.
(vc-dir-desktop-buffer-misc-data, vc-dir-restore-desktop-buffer):
New functions.
(desktop-buffer-mode-handlers): Add vc-dir-mode entry.

* lisp/desktop.el (desktop-save-buffer-p): Treat vc-dir like dired.
2012-11-28 20:16:51 -05:00
Glenn Morris
e9df8f871d By default, ignore case when testing inhibit-local-variables (bug#10610)
* lisp/files.el (inhibit-local-variables-ignore-case): New.
(inhibit-local-variables-p): Use inhibit-local-variables-ignore-case.
Doc fix.
(inhibit-local-variables-regexps, inhibit-local-variables-suffixes):
Doc fixes.
2012-11-28 20:13:33 -05:00
Glenn Morris
6247eff516 Fix for jka-compr-compression-info-list not including version extension
* lisp/jka-cmpr-hook.el (jka-compr-get-compression-info):
Remove any version extension before checking filename. 
(jka-compr-compression-info-list): Belated :version bump.

Fixes: debbugs:13006
2012-11-28 00:37:38 -08:00
Chong Yidong
8ecba97da2 * simple.el (transient-mark-mode): Doc fix.
Fixes: debbugs:11523
2012-11-28 15:16:45 +08:00
Chong Yidong
a5bf43bab8 Buffer Menu doc fixes.
* buff-menu.el (Buffer-menu-delete-backwards, Buffer-menu-mode)
(buffer-menu): Doc fix.

Fixes: debbugs:12294
2012-11-28 15:12:56 +08:00
Jay Belanger
e7c8fcc44e * lisp/calc/calc-forms.el (calc-date-notation): Fix regexp
used to find time codes.  Fix symbol for seconds.
2012-11-27 22:51:13 -06:00
Glenn Morris
48d6d9c019 derived-mode-make-docstring tweak for bug#11277
* lisp/emacs-lisp/derived.el (derived-mode-make-docstring):
Don't mention "abbrev" or "syntax" if nil.
2012-11-27 11:40:04 -05:00
Roland Winkler
34755291c1 diary-header-line-format: Use keybinding of diary-show-all-entries in the diary buffer 2012-11-27 09:40:49 -06:00
Michael Albinus
c2f5b60af5 * net/tramp-sh.el (tramp-perl-encode): Use "read STDIN" instead of
"<STDIN>".  This is binary safe.
2012-11-27 15:55:25 +01:00
Glenn Morris
026822f966 Auto-commit of loaddefs files. 2012-11-27 06:18:12 -05:00
Glenn Morris
5c9cf0a3f9 Merge from emacs-24; up to 2012-11-20T20:06:17Z!monnier@iro.umontreal.ca 2012-11-26 19:10:32 -08:00
Stefan Monnier
369f945d0b * lisp/textmodes/table.el (table-insert): Don't use `symbol-name' on
lexically scoped variables.

Fixes: debbugs:13005
2012-11-26 21:06:19 -05:00
Glenn Morris
999e745ef7 vc-hooks.el workaround for bug#11490
* vc/vc-hooks.el (vc-mistrust-permissions): Default to t, to avoid data-loss.
2012-11-26 18:50:12 -05:00
Fabián Ezequiel Gallina
98f99594f7 * progmodes/python.el:
(python-indent-guess-indent-offset): If indentation is guessed
make python-indent-offset variable buffer local.
2012-11-26 20:31:06 -03:00
Fabián Ezequiel Gallina
207cb73c18 Fix Imenu regression.
* progmodes/python.el:
(python-nav-beginning-of-defun): Fix forward movement when
statement(s) separates point from defun.
(python-imenu-prev-index-position): New function.
2012-11-26 18:45:58 -03:00
Stefan Monnier
848a2dd19d * lisp/emacs-lisp/advice.el (ad-should-compile): Don't compile advice if the
base function is not yet defined.
(ad-activate-advised-definition): Use ad-compile-function.
(ad-activate): Use cond.

Fixes: debbugs:12965
2012-11-26 14:56:14 -05:00
Eli Zaretskii
865f7d8fa9 Fix last commit's log entry.
Fixes: debbugs:12989
2012-11-26 19:12:44 +02:00
Eli Zaretskii
33a488e4e6 Partial fix for bug #12989 with buffer-file-type annoyances.
lisp/subr.el (buffer-file-type): Declare with defvar-local.  Doc fix.
 lisp/dos-w32.el (find-file-not-found-set-buffer-file-coding-system):
 Don't set buffer-file-type.  Return nil.
2012-11-26 19:09:04 +02:00
Glenn Morris
502071919d * lisp/hippie-exp.el (hippie-expand-try-functions-list): Re-autoload it.
Fixes: debbugs:12982
2012-11-25 17:41:00 -08:00
Glenn Morris
1e9f74b1a5 ChangeLog fix
Reposition and redate entries with the date they were merged into Emacs
2012-11-25 11:24:26 -08:00
Bill Wohler
a09777fb29 Merge from trunk. 2012-11-25 10:33:16 -08:00
Bill Wohler
77f9b93eb2 Release MH-E version 8.4.
* mh-e.el (Version, mh-version): Update for release 8.4.
2012-11-25 10:26:38 -08:00
Eli Zaretskii
2147c6ab51 Fix bug #11964 with crashes inside internal-char-font on non-GUI frames.
lips/descr-text.el (describe-char-padded-string): Call
 internal-char-font only on GUI frames.
2012-11-25 18:28:38 +02:00
Leo Liu
9ad7950682 * lisp/textmodes/sgml-mode.el (sgml-tag): Fix indentation for closing tag.
Fixes: debbugs:12979
2012-11-26 00:07:58 +08:00
Glenn Morris
0d35edba15 Auto-commit of loaddefs files. 2012-11-25 07:23:32 -05:00
Vincent Belaïche
e2cb57f5f5 * textmodes/reftex-parse.el (reftex-parse-from-file): Use variable reftex-section-info-function in order to be compatible with Texinfo integration.
* textmodes/reftex.el (reftex-section-pre-regexp, reftex-section-post-regexp, reftex-section-info-function): New variable. (reftex-compile-variables): Use variables reftex-section-pre-regexp, reftex-section-post-regexp, and reftex-section-info-function in order to be compatible with Texinfo integration.

* textmodes/reftex-toc.el (reftex-toc-promote-action): use reftex-section-pre-regexp variable in order to be compatible with Texinfo integration.
2012-11-25 06:05:34 +01:00
Chong Yidong
1c4f115d4c Revamp face-spec-set to be more analogous to setq for faces.
* lisp/faces.el (face-spec-set): Change the third arg to specify
whether this function is being called via defface, customize, or a
third party.  Set the appropriate symbol properties.  Clear the
override spec if setting via Custom.  Initialize face if necessary.
(face-spec-recalc): Allow theme faces to completely replace the
defface spec, in the same way as custom faces (Bug#8454).

* lisp/cus-edit.el (custom-face-set, custom-face-mark-to-save)
(custom-face-reset-saved, custom-face-mark-to-reset-standard):
Simplify by using the new arg to face-spec-set.

* lisp/cus-face.el (custom-declare-face): Move face initialization to
face-spec-set.
(custom-theme-set-faces): Don't initialize the face name here, as
that is now done in face-spec-set.

* lisp/emacs-lisp/lisp-mode.el (eval-defun-1): When evaluating defface,
reset face-override-spec too, and use custom-declare-face.

Fixes: debbugs:4988
2012-11-25 12:50:20 +08:00
Bill Wohler
1b0b185558 * mh-comp.el (mh-regexp-in-field-syntax-table): Fix docstring.
(mh-edit-again): Format.
(mh-components-to-list): Fix docstring. 
(mh-regexp-in-field-p): Remove unused variable `field'.
2012-11-24 20:37:28 -08:00
Bill Wohler
fb9958d7bc * mh-compat.el (mh-define-obsolete-variable-alias)
(mh-make-obsolete-variable): New macros to fix XEmacs compiler
warnings.

* mh-letter.el (mh-yank-hooks): Use new mh-make-obsolete-variable
macro.

* mh-e.el (mh-kill-folder-suppress-prompt-hooks): Use new
mh-define-obsolete-variable-alias macro.

* mh-compat.el (mh-cl-flet): New alias for cl-flet on Emacs 24 and
flet elsewhere.

* mh-thread.el (mh-thread-set-tables): Replace flet with new alias
mh-cl-flet.

* mh-show.el (mh-gnus-article-highlight-citation): Replace flet with
new alias mh-cl-flet.

* mh-mime.el (mh-display-with-external-viewer, mh-mime-display)
(mh-press-button, mh-push-button, mh-display-emphasis): Replace flet
with new alias mh-cl-flet.

* mh-e.el (mh-invisible-header-fields-internal): Remove trailing
  whitespace.
2012-11-24 20:13:04 -08:00
Bill Wohler
5244bc019b Merge from trunk. 2012-11-24 19:43:02 -08:00
Jeffrey C Honig
9f7e719509 Fixed a small bug in the last checkin. 2012-11-24 22:14:17 -05:00
Jeffrey C Honig
855c6482c0 (mh-edit-again): Use the components file to specify
default values for missing headers in the draft.
(mh-regexp-in-field-syntax-table, mh-fcc-syntax-table)
(mh-addr-syntax-table, mh-regexp-in-field-p): Use a syntax table
so we'll properly parse non-address fields. 
(mh-components-to-list, mh-extract-header-field): New functions to
read components file.
(mh-find-components, mh-send-sub): Move code to locate components
file into a new function.
(mh-insert-auto-fields, mh-modify-header-field): New syntax for
calling mh-regexp-in-field-p.
(closes SF #1708292)
2012-11-24 21:21:02 -05:00
Andreas Schwab
58b1ae1e17 * buff-menu.el (Buffer-menu-buffer+size-width): Fix customize type
and obsoletion message.
2012-11-25 00:07:13 +01:00
Stefan Monnier
35a1051652 * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Add back `declare' in
the constructs to keep outside of the `cl-block'.

Fixes: debbugs:12977
2012-11-24 16:34:28 -05:00
Jan Djärv
c235054806 * term/ns-win.el (ns-initialize-window-system): Move creation of
fontsets here.

Fixes: debbugs:11964
2012-11-24 18:55:48 +01:00
Vincent Belaïche
ecfc364c8f * ses.el (ses-rename-cell): Correct bug on mode-line update after cell renaming. 2012-11-24 18:44:29 +01:00
Chong Yidong
433212bfdf * lisp/woman.el (woman-default-faces, woman-monochrome-faces): Mark as obsolete. 2012-11-25 00:58:43 +08:00
Chong Yidong
ea0d348b1c Bump version to 24.2.90.
Regenerate AUTHORS and ldefs-boot.el.
2012-11-24 23:31:31 +08:00
Chong Yidong
0c5ef13335 Fix follow-mouse clicks on undraggable mode/header lines.
* mouse.el (mouse-drag-line): Even if the line is not draggable,
keep reading until we get the up-event anyway, in order to process
the up-event for mouse-1-click-follows-link.

Fixes: debbugs:12971
2012-11-24 16:15:00 +08:00
Chong Yidong
0917cc542f Fix dependency sorting in custom-theme-set-variables.
* lisp/custom.el (custom-theme-set-variables): Use a topological sort
for ordering by custom dependencies.
(custom--sort-vars, custom--sort-vars-1): New functions.

Fixes: debbugs:12952
2012-11-24 11:46:29 +08:00
Glenn Morris
d125ca15f3 Merge from emacs-24; up to 2012-11-19T11:36:02Z!yamaoka@jpl.org 2012-11-23 17:57:09 -08:00
Stefan Monnier
002c019c34 * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Setup default value for
lexical-binding.

Fixes: debbugs:12938
2012-11-23 16:49:13 -05:00
Wolfgang Jenkner
977f932513 lisp/image-mode.el (image-transform-check-size): Use assertions only
for images of type imagemagick.

Otherwise no error, image-transform-fit-to-{width,height} is
silently ignored, as before.  Doc fix.
2012-11-23 18:41:01 +01:00
Stefan Monnier
277c8f21a1 * lisp/erc/erc-backend.el: Fix last change that missed calls to `second'.
Fixes: debbugs:12970
2012-11-23 11:00:57 -05:00
Chong Yidong
930a6273b8 Add some missing find options to find-cmd.el.
* find-cmd.el (find-constituents): Add executable, ipath,
readable, samefile, writable, daystart, regextype.

Fixes: debbugs:12856
2012-11-23 16:33:20 +08:00
Juri Linkov
61a2a12285 * lisp/dired.el (dired-mark): Add optional arg `interactive'.
Check for `use-region-p' if `interactive' is non-nil.
(dired-unmark, dired-flag-file-deletion): Add optional arg
`interactive'.  Call `dired-mark' with the arg `interactive'.

Fixes: debbugs:10624
2012-11-23 09:59:43 +02:00
Chong Yidong
bccffa8374 * faces.el (color-defined-p): Doc fix.
Fixes: debbugs:12853
2012-11-23 15:56:27 +08:00
Paul Eggert
6f6b82d66f Add Bug# to Nov 17 ChangeLog entries. 2012-11-22 23:31:58 -08:00
Juri Linkov
cc4c01bd96 * lisp/wdired.el: Revert 2012-10-17 change partly and replace it with
Patch by Christopher Schmidt <christopher@ch.ristopher.com>.
(wdired-finish-edit): Add marks for new file names to
`wdired-old-marks'.  Restore marks using `dired-mark-remembered'
after `revert-buffer'.
(wdired-do-renames): Remove calls to `dired-remove-file',
`dired-add-file', `dired-add-entry'.

Fixes: debbugs:11795
2012-11-23 09:28:37 +02:00
Stefan Monnier
15c9d04ea4 * emacs-lisp/ert.el, emacs-lisp/ert-x.el: Use cl-lib and lexical-binding. 2012-11-22 22:26:09 -05:00
Paul Eggert
a14a5a4099 * calc/calc.el (calc-gregorian-switch): In menu, put dates before regions.
This is easier to follow, lines up better in the menu, and lets us
coalesce regions that switch at the same time.  Give country
names, not "Vatican", as that's better for non-expert users.  Use
names that are stable between the date of switch and now, e.g.,
Bohemia and Moravia (which existed then and now) and not
Czechoslovakia (which didn't exist then and doesn't exist now).
What is now the U.S. mostly did not switch at the same time as
Britain, so omit the U.S.  Correct spelling of "Britain".
Catholic Switzerland was too much of a mess, so omit it.
2012-11-22 00:09:03 -08:00
Paul Eggert
2ecb2679ad * calc/calc.el (calc-gregorian-switch): Move to after calc-refresh
definition.  This fixes a bootstrap failure.
2012-11-21 23:31:45 -08:00
Jay Belanger
723da6aa83 * doc/misc/calc.texi (Date Forms): Mention the customizable
Gregorian-Julian switch.
(Customizing Calc): Mention the variable `calc-gregorian-switch'.

* calc/calc.el (calc-gregorian-switch): Refresh the Calc buffer
after the variable is changed.
2012-11-21 19:47:04 -06:00
Daniel Colascione
b6096e8505 Teach sql-mode's imenu about IF NOT EXISTS 2012-11-21 13:47:10 -08:00
Daniel Colascione
21fa248200 Support IF NOT EXISTS in SQL declarations 2012-11-21 13:38:56 -08:00
Alan Mackenzie
dc310ed0ab Bump CC Mode's version number to 5.32.4. 2012-11-21 20:47:09 +00:00
Alan Mackenzie
b03aabdac5 Fix bugs in the CC Mode state cache. Enhance a debugging mechanism. 2012-11-21 20:41:03 +00:00
Glenn Morris
1bf335cf43 Add optional "inherit" argument for face-bold-p and related functions
* lisp/faces.el (face-underline-p, face-inverse-video-p, face-bold-p)
(face-italic-p): Add optional argument "inherit".

* doc/lispref/display.texi (Attribute Functions):
Add new "inherit" argument for face-bold-p etc.
Move description of this argument to a common section, like "frame".
2012-11-21 00:39:08 -08:00
Glenn Morris
3ca2f1bf25 Remove -p suffix from set-face-* functions
* lisp/faces.el (set-face-inverse-video, set-face-bold, set-face-italic):
Remove -p suffix from names, for consistency with other set-face-*.
(set-face-inverse-video): Fix interactive spec.
* lisp/play/gamegrid.el (gamegrid-make-mono-tty-face):
* lisp/textmodes/table.el (table--update-cell-face):
Use set-face-inverse-video rather than now obsolete alias.

* doc/lispref/display.texi (Attribute Functions):
Update for set-face-* name changes.
2012-11-21 00:27:13 -08:00