diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 38 | ||||
| -rw-r--r-- | lisp/cus-edit.el | 42 | ||||
| -rw-r--r-- | lisp/dired-aux.el | 21 | ||||
| -rw-r--r-- | lisp/dired-x.el | 2 | ||||
| -rw-r--r-- | lisp/dired.el | 12 | ||||
| -rw-r--r-- | lisp/mail/sendmail.el | 6 | ||||
| -rw-r--r-- | lisp/mail/smtpmail.el | 10 | ||||
| -rw-r--r-- | lisp/mh-e/ChangeLog | 20 | ||||
| -rw-r--r-- | lisp/mh-e/mh-compat.el | 32 | ||||
| -rw-r--r-- | lisp/mh-e/mh-e.el | 4 | ||||
| -rw-r--r-- | lisp/mh-e/mh-folder.el | 8 | ||||
| -rw-r--r-- | lisp/mh-e/mh-mime.el | 6 | ||||
| -rw-r--r-- | lisp/mh-e/mh-xface.el | 12 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 2 | ||||
| -rw-r--r-- | lisp/subr.el | 11 | ||||
| -rw-r--r-- | lisp/textmodes/bibtex.el | 4 |
16 files changed, 148 insertions, 82 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e024646cd26..7a9e0267c3e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,41 @@ | |||
| 1 | 2011-07-12 Johan Bockgård <bojohan@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/compile.el (compilation-error-regexp-alist-alist): | ||
| 4 | Fix previous fix (bug#2490). | ||
| 5 | |||
| 6 | 2011-07-12 Roland Winkler <winkler@gnu.org> | ||
| 7 | |||
| 8 | * textmodes/bibtex.el (bibtex-initialize): Use | ||
| 9 | pop-to-buffer-same-window. | ||
| 10 | (bibtex-search-entries): Fix interactive call. | ||
| 11 | |||
| 12 | 2011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 13 | |||
| 14 | * progmodes/compile.el (compilation-error-regexp-alist-alist): | ||
| 15 | Fontise bytecomp Error lines more correctly (bug#2490). Fix | ||
| 16 | suggested by Johan Bockgård. | ||
| 17 | |||
| 18 | * subr.el (remove-duplicates): Remove; `delete-dups' is sufficient. | ||
| 19 | |||
| 20 | * dired-x.el (dired-guess-default): Use `delete-dups'. | ||
| 21 | |||
| 22 | 2011-07-12 Chong Yidong <cyd@stupidchicken.com> | ||
| 23 | |||
| 24 | * dired.el (dired-mark-prompt): | ||
| 25 | * dired-aux.el (dired-read-shell-command): Doc fix. | ||
| 26 | |||
| 27 | 2011-07-11 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 28 | |||
| 29 | * mail/sendmail.el (sendmail-query-once): Use | ||
| 30 | `customize-save-variable' unconditionally, now that it works under | ||
| 31 | emacs -Q. | ||
| 32 | |||
| 33 | * mail/smtpmail.el (smtpmail-query-smtp-server): Ditto. | ||
| 34 | |||
| 35 | * cus-edit.el (custom-file): Take an optional no-error variable. | ||
| 36 | (customize-save-variable): Set the variable, and give a warning if | ||
| 37 | running under "emacs -q". | ||
| 38 | |||
| 1 | 2011-07-11 Juanma Barranquero <lekktu@gmail.com> | 39 | 2011-07-11 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 40 | ||
| 3 | * loadhist.el (unload-feature-special-hooks): | 41 | * loadhist.el (unload-feature-special-hooks): |
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 22b7cc6b3fe..d443d6c160c 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -1033,7 +1033,11 @@ If given a prefix (or a COMMENT argument), also prompt for a comment." | |||
| 1033 | (put variable 'saved-variable-comment comment))) | 1033 | (put variable 'saved-variable-comment comment))) |
| 1034 | (put variable 'customized-value nil) | 1034 | (put variable 'customized-value nil) |
| 1035 | (put variable 'customized-variable-comment nil) | 1035 | (put variable 'customized-variable-comment nil) |
| 1036 | (custom-save-all) | 1036 | (if (custom-file t) |
| 1037 | (custom-save-all) | ||
| 1038 | (message "Setting `%s' temporarily since \"emacs -q\" would overwrite customizations" | ||
| 1039 | variable) | ||
| 1040 | (set variable value)) | ||
| 1037 | value) | 1041 | value) |
| 1038 | 1042 | ||
| 1039 | ;; Some parts of Emacs might prompt the user to save customizations, | 1043 | ;; Some parts of Emacs might prompt the user to save customizations, |
| @@ -4403,23 +4407,27 @@ Click on \"More\" \(or position point there and press RETURN) | |||
| 4403 | if only the first line of the docstring is shown.")) | 4407 | if only the first line of the docstring is shown.")) |
| 4404 | :group 'customize) | 4408 | :group 'customize) |
| 4405 | 4409 | ||
| 4406 | (defun custom-file () | 4410 | (defun custom-file (&optional no-error) |
| 4407 | "Return the file name for saving customizations." | 4411 | "Return the file name for saving customizations." |
| 4408 | (file-chase-links | 4412 | (let ((file |
| 4409 | (or custom-file | 4413 | (or custom-file |
| 4410 | (let ((user-init-file user-init-file) | 4414 | (let ((user-init-file user-init-file) |
| 4411 | (default-init-file | 4415 | (default-init-file |
| 4412 | (if (eq system-type 'ms-dos) "~/_emacs" "~/.emacs"))) | 4416 | (if (eq system-type 'ms-dos) "~/_emacs" "~/.emacs"))) |
| 4413 | (when (null user-init-file) | 4417 | (when (null user-init-file) |
| 4414 | (if (or (file-exists-p default-init-file) | 4418 | (if (or (file-exists-p default-init-file) |
| 4415 | (and (eq system-type 'windows-nt) | 4419 | (and (eq system-type 'windows-nt) |
| 4416 | (file-exists-p "~/_emacs"))) | 4420 | (file-exists-p "~/_emacs"))) |
| 4417 | ;; Started with -q, i.e. the file containing | 4421 | ;; Started with -q, i.e. the file containing |
| 4418 | ;; Custom settings hasn't been read. Saving | 4422 | ;; Custom settings hasn't been read. Saving |
| 4419 | ;; settings there would overwrite other settings. | 4423 | ;; settings there would overwrite other settings. |
| 4420 | (error "Saving settings from \"emacs -q\" would overwrite existing customizations")) | 4424 | (if no-error |
| 4421 | (setq user-init-file default-init-file)) | 4425 | nil |
| 4422 | user-init-file)))) | 4426 | (error "Saving settings from \"emacs -q\" would overwrite existing customizations")) |
| 4427 | (setq user-init-file default-init-file))) | ||
| 4428 | user-init-file)))) | ||
| 4429 | (and file | ||
| 4430 | (file-chase-links file)))) | ||
| 4423 | 4431 | ||
| 4424 | ;; If recentf-mode is non-nil, this is defined. | 4432 | ;; If recentf-mode is non-nil, this is defined. |
| 4425 | (declare-function recentf-expand-file-name "recentf" (name)) | 4433 | (declare-function recentf-expand-file-name "recentf" (name)) |
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 5ab4146383b..3103fbd5a7f 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -514,22 +514,25 @@ to the end of the list of defaults just after the default value." | |||
| 514 | 514 | ||
| 515 | ;; This is an extra function so that you can redefine it, e.g., to use gmhist. | 515 | ;; This is an extra function so that you can redefine it, e.g., to use gmhist. |
| 516 | (defun dired-read-shell-command (prompt arg files) | 516 | (defun dired-read-shell-command (prompt arg files) |
| 517 | "Read a dired shell command prompting with PROMPT. | 517 | "Read a dired shell command. |
| 518 | Passes the prefix argument ARG to `dired-mark-prompt', so that it | 518 | PROMPT should be a format string with one \"%s\" format sequence, |
| 519 | can be used in the prompt to indicate which FILES are affected. | 519 | which is replaced by the value returned by `dired-mark-prompt', |
| 520 | Normally reads the command with `read-shell-command', but if the | 520 | with ARG and FILES as its arguments. FILES should be a list of |
| 521 | `dired-x' packages is loaded, uses `dired-guess-shell-command' to offer | 521 | file names. The result is used as the prompt. |
| 522 | a smarter default choice of shell command." | 522 | |
| 523 | This normally reads using `read-shell-command', but if the | ||
| 524 | `dired-x' package is loaded, use `dired-guess-shell-command' to | ||
| 525 | offer a smarter default choice of shell command." | ||
| 523 | (minibuffer-with-setup-hook | 526 | (minibuffer-with-setup-hook |
| 524 | (lambda () | 527 | (lambda () |
| 525 | (set (make-local-variable 'minibuffer-default-add-function) | 528 | (set (make-local-variable 'minibuffer-default-add-function) |
| 526 | 'minibuffer-default-add-dired-shell-commands)) | 529 | 'minibuffer-default-add-dired-shell-commands)) |
| 527 | (setq prompt (format prompt (dired-mark-prompt arg files))) | 530 | (setq prompt (format prompt (dired-mark-prompt arg files))) |
| 528 | (if (featurep 'dired-x) | 531 | (if (functionp 'dired-guess-shell-command) |
| 529 | (dired-mark-pop-up nil 'shell files | 532 | (dired-mark-pop-up nil 'shell files |
| 530 | #'dired-guess-shell-command prompt files) | 533 | 'dired-guess-shell-command prompt files) |
| 531 | (dired-mark-pop-up nil 'shell files | 534 | (dired-mark-pop-up nil 'shell files |
| 532 | #'read-shell-command prompt nil nil)))) | 535 | 'read-shell-command prompt nil nil)))) |
| 533 | 536 | ||
| 534 | ;;;###autoload | 537 | ;;;###autoload |
| 535 | (defun dired-do-async-shell-command (command &optional arg file-list) | 538 | (defun dired-do-async-shell-command (command &optional arg file-list) |
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index a341e4f07a1..0f2cfd4973f 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el | |||
| @@ -1103,7 +1103,7 @@ See `dired-guess-shell-alist-user'." | |||
| 1103 | ;; Return commands or nil if flist is still non-nil. | 1103 | ;; Return commands or nil if flist is still non-nil. |
| 1104 | ;; Evaluate the commands in order that any logical testing will be done. | 1104 | ;; Evaluate the commands in order that any logical testing will be done. |
| 1105 | (if (cdr cmds) | 1105 | (if (cdr cmds) |
| 1106 | (remove-duplicates (mapcar #'eval cmds)) | 1106 | (delete-dups (mapcar #'eval cmds)) |
| 1107 | (eval (car cmds))))) ; single command | 1107 | (eval (car cmds))))) ; single command |
| 1108 | 1108 | ||
| 1109 | (defun dired-guess-shell-command (prompt files) | 1109 | (defun dired-guess-shell-command (prompt files) |
diff --git a/lisp/dired.el b/lisp/dired.el index 8369d4897be..62420348d0f 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -2831,8 +2831,12 @@ also offers to kill buffers visiting deleted files and directories." | |||
| 2831 | (if (= 1 count) "" "s")) | 2831 | (if (= 1 count) "" "s")) |
| 2832 | 2832 | ||
| 2833 | (defun dired-mark-prompt (arg files) | 2833 | (defun dired-mark-prompt (arg files) |
| 2834 | "Return a string for use in a prompt, either the current file | 2834 | "Return a string suitable for use in a Dired prompt. |
| 2835 | name, or the marker and a count of marked files." | 2835 | ARG is normally the prefix argument for the calling command. |
| 2836 | FILES should be a list of file names. | ||
| 2837 | |||
| 2838 | The return value has a form like \"foo.txt\", \"[next 3 files]\", | ||
| 2839 | or \"* [3 files]\"." | ||
| 2836 | ;; distinguish-one-marked can cause the first element to be just t. | 2840 | ;; distinguish-one-marked can cause the first element to be just t. |
| 2837 | (if (eq (car files) t) (setq files (cdr files))) | 2841 | (if (eq (car files) t) (setq files (cdr files))) |
| 2838 | (let ((count (length files))) | 2842 | (let ((count (length files))) |
| @@ -3643,7 +3647,7 @@ Ask means pop up a menu for the user to select one of copy, move or link." | |||
| 3643 | ;;;;;; dired-run-shell-command dired-do-shell-command dired-do-async-shell-command | 3647 | ;;;;;; dired-run-shell-command dired-do-shell-command dired-do-async-shell-command |
| 3644 | ;;;;;; dired-clean-directory dired-do-print dired-do-touch dired-do-chown | 3648 | ;;;;;; dired-clean-directory dired-do-print dired-do-touch dired-do-chown |
| 3645 | ;;;;;; dired-do-chgrp dired-do-chmod dired-compare-directories dired-backup-diff | 3649 | ;;;;;; dired-do-chgrp dired-do-chmod dired-compare-directories dired-backup-diff |
| 3646 | ;;;;;; dired-diff) "dired-aux" "dired-aux.el" "198ca311b49f0b6354f915502bba4ab6") | 3650 | ;;;;;; dired-diff) "dired-aux" "dired-aux.el" "ab62f310329f404f96a29e4f0ab8df73") |
| 3647 | ;;; Generated autoloads from dired-aux.el | 3651 | ;;; Generated autoloads from dired-aux.el |
| 3648 | 3652 | ||
| 3649 | (autoload 'dired-diff "dired-aux" "\ | 3653 | (autoload 'dired-diff "dired-aux" "\ |
| @@ -4104,7 +4108,7 @@ instead. | |||
| 4104 | ;;;*** | 4108 | ;;;*** |
| 4105 | 4109 | ||
| 4106 | ;;;### (autoloads (dired-do-relsymlink dired-jump-other-window dired-jump) | 4110 | ;;;### (autoloads (dired-do-relsymlink dired-jump-other-window dired-jump) |
| 4107 | ;;;;;; "dired-x" "dired-x.el" "90459fb5998296fc67986945701b2bfc") | 4111 | ;;;;;; "dired-x" "dired-x.el" "219648338c42c7912fa336680b434db0") |
| 4108 | ;;; Generated autoloads from dired-x.el | 4112 | ;;; Generated autoloads from dired-x.el |
| 4109 | 4113 | ||
| 4110 | (autoload 'dired-jump "dired-x" "\ | 4114 | (autoload 'dired-jump "dired-x" "\ |
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 5ffc834f533..fe20ad921da 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -159,8 +159,6 @@ This is used by the default mail-sending commands. See also | |||
| 159 | (defvar sendmail-query-once-function 'query | 159 | (defvar sendmail-query-once-function 'query |
| 160 | "Either a function to send email, or the symbol `query'.") | 160 | "Either a function to send email, or the symbol `query'.") |
| 161 | 161 | ||
| 162 | (autoload 'custom-file "cus-edit") | ||
| 163 | |||
| 164 | ;;;###autoload | 162 | ;;;###autoload |
| 165 | (defun sendmail-query-once () | 163 | (defun sendmail-query-once () |
| 166 | "Send an email via `sendmail-query-once-function'. | 164 | "Send an email via `sendmail-query-once-function'. |
| @@ -198,9 +196,7 @@ function to use, and then save that choice." | |||
| 198 | 'smtpmail-send-it | 196 | 'smtpmail-send-it |
| 199 | default)) | 197 | default)) |
| 200 | (kill-buffer (current-buffer)))))) | 198 | (kill-buffer (current-buffer)))))) |
| 201 | (if (ignore-errors (custom-file)) | 199 | (customize-save-variable 'sendmail-query-once-function function))) |
| 202 | (customize-save-variable 'sendmail-query-once-function function) | ||
| 203 | (setq sendmail-query-once-function function)))) | ||
| 204 | (funcall sendmail-query-once-function)) | 200 | (funcall sendmail-query-once-function)) |
| 205 | 201 | ||
| 206 | ;;;###autoload | 202 | ;;;###autoload |
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index 57356f3315b..073e2fa4a3c 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -587,8 +587,6 @@ The list is in preference order.") | |||
| 587 | (defun smtpmail-response-text (response) | 587 | (defun smtpmail-response-text (response) |
| 588 | (mapconcat 'identity (cdr response) "\n")) | 588 | (mapconcat 'identity (cdr response) "\n")) |
| 589 | 589 | ||
| 590 | (autoload 'custom-file "cus-edit") | ||
| 591 | |||
| 592 | (defun smtpmail-query-smtp-server () | 590 | (defun smtpmail-query-smtp-server () |
| 593 | (let ((server (read-string "Outgoing SMTP mail server: ")) | 591 | (let ((server (read-string "Outgoing SMTP mail server: ")) |
| 594 | (ports '(587 "smtp")) | 592 | (ports '(587 "smtp")) |
| @@ -600,12 +598,8 @@ The list is in preference order.") | |||
| 600 | (setq port (pop ports))) | 598 | (setq port (pop ports))) |
| 601 | (when (setq stream (ignore-errors | 599 | (when (setq stream (ignore-errors |
| 602 | (open-network-stream "smtp" nil server port))) | 600 | (open-network-stream "smtp" nil server port))) |
| 603 | (if (ignore-errors (custom-file)) | 601 | (customize-save-variable 'smtpmail-smtp-server server) |
| 604 | (progn | 602 | (customize-save-variable 'smtpmail-smtp-service port) |
| 605 | (customize-save-variable 'smtpmail-smtp-server server) | ||
| 606 | (customize-save-variable 'smtpmail-smtp-service port)) | ||
| 607 | (setq smtpmail-smtp-server server | ||
| 608 | smtpmail-smtp-service port)) | ||
| 609 | (delete-process stream))) | 603 | (delete-process stream))) |
| 610 | (unless smtpmail-smtp-server | 604 | (unless smtpmail-smtp-server |
| 611 | (error "Couldn't contact an SMTP server")))) | 605 | (error "Couldn't contact an SMTP server")))) |
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 2a254c89d25..df4edcc75e1 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,3 +1,23 @@ | |||
| 1 | 2011-07-12 Bill Wohler <wohler@newt.com> | ||
| 2 | |||
| 3 | Release MH-E version 8.2.91. | ||
| 4 | |||
| 5 | * mh-e.el (Version, mh-version): Update for release 8.2.91. | ||
| 6 | |||
| 7 | * mh-compat.el (mh-pop-to-buffer-same-window): Add compatibility | ||
| 8 | function to call switch-to-buffer on systems that lack | ||
| 9 | pop-to-buffer-same-window. | ||
| 10 | * mh-folder.el (mh-inc-folder, mh-modify, mh-scan-folder) | ||
| 11 | (mh-make-folder): Call mh-pop-to-buffer-same-window instead of | ||
| 12 | switch-to-buffer. The previous change which used pop-to-buffer | ||
| 13 | produced the wrong behavior. | ||
| 14 | |||
| 15 | 2011-07-12 Henrique Martins <henrique@martins.cc> (tiny change) | ||
| 16 | |||
| 17 | * mh-xface.el (mh-picon-get-image): Remove quote from block | ||
| 18 | argument. | ||
| 19 | * mh-mime.el (mh-mh-directive-present-p): Ditto. | ||
| 20 | |||
| 1 | 2011-07-10 Bill Wohler <wohler@newt.com> | 21 | 2011-07-10 Bill Wohler <wohler@newt.com> |
| 2 | 22 | ||
| 3 | Release MH-E version 8.2.90. | 23 | Release MH-E version 8.2.90. |
diff --git a/lisp/mh-e/mh-compat.el b/lisp/mh-e/mh-compat.el index ae2cbff408f..16dfe05b094 100644 --- a/lisp/mh-e/mh-compat.el +++ b/lisp/mh-e/mh-compat.el | |||
| @@ -122,16 +122,6 @@ introduced in Emacs 22." | |||
| 122 | "XEmacs does not have `font-lock-add-keywords'. | 122 | "XEmacs does not have `font-lock-add-keywords'. |
| 123 | This function returns nil on that system.") | 123 | This function returns nil on that system.") |
| 124 | 124 | ||
| 125 | (defun-mh mh-window-full-height-p | ||
| 126 | window-full-height-p (&optional WINDOW) | ||
| 127 | "Return non-nil if WINDOW is not the result of a vertical split. | ||
| 128 | This function is defined in XEmacs as it lacks | ||
| 129 | `window-full-height-p'. The values of the functions | ||
| 130 | `window-height' and `frame-height' are compared instead. The | ||
| 131 | argument WINDOW is ignored." | ||
| 132 | (= (1+ (window-height)) | ||
| 133 | (frame-height))) | ||
| 134 | |||
| 135 | (defun-mh mh-image-load-path-for-library | 125 | (defun-mh mh-image-load-path-for-library |
| 136 | image-load-path-for-library (library image &optional path no-error) | 126 | image-load-path-for-library (library image &optional path no-error) |
| 137 | "Return a suitable search path for images used by LIBRARY. | 127 | "Return a suitable search path for images used by LIBRARY. |
| @@ -261,6 +251,18 @@ The argument STRING is ignored." | |||
| 261 | (buffer-substring-no-properties | 251 | (buffer-substring-no-properties |
| 262 | (match-beginning num) (match-end num))) | 252 | (match-beginning num) (match-end num))) |
| 263 | 253 | ||
| 254 | (defun-mh mh-pop-to-buffer-same-window | ||
| 255 | pop-to-buffer-same-window (&optional buffer-or-name norecord label) | ||
| 256 | "Pop to buffer specified by BUFFER-OR-NAME in the selected window. | ||
| 257 | Another window will be used only if the buffer can't be shown in | ||
| 258 | the selected window, usually because it is dedicated to another | ||
| 259 | buffer. Optional arguments BUFFER-OR-NAME, NORECORD and LABEL are | ||
| 260 | as for `pop-to-buffer'. This macro is used by Emacs versions that | ||
| 261 | lack the `pop-to-buffer-same-window' function, introduced in | ||
| 262 | Emacs 24. The function `switch-to-buffer' is used instead and | ||
| 263 | LABEL is ignored." | ||
| 264 | (switch-to-buffer buffer-or-name norecord)) | ||
| 265 | |||
| 264 | (defun-mh mh-replace-regexp-in-string replace-regexp-in-string | 266 | (defun-mh mh-replace-regexp-in-string replace-regexp-in-string |
| 265 | (regexp rep string &optional fixedcase literal subexp start) | 267 | (regexp rep string &optional fixedcase literal subexp start) |
| 266 | "Replace REGEXP with REP everywhere in STRING and return result. | 268 | "Replace REGEXP with REP everywhere in STRING and return result. |
| @@ -312,6 +314,16 @@ The arguments RETURN-TO and EXIT-ACTION are ignored." | |||
| 312 | (if exit-action nil) | 314 | (if exit-action nil) |
| 313 | (view-mode 1)) | 315 | (view-mode 1)) |
| 314 | 316 | ||
| 317 | (defun-mh mh-window-full-height-p | ||
| 318 | window-full-height-p (&optional WINDOW) | ||
| 319 | "Return non-nil if WINDOW is not the result of a vertical split. | ||
| 320 | This function is defined in XEmacs as it lacks | ||
| 321 | `window-full-height-p'. The values of the functions | ||
| 322 | `window-height' and `frame-height' are compared instead. The | ||
| 323 | argument WINDOW is ignored." | ||
| 324 | (= (1+ (window-height)) | ||
| 325 | (frame-height))) | ||
| 326 | |||
| 315 | (defmacro mh-write-file-functions () | 327 | (defmacro mh-write-file-functions () |
| 316 | "Return `write-file-functions' if it exists. | 328 | "Return `write-file-functions' if it exists. |
| 317 | Otherwise return `local-write-file-hooks'. | 329 | Otherwise return `local-write-file-hooks'. |
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el index 70d0cb5fcd5..51b41e854b0 100644 --- a/lisp/mh-e/mh-e.el +++ b/lisp/mh-e/mh-e.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | 5 | ||
| 6 | ;; Author: Bill Wohler <wohler@newt.com> | 6 | ;; Author: Bill Wohler <wohler@newt.com> |
| 7 | ;; Maintainer: Bill Wohler <wohler@newt.com> | 7 | ;; Maintainer: Bill Wohler <wohler@newt.com> |
| 8 | ;; Version: 8.2.90 | 8 | ;; Version: 8.2.91 |
| 9 | ;; Keywords: mail | 9 | ;; Keywords: mail |
| 10 | 10 | ||
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| @@ -127,7 +127,7 @@ | |||
| 127 | ;; Try to keep variables local to a single file. Provide accessors if | 127 | ;; Try to keep variables local to a single file. Provide accessors if |
| 128 | ;; variables are shared. Use this section as a last resort. | 128 | ;; variables are shared. Use this section as a last resort. |
| 129 | 129 | ||
| 130 | (defconst mh-version "8.2.90" "Version number of MH-E.") | 130 | (defconst mh-version "8.2.91" "Version number of MH-E.") |
| 131 | 131 | ||
| 132 | ;; Variants | 132 | ;; Variants |
| 133 | 133 | ||
diff --git a/lisp/mh-e/mh-folder.el b/lisp/mh-e/mh-folder.el index 2248221664b..1d9a79d0deb 100644 --- a/lisp/mh-e/mh-folder.el +++ b/lisp/mh-e/mh-folder.el | |||
| @@ -795,7 +795,7 @@ instead." | |||
| 795 | (setq threading-needed-flag mh-show-threads-flag) | 795 | (setq threading-needed-flag mh-show-threads-flag) |
| 796 | (setq mh-previous-window-config config)) | 796 | (setq mh-previous-window-config config)) |
| 797 | ((not (eq (current-buffer) (get-buffer folder))) | 797 | ((not (eq (current-buffer) (get-buffer folder))) |
| 798 | (pop-to-buffer folder) | 798 | (mh-pop-to-buffer-same-window folder) |
| 799 | (setq mh-previous-window-config config)))) | 799 | (setq mh-previous-window-config config)))) |
| 800 | (mh-get-new-mail file) | 800 | (mh-get-new-mail file) |
| 801 | (when (and threading-needed-flag | 801 | (when (and threading-needed-flag |
| @@ -855,7 +855,7 @@ From a program, edit MESSAGE; nil means edit current message." | |||
| 855 | 855 | ||
| 856 | ;; Just show the edit buffer... | 856 | ;; Just show the edit buffer... |
| 857 | (delete-other-windows) | 857 | (delete-other-windows) |
| 858 | (pop-to-buffer edit-buffer))) | 858 | (mh-pop-to-buffer-same-window edit-buffer))) |
| 859 | 859 | ||
| 860 | ;;;###mh-autoload | 860 | ;;;###mh-autoload |
| 861 | (defun mh-next-button (&optional backward-flag) | 861 | (defun mh-next-button (&optional backward-flag) |
| @@ -1705,7 +1705,7 @@ DONT-EXEC-PENDING is non-nil." | |||
| 1705 | (unless dont-exec-pending | 1705 | (unless dont-exec-pending |
| 1706 | (mh-process-or-undo-commands folder) | 1706 | (mh-process-or-undo-commands folder) |
| 1707 | (mh-reset-threads-and-narrowing)) | 1707 | (mh-reset-threads-and-narrowing)) |
| 1708 | (pop-to-buffer folder))) | 1708 | (mh-pop-to-buffer-same-window folder))) |
| 1709 | (mh-regenerate-headers range) | 1709 | (mh-regenerate-headers range) |
| 1710 | (if (zerop (buffer-size)) | 1710 | (if (zerop (buffer-size)) |
| 1711 | (if (equal range "all") | 1711 | (if (equal range "all") |
| @@ -1786,7 +1786,7 @@ Also removes all content from the folder buffer." | |||
| 1786 | (defun mh-make-folder (name) | 1786 | (defun mh-make-folder (name) |
| 1787 | "Create a new mail folder called NAME. | 1787 | "Create a new mail folder called NAME. |
| 1788 | Make it the current folder." | 1788 | Make it the current folder." |
| 1789 | (pop-to-buffer name) | 1789 | (mh-pop-to-buffer-same-window name) |
| 1790 | (setq buffer-read-only nil) | 1790 | (setq buffer-read-only nil) |
| 1791 | (erase-buffer) | 1791 | (erase-buffer) |
| 1792 | (if mh-adaptive-cmd-note-flag | 1792 | (if mh-adaptive-cmd-note-flag |
diff --git a/lisp/mh-e/mh-mime.el b/lisp/mh-e/mh-mime.el index bc5080a5d30..0327b64a33f 100644 --- a/lisp/mh-e/mh-mime.el +++ b/lisp/mh-e/mh-mime.el | |||
| @@ -1690,19 +1690,19 @@ buffer, while END defaults to the end of the buffer." | |||
| 1690 | (unless begin (setq begin (point-min))) | 1690 | (unless begin (setq begin (point-min))) |
| 1691 | (unless end (setq end (point-max))) | 1691 | (unless end (setq end (point-max))) |
| 1692 | (save-excursion | 1692 | (save-excursion |
| 1693 | (block 'search-for-mh-directive | 1693 | (block search-for-mh-directive |
| 1694 | (goto-char begin) | 1694 | (goto-char begin) |
| 1695 | (while (re-search-forward "^#" end t) | 1695 | (while (re-search-forward "^#" end t) |
| 1696 | (let ((s (buffer-substring-no-properties | 1696 | (let ((s (buffer-substring-no-properties |
| 1697 | (point) (mh-line-end-position)))) | 1697 | (point) (mh-line-end-position)))) |
| 1698 | (cond ((equal s "")) | 1698 | (cond ((equal s "")) |
| 1699 | ((string-match "^forw[ \t\n]+" s) | 1699 | ((string-match "^forw[ \t\n]+" s) |
| 1700 | (return-from 'search-for-mh-directive t)) | 1700 | (return-from search-for-mh-directive t)) |
| 1701 | (t (let ((first-token (car (split-string s "[ \t;@]")))) | 1701 | (t (let ((first-token (car (split-string s "[ \t;@]")))) |
| 1702 | (when (and first-token | 1702 | (when (and first-token |
| 1703 | (string-match mh-media-type-regexp | 1703 | (string-match mh-media-type-regexp |
| 1704 | first-token)) | 1704 | first-token)) |
| 1705 | (return-from 'search-for-mh-directive t))))))) | 1705 | (return-from search-for-mh-directive t))))))) |
| 1706 | nil))) | 1706 | nil))) |
| 1707 | 1707 | ||
| 1708 | (defun mh-minibuffer-read-type (filename &optional default) | 1708 | (defun mh-minibuffer-read-type (filename &optional default) |
diff --git a/lisp/mh-e/mh-xface.el b/lisp/mh-e/mh-xface.el index 1c7531b59d1..179b552d536 100644 --- a/lisp/mh-e/mh-xface.el +++ b/lisp/mh-e/mh-xface.el | |||
| @@ -207,7 +207,7 @@ The directories are searched for in the order they appear in the list.") | |||
| 207 | (cond (cached-value (return-from mh-picon-get-image cached-value)) | 207 | (cond (cached-value (return-from mh-picon-get-image cached-value)) |
| 208 | ((not host-list) (return-from mh-picon-get-image nil))) | 208 | ((not host-list) (return-from mh-picon-get-image nil))) |
| 209 | (setq match | 209 | (setq match |
| 210 | (block 'loop | 210 | (block loop |
| 211 | ;; u@h search | 211 | ;; u@h search |
| 212 | (loop for dir in mh-picon-existing-directory-list | 212 | (loop for dir in mh-picon-existing-directory-list |
| 213 | do (loop for type in mh-picon-image-types | 213 | do (loop for type in mh-picon-image-types |
| @@ -215,15 +215,15 @@ The directories are searched for in the order they appear in the list.") | |||
| 215 | for file1 = (format "%s/%s.%s" | 215 | for file1 = (format "%s/%s.%s" |
| 216 | dir canonical-address type) | 216 | dir canonical-address type) |
| 217 | when (file-exists-p file1) | 217 | when (file-exists-p file1) |
| 218 | do (return-from 'loop file1) | 218 | do (return-from loop file1) |
| 219 | ;; [path]user | 219 | ;; [path]user |
| 220 | for file2 = (format "%s/%s.%s" dir user type) | 220 | for file2 = (format "%s/%s.%s" dir user type) |
| 221 | when (file-exists-p file2) | 221 | when (file-exists-p file2) |
| 222 | do (return-from 'loop file2) | 222 | do (return-from loop file2) |
| 223 | ;; [path]host | 223 | ;; [path]host |
| 224 | for file3 = (format "%s/%s.%s" dir host type) | 224 | for file3 = (format "%s/%s.%s" dir host type) |
| 225 | when (file-exists-p file3) | 225 | when (file-exists-p file3) |
| 226 | do (return-from 'loop file3))) | 226 | do (return-from loop file3))) |
| 227 | ;; facedb search | 227 | ;; facedb search |
| 228 | ;; Search order for user@foo.net: | 228 | ;; Search order for user@foo.net: |
| 229 | ;; [path]net/foo/user | 229 | ;; [path]net/foo/user |
| @@ -241,11 +241,11 @@ The directories are searched for in the order they appear in the list.") | |||
| 241 | do (loop for type in mh-picon-image-types | 241 | do (loop for type in mh-picon-image-types |
| 242 | for z1 = (format "%s.%s" y type) | 242 | for z1 = (format "%s.%s" y type) |
| 243 | when (file-exists-p z1) | 243 | when (file-exists-p z1) |
| 244 | do (return-from 'loop z1) | 244 | do (return-from loop z1) |
| 245 | for z2 = (format "%s/face.%s" | 245 | for z2 = (format "%s/face.%s" |
| 246 | y type) | 246 | y type) |
| 247 | when (file-exists-p z2) | 247 | when (file-exists-p z2) |
| 248 | do (return-from 'loop z2))))))) | 248 | do (return-from loop z2))))))) |
| 249 | (setf (gethash canonical-address mh-picon-cache) | 249 | (setf (gethash canonical-address mh-picon-cache) |
| 250 | (mh-picon-file-contents match))))) | 250 | (mh-picon-file-contents match))))) |
| 251 | 251 | ||
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 3a9463f0f97..503698f0f7b 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -253,7 +253,7 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) | |||
| 253 | \\(?:-\\([0-9]+\\)?\\(?:\\.\\([0-9]+\\)\\)?\\)?:\ | 253 | \\(?:-\\([0-9]+\\)?\\(?:\\.\\([0-9]+\\)\\)?\\)?:\ |
| 254 | \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ | 254 | \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ |
| 255 | *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\|instantiated from\\|[Nn]ote\\)\\|\ | 255 | *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\|instantiated from\\|[Nn]ote\\)\\|\ |
| 256 | \[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)" | 256 | *[Ee]rror\\|\[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)" |
| 257 | 1 (2 . 4) (3 . 5) (6 . 7)) | 257 | 1 (2 . 4) (3 . 5) (6 . 7)) |
| 258 | 258 | ||
| 259 | (lcc | 259 | (lcc |
diff --git a/lisp/subr.el b/lisp/subr.el index 2b7ba17e10c..5c9d6c8d724 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -173,7 +173,7 @@ value of last one, or nil if there are none. | |||
| 173 | (progn | 173 | (progn |
| 174 | ;; If we reload subr.el after having loaded CL, be careful not to | 174 | ;; If we reload subr.el after having loaded CL, be careful not to |
| 175 | ;; overwrite CL's extended definition of `dolist', `dotimes', | 175 | ;; overwrite CL's extended definition of `dolist', `dotimes', |
| 176 | ;; `declare', `push', `pop' and `remove-duplicates'. | 176 | ;; `declare', `push' and `pop'. |
| 177 | 177 | ||
| 178 | (defmacro dolist (spec &rest body) | 178 | (defmacro dolist (spec &rest body) |
| 179 | "Loop over a list. | 179 | "Loop over a list. |
| @@ -250,15 +250,6 @@ the return value (nil if RESULT is omitted). | |||
| 250 | Treated as a declaration when used at the right place in a | 250 | Treated as a declaration when used at the right place in a |
| 251 | `defmacro' form. \(See Info anchor `(elisp)Definition of declare'.)" | 251 | `defmacro' form. \(See Info anchor `(elisp)Definition of declare'.)" |
| 252 | nil) | 252 | nil) |
| 253 | |||
| 254 | (defun remove-duplicates (list) | ||
| 255 | "Return a copy of LIST with all duplicate elements removed." | ||
| 256 | (let ((result nil)) | ||
| 257 | (while list | ||
| 258 | (unless (member (car list) result) | ||
| 259 | (push (car list) result)) | ||
| 260 | (pop list)) | ||
| 261 | (nreverse result))) | ||
| 262 | )) | 253 | )) |
| 263 | 254 | ||
| 264 | (defmacro ignore-errors (&rest body) | 255 | (defmacro ignore-errors (&rest body) |
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 930d3200234..a660bdb6488 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el | |||
| @@ -3060,7 +3060,7 @@ When called interactively, FORCE is t, CURRENT is t if current buffer uses | |||
| 3060 | ;; select BibTeX buffer | 3060 | ;; select BibTeX buffer |
| 3061 | (if select | 3061 | (if select |
| 3062 | (if buffer-list | 3062 | (if buffer-list |
| 3063 | (switch-to-buffer | 3063 | (pop-to-buffer-same-window |
| 3064 | (completing-read "Switch to BibTeX buffer: " | 3064 | (completing-read "Switch to BibTeX buffer: " |
| 3065 | (mapcar 'buffer-name buffer-list) | 3065 | (mapcar 'buffer-name buffer-list) |
| 3066 | nil t | 3066 | nil t |
| @@ -5179,7 +5179,7 @@ where FILE is the BibTeX file of ENTRY." | |||
| 5179 | (delete-dups | 5179 | (delete-dups |
| 5180 | (apply 'append | 5180 | (apply 'append |
| 5181 | bibtex-user-optional-fields | 5181 | bibtex-user-optional-fields |
| 5182 | (mapcar (lambda (x) (mapcar 'car (apply 'append (cdr x)))) | 5182 | (mapcar (lambda (x) (mapcar 'car (apply 'append (nthcdr 2 x)))) |
| 5183 | bibtex-entry-alist))) nil t) | 5183 | bibtex-entry-alist))) nil t) |
| 5184 | (read-string "Regexp: ") | 5184 | (read-string "Regexp: ") |
| 5185 | (if bibtex-search-entry-globally | 5185 | (if bibtex-search-entry-globally |