diff options
| author | Miles Bader | 2007-12-28 22:26:14 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-12-28 22:26:14 +0000 |
| commit | b17f53abc28496125965f36147b76ea5f6a2b4fb (patch) | |
| tree | 4293e53692f304327ba689dfeea32d1b0b5bc12a /lisp | |
| parent | 2e5093251c8e63f4546ffc30182dd4015e9a58fd (diff) | |
| parent | ea7ac2eb953bf3c30670e60cb00a9fca611b38b7 (diff) | |
| download | emacs-b17f53abc28496125965f36147b76ea5f6a2b4fb.tar.gz emacs-b17f53abc28496125965f36147b76ea5f6a2b4fb.zip | |
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-966
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 69 | ||||
| -rw-r--r-- | lisp/comint.el | 7 | ||||
| -rw-r--r-- | lisp/emacs-lisp/find-func.el | 1 | ||||
| -rw-r--r-- | lisp/faces.el | 7 | ||||
| -rw-r--r-- | lisp/files.el | 17 | ||||
| -rw-r--r-- | lisp/find-dired.el | 23 | ||||
| -rw-r--r-- | lisp/info.el | 5 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 5 | ||||
| -rw-r--r-- | lisp/mail/footnote.el | 7 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/asm-mode.el | 8 | ||||
| -rw-r--r-- | lisp/progmodes/cc-vars.el | 58 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 25 | ||||
| -rw-r--r-- | lisp/progmodes/grep.el | 4 | ||||
| -rw-r--r-- | lisp/replace.el | 5 | ||||
| -rw-r--r-- | lisp/simple.el | 15 | ||||
| -rw-r--r-- | lisp/startup.el | 4 | ||||
| -rw-r--r-- | lisp/textmodes/fill.el | 2 |
18 files changed, 192 insertions, 72 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7caab1fc466..37fe9fa861e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,72 @@ | |||
| 1 | 2007-12-29 Richard Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/compile.el (compilation-start): Set initial visible | ||
| 4 | point properly even when compilation buffer already current. | ||
| 5 | |||
| 6 | 2007-12-29 Richard Stallman <rms@gnu.org> | ||
| 7 | |||
| 8 | * files.el (conf-mode-maybe): New function. | ||
| 9 | (auto-mode-alist): Use conf-mode-maybe for .conf etc. | ||
| 10 | |||
| 11 | 2007-12-29 Martin Rudalics <rudalics@gmx.at> | ||
| 12 | |||
| 13 | * textmodes/fill.el (fill-find-break-point): Fix doc-string typo. | ||
| 14 | |||
| 15 | 2007-12-29 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 16 | |||
| 17 | * progmodes/asm-mode.el (asm-mode-map): Add a major mode menu. | ||
| 18 | |||
| 19 | 2007-12-29 Richard Stallman <rms@gnu.org> | ||
| 20 | |||
| 21 | * comint.el (comint-mode-map): Explicitly bind `delete' and `kp-delete' | ||
| 22 | so they never do EOF. | ||
| 23 | |||
| 24 | 2007-12-29 Richard Stallman <rms@gnu.org> | ||
| 25 | |||
| 26 | * faces.el (copy-face): Create the new face explicitly if it | ||
| 27 | does not exist already. | ||
| 28 | |||
| 29 | 2007-12-29 Eli Zaretskii <eliz@gnu.org> | ||
| 30 | |||
| 31 | * simple.el (minibuffer-history, shell-command-history) | ||
| 32 | (set-variable-value-history): | ||
| 33 | * replace.el (regexp-history): | ||
| 34 | * international/mule-cmds.el (input-method-history): | ||
| 35 | * files.el (file-name-history): Add reference to history-length in | ||
| 36 | the doc string. | ||
| 37 | |||
| 38 | 2007-12-29 Richard Stallman <rms@gnu.org> | ||
| 39 | |||
| 40 | * comint.el (comint-password-prompt-regexp): Match `Enter Password'. | ||
| 41 | |||
| 42 | 2007-12-29 Jason Rumney <jasonr@gnu.org> | ||
| 43 | |||
| 44 | * find-dired.el (find-name-arg): New custom variable. | ||
| 45 | (find-name-dired): Use it. | ||
| 46 | (find-dired-find-program): Remove. | ||
| 47 | (find-dired): Use find-program. | ||
| 48 | (find-grep-dired): Use grep-program. | ||
| 49 | |||
| 50 | * progmodes/grep.el (rgrep): Use find-name-arg. | ||
| 51 | |||
| 52 | 2007-12-29 Thien-Thi Nguyen <ttn@gnuvola.org> | ||
| 53 | |||
| 54 | * progmodes/cc-vars.el (defcustom-c-stylevar): | ||
| 55 | Revert to pre-2007-12-12 version. | ||
| 56 | |||
| 57 | 2007-12-29 Richard Stallman <rms@gnu.org> | ||
| 58 | |||
| 59 | * emacs-lisp/find-func.el (find-function-after-hook): Add :type. | ||
| 60 | |||
| 61 | * info.el (Info-clone-buffer): Renamed from Info-clone-buffer-hook. | ||
| 62 | Use changed. | ||
| 63 | |||
| 64 | * startup.el (fancy-splash-help-echo): Var deleted. | ||
| 65 | (fancy-splash-insert): Get help-echo from (startup-echo-area-message). | ||
| 66 | (fancy-about-screen): Don't display fancy-splash-help-echo. | ||
| 67 | |||
| 68 | * menu-bar.el (menu-bar-describe-menu): Remove dots from menu text. | ||
| 69 | |||
| 1 | 2007-12-28 Eric S. Raymond <esr@snark.thyrsus.com> | 70 | 2007-12-28 Eric S. Raymond <esr@snark.thyrsus.com> |
| 2 | 71 | ||
| 3 | * vc-hooks.el, vc.el: Move vc-directory-exclusion-list from vc.el | 72 | * vc-hooks.el, vc.el: Move vc-directory-exclusion-list from vc.el |
diff --git a/lisp/comint.el b/lisp/comint.el index f1d9243cc60..94b1842fb1c 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -336,8 +336,9 @@ This variable is buffer-local." | |||
| 336 | ;; plink prints a prompt like `Passphrase for key "root@GNU.ORG": '. | 336 | ;; plink prints a prompt like `Passphrase for key "root@GNU.ORG": '. |
| 337 | ;; Ubuntu's sudo prompts like `[sudo] password for user:' | 337 | ;; Ubuntu's sudo prompts like `[sudo] password for user:' |
| 338 | ;; Some implementations of passwd use "Password (again)" as the 2nd prompt. | 338 | ;; Some implementations of passwd use "Password (again)" as the 2nd prompt. |
| 339 | ;; Something called "perforce" uses "Enter password:". | ||
| 339 | (defcustom comint-password-prompt-regexp | 340 | (defcustom comint-password-prompt-regexp |
| 340 | "\\(\\([Oo]ld \\|[Nn]ew \\|'s \\|login \\|\ | 341 | "\\(\\(Enter \\|[Oo]ld \\|[Nn]ew \\|'s \\|login \\|\ |
| 341 | Kerberos \\|CVS \\|UNIX \\| SMB \\|LDAP \\|\\[sudo] \\|^\\)\ | 342 | Kerberos \\|CVS \\|UNIX \\| SMB \\|LDAP \\|\\[sudo] \\|^\\)\ |
| 342 | \[Pp]assword\\( (again)\\)?\\|\ | 343 | \[Pp]assword\\( (again)\\)?\\|\ |
| 343 | pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\ | 344 | pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\ |
| @@ -452,6 +453,10 @@ executed once when the buffer is created." | |||
| 452 | (define-key map "\e\C-l" 'comint-show-output) | 453 | (define-key map "\e\C-l" 'comint-show-output) |
| 453 | (define-key map "\C-m" 'comint-send-input) | 454 | (define-key map "\C-m" 'comint-send-input) |
| 454 | (define-key map "\C-d" 'comint-delchar-or-maybe-eof) | 455 | (define-key map "\C-d" 'comint-delchar-or-maybe-eof) |
| 456 | ;; The following two are standardly aliased to C-d, | ||
| 457 | ;; but they should never do EOF, just delete. | ||
| 458 | (define-key map [delete] 'delete-char) | ||
| 459 | (define-key map [kp-delete] 'delete-char) | ||
| 455 | (define-key map "\C-c " 'comint-accumulate) | 460 | (define-key map "\C-c " 'comint-accumulate) |
| 456 | (define-key map "\C-c\C-x" 'comint-get-next-from-history) | 461 | (define-key map "\C-c\C-x" 'comint-get-next-from-history) |
| 457 | (define-key map "\C-c\C-a" 'comint-bol-or-process-mark) | 462 | (define-key map "\C-c\C-a" 'comint-bol-or-process-mark) |
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el index 24e26827f7c..4aa4590371a 100644 --- a/lisp/emacs-lisp/find-func.el +++ b/lisp/emacs-lisp/find-func.el | |||
| @@ -133,6 +133,7 @@ See `find-function' and `find-variable'." | |||
| 133 | "Hook run after finding symbol definition. | 133 | "Hook run after finding symbol definition. |
| 134 | 134 | ||
| 135 | See the functions `find-function' and `find-variable'." | 135 | See the functions `find-function' and `find-variable'." |
| 136 | :type 'hook | ||
| 136 | :group 'find-function | 137 | :group 'find-function |
| 137 | :version "20.3") | 138 | :version "20.3") |
| 138 | 139 | ||
diff --git a/lisp/faces.el b/lisp/faces.el index 88b0c54039a..925b76844e9 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -158,13 +158,18 @@ and for each existing frame. | |||
| 158 | 158 | ||
| 159 | If the optional fourth argument NEW-FRAME is given, | 159 | If the optional fourth argument NEW-FRAME is given, |
| 160 | copy the information from face OLD-FACE on frame FRAME | 160 | copy the information from face OLD-FACE on frame FRAME |
| 161 | to NEW-FACE on frame NEW-FRAME." | 161 | to NEW-FACE on frame NEW-FRAME. In this case, FRAME may not be nil." |
| 162 | (let ((inhibit-quit t)) | 162 | (let ((inhibit-quit t)) |
| 163 | (if (null frame) | 163 | (if (null frame) |
| 164 | (progn | 164 | (progn |
| 165 | (when new-frame | ||
| 166 | (error "Copying face %s from all frames to one frame" | ||
| 167 | old-face)) | ||
| 168 | (make-empty-face new-face) | ||
| 165 | (dolist (frame (frame-list)) | 169 | (dolist (frame (frame-list)) |
| 166 | (copy-face old-face new-face frame)) | 170 | (copy-face old-face new-face frame)) |
| 167 | (copy-face old-face new-face t)) | 171 | (copy-face old-face new-face t)) |
| 172 | (make-empty-face new-face) | ||
| 168 | (internal-copy-lisp-face old-face new-face frame new-frame)) | 173 | (internal-copy-lisp-face old-face new-face frame new-frame)) |
| 169 | new-face)) | 174 | new-face)) |
| 170 | 175 | ||
diff --git a/lisp/files.el b/lisp/files.el index 70a07ea5eff..dec47ce362e 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -525,7 +525,10 @@ using \\[toggle-read-only]." | |||
| 525 | :group 'view) | 525 | :group 'view) |
| 526 | 526 | ||
| 527 | (defvar file-name-history nil | 527 | (defvar file-name-history nil |
| 528 | "History list of file names entered in the minibuffer.") | 528 | "History list of file names entered in the minibuffer. |
| 529 | |||
| 530 | Maximum length of the history list is determined by the value | ||
| 531 | of `history-length', which see.") | ||
| 529 | 532 | ||
| 530 | (put 'ange-ftp-completion-hook-function 'safe-magic t) | 533 | (put 'ange-ftp-completion-hook-function 'safe-magic t) |
| 531 | (defun ange-ftp-completion-hook-function (op &rest args) | 534 | (defun ange-ftp-completion-hook-function (op &rest args) |
| @@ -2092,7 +2095,7 @@ ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\)\\'" . archive-mode) | |||
| 2092 | ("java.+\\.conf\\'" . conf-javaprop-mode) | 2095 | ("java.+\\.conf\\'" . conf-javaprop-mode) |
| 2093 | ("\\.properties\\(?:\\.[a-zA-Z0-9._-]+\\)?\\'" . conf-javaprop-mode) | 2096 | ("\\.properties\\(?:\\.[a-zA-Z0-9._-]+\\)?\\'" . conf-javaprop-mode) |
| 2094 | ;; *.cf, *.cfg, *.conf, *.config[.local|.de_DE.UTF8|...], */config | 2097 | ;; *.cf, *.cfg, *.conf, *.config[.local|.de_DE.UTF8|...], */config |
| 2095 | ("[/.]c\\(?:on\\)?f\\(?:i?g\\)?\\(?:\\.[a-zA-Z0-9._-]+\\)?\\'" . conf-mode) | 2098 | ("[/.]c\\(?:on\\)?f\\(?:i?g\\)?\\(?:\\.[a-zA-Z0-9._-]+\\)?\\'" . conf-mode-maybe) |
| 2096 | ("\\`/etc/\\(?:DIR_COLORS\\|ethers\\|.?fstab\\|.*hosts\\|lesskey\\|login\\.?de\\(?:fs\\|vperm\\)\\|magic\\|mtab\\|pam\\.d/.*\\|permissions\\(?:\\.d/.+\\)?\\|protocols\\|rpc\\|services\\)\\'" . conf-space-mode) | 2099 | ("\\`/etc/\\(?:DIR_COLORS\\|ethers\\|.?fstab\\|.*hosts\\|lesskey\\|login\\.?de\\(?:fs\\|vperm\\)\\|magic\\|mtab\\|pam\\.d/.*\\|permissions\\(?:\\.d/.+\\)?\\|protocols\\|rpc\\|services\\)\\'" . conf-space-mode) |
| 2097 | ("\\`/etc/\\(?:acpid?/.+\\|aliases\\(?:\\.d/.+\\)?\\|default/.+\\|group-?\\|hosts\\..+\\|inittab\\|ksysguarddrc\\|opera6rc\\|passwd-?\\|shadow-?\\|sysconfig/.+\\)\\'" . conf-mode) | 2100 | ("\\`/etc/\\(?:acpid?/.+\\|aliases\\(?:\\.d/.+\\)?\\|default/.+\\|group-?\\|hosts\\..+\\|inittab\\|ksysguarddrc\\|opera6rc\\|passwd-?\\|shadow-?\\|sysconfig/.+\\)\\'" . conf-mode) |
| 2098 | ;; ChangeLog.old etc. Other change-log-mode entries are above; | 2101 | ;; ChangeLog.old etc. Other change-log-mode entries are above; |
| @@ -2139,6 +2142,16 @@ See also `interpreter-mode-alist', which detects executable script modes | |||
| 2139 | based on the interpreters they specify to run, | 2142 | based on the interpreters they specify to run, |
| 2140 | and `magic-mode-alist', which determines modes based on file contents.") | 2143 | and `magic-mode-alist', which determines modes based on file contents.") |
| 2141 | 2144 | ||
| 2145 | (defun conf-mode-maybe () | ||
| 2146 | "Select Conf mode or XML mode according to start of file." | ||
| 2147 | (if (save-excursion | ||
| 2148 | (save-restriction | ||
| 2149 | (widen) | ||
| 2150 | (goto-char (point-min)) | ||
| 2151 | (looking-at "<\\?xml \\|<!-- \\|<!DOCTYPE "))) | ||
| 2152 | (xml-mode) | ||
| 2153 | (conf-mode))) | ||
| 2154 | |||
| 2142 | (defvar interpreter-mode-alist | 2155 | (defvar interpreter-mode-alist |
| 2143 | ;; Note: The entries for the modes defined in cc-mode.el (awk-mode | 2156 | ;; Note: The entries for the modes defined in cc-mode.el (awk-mode |
| 2144 | ;; and pike-mode) are added through autoload directives in that | 2157 | ;; and pike-mode) are added through autoload directives in that |
diff --git a/lisp/find-dired.el b/lisp/find-dired.el index 0a3de850762..8a8304c6763 100644 --- a/lisp/find-dired.el +++ b/lisp/find-dired.el | |||
| @@ -36,11 +36,6 @@ | |||
| 36 | :group 'dired | 36 | :group 'dired |
| 37 | :prefix "find-") | 37 | :prefix "find-") |
| 38 | 38 | ||
| 39 | (defcustom find-dired-find-program "find" | ||
| 40 | "Program used to find files." | ||
| 41 | :group 'dired | ||
| 42 | :type 'file) | ||
| 43 | |||
| 44 | ;; find's -ls corresponds to these switches. | 39 | ;; find's -ls corresponds to these switches. |
| 45 | ;; Note -b, at least GNU find quotes spaces etc. in filenames | 40 | ;; Note -b, at least GNU find quotes spaces etc. in filenames |
| 46 | ;;;###autoload | 41 | ;;;###autoload |
| @@ -77,6 +72,18 @@ On other systems, the closest you can come is to use `-l'." | |||
| 77 | :type 'string | 72 | :type 'string |
| 78 | :group 'find-dired) | 73 | :group 'find-dired) |
| 79 | 74 | ||
| 75 | ;;;###autoload | ||
| 76 | (defcustom find-name-arg | ||
| 77 | (if read-file-name-completion-ignore-case | ||
| 78 | "-iname" | ||
| 79 | "-name") | ||
| 80 | "*Argument used to specify file name pattern. | ||
| 81 | If `read-file-name-completion-ignore-case' is non-nil, -iname is used so that | ||
| 82 | find also ignores case. Otherwise, -name is used." | ||
| 83 | :type 'string | ||
| 84 | :group 'find-dired | ||
| 85 | :version "22.2") | ||
| 86 | |||
| 80 | (defvar find-args nil | 87 | (defvar find-args nil |
| 81 | "Last arguments given to `find' by \\[find-dired].") | 88 | "Last arguments given to `find' by \\[find-dired].") |
| 82 | 89 | ||
| @@ -126,7 +133,7 @@ as the final argument." | |||
| 126 | (erase-buffer) | 133 | (erase-buffer) |
| 127 | (setq default-directory dir | 134 | (setq default-directory dir |
| 128 | find-args args ; save for next interactive call | 135 | find-args args ; save for next interactive call |
| 129 | args (concat find-dired-find-program " . " | 136 | args (concat find-program " . " |
| 130 | (if (string= args "") | 137 | (if (string= args "") |
| 131 | "" | 138 | "" |
| 132 | (concat | 139 | (concat |
| @@ -198,7 +205,7 @@ The command run (after changing into DIR) is | |||
| 198 | find . -name 'PATTERN' -ls" | 205 | find . -name 'PATTERN' -ls" |
| 199 | (interactive | 206 | (interactive |
| 200 | "DFind-name (directory): \nsFind-name (filename wildcard): ") | 207 | "DFind-name (directory): \nsFind-name (filename wildcard): ") |
| 201 | (find-dired dir (concat "-name " (shell-quote-argument pattern)))) | 208 | (find-dired dir (concat find-name-arg " " (shell-quote-argument pattern)))) |
| 202 | 209 | ||
| 203 | ;; This functionality suggested by | 210 | ;; This functionality suggested by |
| 204 | ;; From: oblanc@watcgl.waterloo.edu (Olivier Blanc) | 211 | ;; From: oblanc@watcgl.waterloo.edu (Olivier Blanc) |
| @@ -222,7 +229,7 @@ Thus ARG can also contain additional grep options." | |||
| 222 | ;; by FIFOs and devices. I'm not sure what's best to do | 229 | ;; by FIFOs and devices. I'm not sure what's best to do |
| 223 | ;; about symlinks, so as far as I know this is not wrong. | 230 | ;; about symlinks, so as far as I know this is not wrong. |
| 224 | (find-dired dir | 231 | (find-dired dir |
| 225 | (concat "-type f -exec grep " find-grep-options " -e " | 232 | (concat "-type f -exec " grep-program " " find-grep-options " -e " |
| 226 | (shell-quote-argument regexp) | 233 | (shell-quote-argument regexp) |
| 227 | " " | 234 | " " |
| 228 | (shell-quote-argument "{}") | 235 | (shell-quote-argument "{}") |
diff --git a/lisp/info.el b/lisp/info.el index 2d396a105d8..b842cc2adb6 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -3472,7 +3472,7 @@ Advanced commands: | |||
| 3472 | (setq widen-automatically nil) | 3472 | (setq widen-automatically nil) |
| 3473 | (setq desktop-save-buffer 'Info-desktop-buffer-misc-data) | 3473 | (setq desktop-save-buffer 'Info-desktop-buffer-misc-data) |
| 3474 | (add-hook 'kill-buffer-hook 'Info-kill-buffer nil t) | 3474 | (add-hook 'kill-buffer-hook 'Info-kill-buffer nil t) |
| 3475 | (add-hook 'clone-buffer-hook 'Info-clone-buffer-hook nil t) | 3475 | (add-hook 'clone-buffer-hook 'Info-clone-buffer nil t) |
| 3476 | (add-hook 'change-major-mode-hook 'font-lock-defontify nil t) | 3476 | (add-hook 'change-major-mode-hook 'font-lock-defontify nil t) |
| 3477 | (add-hook 'isearch-mode-hook 'Info-isearch-start nil t) | 3477 | (add-hook 'isearch-mode-hook 'Info-isearch-start nil t) |
| 3478 | (set (make-local-variable 'isearch-search-fun-function) | 3478 | (set (make-local-variable 'isearch-search-fun-function) |
| @@ -3495,7 +3495,8 @@ Advanced commands: | |||
| 3495 | Info-tag-table-buffer | 3495 | Info-tag-table-buffer |
| 3496 | (kill-buffer Info-tag-table-buffer))) | 3496 | (kill-buffer Info-tag-table-buffer))) |
| 3497 | 3497 | ||
| 3498 | (defun Info-clone-buffer-hook () | 3498 | ;; Placed on `clone-buffer-hook'. |
| 3499 | (defun Info-clone-buffer () | ||
| 3499 | (when (bufferp Info-tag-table-buffer) | 3500 | (when (bufferp Info-tag-table-buffer) |
| 3500 | (setq Info-tag-table-buffer | 3501 | (setq Info-tag-table-buffer |
| 3501 | (with-current-buffer Info-tag-table-buffer (clone-buffer)))) | 3502 | (with-current-buffer Info-tag-table-buffer (clone-buffer)))) |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index f8dc141943f..ef3d7fbf13e 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -1339,7 +1339,10 @@ This is the input method activated automatically by the command | |||
| 1339 | (put 'input-method-function 'permanent-local t) | 1339 | (put 'input-method-function 'permanent-local t) |
| 1340 | 1340 | ||
| 1341 | (defvar input-method-history nil | 1341 | (defvar input-method-history nil |
| 1342 | "History list for some commands that read input methods.") | 1342 | "History list of input methods read from the minibuffer. |
| 1343 | |||
| 1344 | Maximum length of the history list is determined by the value | ||
| 1345 | of `history-length', which see.") | ||
| 1343 | (make-variable-buffer-local 'input-method-history) | 1346 | (make-variable-buffer-local 'input-method-history) |
| 1344 | (put 'input-method-history 'permanent-local t) | 1347 | (put 'input-method-history 'permanent-local t) |
| 1345 | 1348 | ||
diff --git a/lisp/mail/footnote.el b/lisp/mail/footnote.el index b94f3bc8297..a3a9cfc8058 100644 --- a/lisp/mail/footnote.el +++ b/lisp/mail/footnote.el | |||
| @@ -327,7 +327,8 @@ Conversion is done based upon the current selected style." | |||
| 327 | (defun Footnote-current-regexp () | 327 | (defun Footnote-current-regexp () |
| 328 | "Return the regexp of the index of the current style." | 328 | "Return the regexp of the index of the current style." |
| 329 | (concat (nth 2 (or (assq footnote-style footnote-style-alist) | 329 | (concat (nth 2 (or (assq footnote-style footnote-style-alist) |
| 330 | (nth 0 footnote-style-alist))) "*")) | 330 | (nth 0 footnote-style-alist))) |
| 331 | "*")) | ||
| 331 | 332 | ||
| 332 | (defun Footnote-refresh-footnotes (&optional index-regexp) | 333 | (defun Footnote-refresh-footnotes (&optional index-regexp) |
| 333 | "Redraw all footnotes. | 334 | "Redraw all footnotes. |
| @@ -345,7 +346,7 @@ styles." | |||
| 345 | (search-backward footnote-start-tag nil t) | 346 | (search-backward footnote-start-tag nil t) |
| 346 | (when (looking-at (concat | 347 | (when (looking-at (concat |
| 347 | (regexp-quote footnote-start-tag) | 348 | (regexp-quote footnote-start-tag) |
| 348 | "\\(" index-regexp "\\)" | 349 | "\\(" index-regexp "+\\)" |
| 349 | (regexp-quote footnote-end-tag))) | 350 | (regexp-quote footnote-end-tag))) |
| 350 | (replace-match (concat | 351 | (replace-match (concat |
| 351 | footnote-start-tag | 352 | footnote-start-tag |
| @@ -361,7 +362,7 @@ styles." | |||
| 361 | (goto-char (cdr alist)) | 362 | (goto-char (cdr alist)) |
| 362 | (when (looking-at (concat | 363 | (when (looking-at (concat |
| 363 | (regexp-quote footnote-start-tag) | 364 | (regexp-quote footnote-start-tag) |
| 364 | "\\(" index-regexp "\\)" | 365 | "\\(" index-regexp "+\\)" |
| 365 | (regexp-quote footnote-end-tag))) | 366 | (regexp-quote footnote-end-tag))) |
| 366 | (replace-match (concat | 367 | (replace-match (concat |
| 367 | footnote-start-tag | 368 | footnote-start-tag |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 2f4c95d6484..7a4233018e9 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -1216,7 +1216,7 @@ mail status in mode line")) | |||
| 1216 | :visible default-enable-multibyte-characters | 1216 | :visible default-enable-multibyte-characters |
| 1217 | :help "Display multilingual environment settings")) | 1217 | :help "Display multilingual environment settings")) |
| 1218 | (define-key menu-bar-describe-menu [describe-coding-system-briefly] | 1218 | (define-key menu-bar-describe-menu [describe-coding-system-briefly] |
| 1219 | '(menu-item "Describe Coding System (Briefly)..." | 1219 | '(menu-item "Describe Coding System (Briefly)" |
| 1220 | describe-current-coding-system-briefly | 1220 | describe-current-coding-system-briefly |
| 1221 | :visible default-enable-multibyte-characters)) | 1221 | :visible default-enable-multibyte-characters)) |
| 1222 | (define-key menu-bar-describe-menu [describe-coding-system] | 1222 | (define-key menu-bar-describe-menu [describe-coding-system] |
diff --git a/lisp/progmodes/asm-mode.el b/lisp/progmodes/asm-mode.el index d38e6170a23..591adbd4392 100644 --- a/lisp/progmodes/asm-mode.el +++ b/lisp/progmodes/asm-mode.el | |||
| @@ -79,6 +79,14 @@ | |||
| 79 | (define-key map "\C-c;" 'comment-region) | 79 | (define-key map "\C-c;" 'comment-region) |
| 80 | (define-key map "\C-j" 'newline-and-indent) | 80 | (define-key map "\C-j" 'newline-and-indent) |
| 81 | (define-key map "\C-m" 'newline-and-indent) | 81 | (define-key map "\C-m" 'newline-and-indent) |
| 82 | (define-key map [menu-bar] (make-sparse-keymap)) | ||
| 83 | (define-key map [menu-bar asm-mode] (cons "Asm" map)) | ||
| 84 | (define-key map [asm-colon] | ||
| 85 | '("Insert Colon" . asm-colon)) | ||
| 86 | (define-key map [comment-region] | ||
| 87 | '("Comment Region" . comment-region)) | ||
| 88 | (define-key map [newline-and-indent] | ||
| 89 | '("Insert Newline and Indent" . newline-and-indent)) | ||
| 82 | map) | 90 | map) |
| 83 | "Keymap for Asm mode.") | 91 | "Keymap for Asm mode.") |
| 84 | 92 | ||
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el index 6110ab2250f..b1fcdc22241 100644 --- a/lisp/progmodes/cc-vars.el +++ b/lisp/progmodes/cc-vars.el | |||
| @@ -156,44 +156,34 @@ Useful as last item in a `choice' widget." | |||
| 156 | (setq c-fallback-style (cons (cons name val) c-fallback-style))) | 156 | (setq c-fallback-style (cons (cons name val) c-fallback-style))) |
| 157 | 157 | ||
| 158 | (defmacro defcustom-c-stylevar (name val doc &rest args) | 158 | (defmacro defcustom-c-stylevar (name val doc &rest args) |
| 159 | "Define a style variable NAME with VAL and DOC. | 159 | "Defines a style variable." |
| 160 | More precisely, convert the given `:type FOO', mined out of ARGS, | 160 | `(let ((-value- ,val)) |
| 161 | to an aggregate `:type (radio STYLE (PREAMBLE FOO))', append some | 161 | (c-set-stylevar-fallback ',name -value-) |
| 162 | some boilerplate documentation to DOC, arrange for the fallback | 162 | (custom-declare-variable |
| 163 | value of NAME to be VAL, and call `custom-declare-variable' to | 163 | ',name ''set-from-style |
| 164 | do the rest of the work. | 164 | ,(concat doc " |
| 165 | |||
| 166 | STYLE stands for the choice where the value is taken from some | ||
| 167 | style setting. PREAMBLE is optionally prepended to FOO; that is, | ||
| 168 | if FOO contains :tag or :value, the respective two-element list | ||
| 169 | component is ignored." | ||
| 170 | (declare (debug (symbolp form stringp &rest))) | ||
| 171 | (let* ((expanded-doc (concat doc " | ||
| 172 | 165 | ||
| 173 | This is a style variable. Apart from the valid values described | 166 | This is a style variable. Apart from the valid values described |
| 174 | above, it can be set to the symbol `set-from-style'. In that case, | 167 | above, it can be set to the symbol `set-from-style'. In that case, it |
| 175 | it takes its value from the style system (see `c-default-style' and | 168 | takes its value from the style system (see `c-default-style' and |
| 176 | `c-style-alist') when a CC Mode buffer is initialized. Otherwise, | 169 | `c-style-alist') when a CC Mode buffer is initialized. Otherwise, |
| 177 | the value set here overrides the style system (there is a variable | 170 | the value set here overrides the style system (there is a variable |
| 178 | `c-old-style-variable-behavior' that changes this, though).")) | 171 | `c-old-style-variable-behavior' that changes this, though).") |
| 179 | (typ (eval (plist-get args :type))) | 172 | ,@(plist-put |
| 180 | (type (if (consp typ) typ (list typ))) | 173 | args ':type |
| 181 | (head (car type)) | 174 | `(` (radio |
| 182 | (tail (cdr type)) | 175 | (const :tag "Use style settings" |
| 183 | (newt (append (unless (plist-get tail :tag) | 176 | set-from-style) |
| 184 | '(:tag "Override style settings")) | 177 | ,(, (let ((type (eval (plist-get args ':type)))) |
| 185 | (unless (plist-get tail :value) | 178 | (unless (consp type) |
| 186 | `(:value ,(eval val))) | 179 | (setq type (list type))) |
| 187 | tail)) | 180 | (unless (c-safe (plist-get (cdr type) ':value)) |
| 188 | (aggregate `'(radio | 181 | (setcdr type (append '(:value (, -value-)) |
| 189 | (const :tag "Use style settings" set-from-style) | 182 | (cdr type)))) |
| 190 | ,(cons head newt)))) | 183 | (unless (c-safe (plist-get (cdr type) ':tag)) |
| 191 | `(progn | 184 | (setcdr type (append '(:tag "Override style settings") |
| 192 | (c-set-stylevar-fallback ',name ,val) | 185 | (cdr type)))) |
| 193 | (custom-declare-variable | 186 | (bq-process type))))))))) |
| 194 | ',name ''set-from-style | ||
| 195 | ,expanded-doc | ||
| 196 | ,@(plist-put args :type aggregate))))) | ||
| 197 | 187 | ||
| 198 | (defun c-valid-offset (offset) | 188 | (defun c-valid-offset (offset) |
| 199 | "Return non-nil if OFFSET is a valid offset for a syntactic symbol. | 189 | "Return non-nil if OFFSET is a valid offset for a syntactic symbol. |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 9a7b3eb5c08..6781862889c 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -1163,10 +1163,6 @@ Returns the compilation buffer created." | |||
| 1163 | command "\n") | 1163 | command "\n") |
| 1164 | (setq thisdir default-directory)) | 1164 | (setq thisdir default-directory)) |
| 1165 | (set-buffer-modified-p nil)) | 1165 | (set-buffer-modified-p nil)) |
| 1166 | ;; If we're already in the compilation buffer, go to the end | ||
| 1167 | ;; of the buffer, so point will track the compilation output. | ||
| 1168 | (if (eq outbuf (current-buffer)) | ||
| 1169 | (goto-char (point-max))) | ||
| 1170 | ;; Pop up the compilation buffer. | 1166 | ;; Pop up the compilation buffer. |
| 1171 | ;; http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01638.html | 1167 | ;; http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01638.html |
| 1172 | (setq outwin (display-buffer outbuf)) | 1168 | (setq outwin (display-buffer outbuf)) |
| @@ -1192,10 +1188,18 @@ Returns the compilation buffer created." | |||
| 1192 | (set (make-local-variable 'revert-buffer-function) | 1188 | (set (make-local-variable 'revert-buffer-function) |
| 1193 | 'compilation-revert-buffer) | 1189 | 'compilation-revert-buffer) |
| 1194 | (set-window-start outwin (point-min)) | 1190 | (set-window-start outwin (point-min)) |
| 1195 | (or (eq outwin (selected-window)) | 1191 | |
| 1196 | (set-window-point outwin (if compilation-scroll-output | 1192 | ;; Position point as the user will see it. |
| 1197 | (point) | 1193 | (let ((desired-visible-point |
| 1198 | (point-min)))) | 1194 | ;; Put it at the end if `compilation-scroll-output' is set. |
| 1195 | (if compilation-scroll-output | ||
| 1196 | (point-max) | ||
| 1197 | ;; Normally put it at the top. | ||
| 1198 | (point-min)))) | ||
| 1199 | (if (eq outwin (selected-window)) | ||
| 1200 | (goto-char desired-visible-point) | ||
| 1201 | (set-window-point outwin desired-visible-point))) | ||
| 1202 | |||
| 1199 | ;; The setup function is called before compilation-set-window-height | 1203 | ;; The setup function is called before compilation-set-window-height |
| 1200 | ;; so it can set the compilation-window-height buffer locally. | 1204 | ;; so it can set the compilation-window-height buffer locally. |
| 1201 | (if compilation-process-setup-function | 1205 | (if compilation-process-setup-function |
| @@ -1219,7 +1223,10 @@ Returns the compilation buffer created." | |||
| 1219 | (setq mode-line-process '(":%s")) | 1223 | (setq mode-line-process '(":%s")) |
| 1220 | (set-process-sentinel proc 'compilation-sentinel) | 1224 | (set-process-sentinel proc 'compilation-sentinel) |
| 1221 | (set-process-filter proc 'compilation-filter) | 1225 | (set-process-filter proc 'compilation-filter) |
| 1222 | (set-marker (process-mark proc) (point) outbuf) | 1226 | ;; Use (point-max) here so that output comes in |
| 1227 | ;; after the initial text, | ||
| 1228 | ;; regardless of where the user sees point. | ||
| 1229 | (set-marker (process-mark proc) (point-max) outbuf) | ||
| 1223 | (when compilation-disable-input | 1230 | (when compilation-disable-input |
| 1224 | (condition-case nil | 1231 | (condition-case nil |
| 1225 | (process-send-eof proc) | 1232 | (process-send-eof proc) |
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index f811fce6e7f..062fce4c346 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el | |||
| @@ -839,10 +839,10 @@ This command shares argument histories with \\[lgrep] and \\[grep-find]." | |||
| 839 | grep-find-template | 839 | grep-find-template |
| 840 | regexp | 840 | regexp |
| 841 | (concat (shell-quote-argument "(") | 841 | (concat (shell-quote-argument "(") |
| 842 | " -name " | 842 | " " find-name-arg " " |
| 843 | (mapconcat #'shell-quote-argument | 843 | (mapconcat #'shell-quote-argument |
| 844 | (split-string files) | 844 | (split-string files) |
| 845 | " -o -name ") | 845 | (concat " -o " find-name-arg " ")) |
| 846 | " " | 846 | " " |
| 847 | (shell-quote-argument ")")) | 847 | (shell-quote-argument ")")) |
| 848 | dir | 848 | dir |
diff --git a/lisp/replace.el b/lisp/replace.el index 8bd3bec20a0..b76c64085c2 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -519,7 +519,10 @@ which will run faster and will not set the mark or print anything." | |||
| 519 | 519 | ||
| 520 | 520 | ||
| 521 | (defvar regexp-history nil | 521 | (defvar regexp-history nil |
| 522 | "History list for some commands that read regular expressions.") | 522 | "History list for some commands that read regular expressions. |
| 523 | |||
| 524 | Maximum length of the history list is determined by the value | ||
| 525 | of `history-length', which see.") | ||
| 523 | 526 | ||
| 524 | 527 | ||
| 525 | (defalias 'delete-non-matching-lines 'keep-lines) | 528 | (defalias 'delete-non-matching-lines 'keep-lines) |
diff --git a/lisp/simple.el b/lisp/simple.el index 0cbec53fe66..b92967da112 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -1166,7 +1166,10 @@ to get different commands to edit and resubmit." | |||
| 1166 | (defvar minibuffer-history nil | 1166 | (defvar minibuffer-history nil |
| 1167 | "Default minibuffer history list. | 1167 | "Default minibuffer history list. |
| 1168 | This is used for all minibuffer input | 1168 | This is used for all minibuffer input |
| 1169 | except when an alternate history list is specified.") | 1169 | except when an alternate history list is specified. |
| 1170 | |||
| 1171 | Maximum length of the history list is determined by the value | ||
| 1172 | of `history-length', which see.") | ||
| 1170 | (defvar minibuffer-history-sexp-flag nil | 1173 | (defvar minibuffer-history-sexp-flag nil |
| 1171 | "Control whether history list elements are expressions or strings. | 1174 | "Control whether history list elements are expressions or strings. |
| 1172 | If the value of this variable equals current minibuffer depth, | 1175 | If the value of this variable equals current minibuffer depth, |
| @@ -1901,7 +1904,10 @@ You can disable the popping up of this buffer by adding the entry | |||
| 1901 | t)) | 1904 | t)) |
| 1902 | 1905 | ||
| 1903 | (defvar shell-command-history nil | 1906 | (defvar shell-command-history nil |
| 1904 | "History list for some commands that read shell commands.") | 1907 | "History list for some commands that read shell commands. |
| 1908 | |||
| 1909 | Maximum length of the history list is determined by the value | ||
| 1910 | of `history-length', which see.") | ||
| 1905 | 1911 | ||
| 1906 | (defvar shell-command-switch "-c" | 1912 | (defvar shell-command-switch "-c" |
| 1907 | "Switch used to have the shell execute its command line argument.") | 1913 | "Switch used to have the shell execute its command line argument.") |
| @@ -5015,7 +5021,10 @@ Each action has the form (FUNCTION . ARGS)." | |||
| 5015 | 'switch-to-buffer-other-frame yank-action send-actions)) | 5021 | 'switch-to-buffer-other-frame yank-action send-actions)) |
| 5016 | 5022 | ||
| 5017 | (defvar set-variable-value-history nil | 5023 | (defvar set-variable-value-history nil |
| 5018 | "History of values entered with `set-variable'.") | 5024 | "History of values entered with `set-variable'. |
| 5025 | |||
| 5026 | Maximum length of the history list is determined by the value | ||
| 5027 | of `history-length', which see.") | ||
| 5019 | 5028 | ||
| 5020 | (defun set-variable (variable value &optional make-local) | 5029 | (defun set-variable (variable value &optional make-local) |
| 5021 | "Set VARIABLE to VALUE. VALUE is a Lisp object. | 5030 | "Set VARIABLE to VALUE. VALUE is a Lisp object. |
diff --git a/lisp/startup.el b/lisp/startup.el index ee06faea022..1faf63efa78 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1319,8 +1319,6 @@ Each element in the list should be a list of strings or pairs | |||
| 1319 | 1319 | ||
| 1320 | ;; These are temporary storage areas for the splash screen display. | 1320 | ;; These are temporary storage areas for the splash screen display. |
| 1321 | 1321 | ||
| 1322 | (defvar fancy-splash-help-echo nil) | ||
| 1323 | |||
| 1324 | (defun fancy-splash-insert (&rest args) | 1322 | (defun fancy-splash-insert (&rest args) |
| 1325 | "Insert text into the current buffer, with faces. | 1323 | "Insert text into the current buffer, with faces. |
| 1326 | Arguments from ARGS should be either strings; functions called | 1324 | Arguments from ARGS should be either strings; functions called |
| @@ -1354,7 +1352,7 @@ a face or button specification." | |||
| 1354 | (funcall it) | 1352 | (funcall it) |
| 1355 | it)) | 1353 | it)) |
| 1356 | 'face current-face | 1354 | 'face current-face |
| 1357 | 'help-echo fancy-splash-help-echo)))) | 1355 | 'help-echo (startup-echo-area-message))))) |
| 1358 | (setq args (cdr args))))) | 1356 | (setq args (cdr args))))) |
| 1359 | 1357 | ||
| 1360 | 1358 | ||
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 5c6638a51e9..54e45d6b28f 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el | |||
| @@ -391,7 +391,7 @@ Don't move back past the buffer position LIMIT. | |||
| 391 | This function is called when we are going to break the current line | 391 | This function is called when we are going to break the current line |
| 392 | after or before a non-ASCII character. If the charset of the | 392 | after or before a non-ASCII character. If the charset of the |
| 393 | character has the property `fill-find-break-point-function', this | 393 | character has the property `fill-find-break-point-function', this |
| 394 | function calls the property value as a function with one arg LINEBEG. | 394 | function calls the property value as a function with one arg LIMIT. |
| 395 | If the charset has no such property, do nothing." | 395 | If the charset has no such property, do nothing." |
| 396 | (let* ((ch (following-char)) | 396 | (let* ((ch (following-char)) |
| 397 | (charset (char-charset ch)) | 397 | (charset (char-charset ch)) |