diff options
| author | Miles Bader | 2005-02-06 12:06:02 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-02-06 12:06:02 +0000 |
| commit | a359f0e0ff878285654e2f0bcc7bd3b4340c778c (patch) | |
| tree | cc0aff13c751bb8ab7ccaae29082bab32e15fd13 /lisp | |
| parent | f3d3402885646e6fa79f1ad59fb8a1f9017851d7 (diff) | |
| parent | 56c30d721096a64f151f9ea6e3c76562380da895 (diff) | |
| download | emacs-a359f0e0ff878285654e2f0bcc7bd3b4340c778c.tar.gz emacs-a359f0e0ff878285654e2f0bcc7bd3b4340c778c.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-11
Merge from emacs--cvs-trunk--0
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-69
- miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-71
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-72
src/dispextern.h (xassert): Enable unconditionally.
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-73
- miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-81
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-82
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-12
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-13
Update from CVS
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 122 | ||||
| -rw-r--r-- | lisp/calc/calc-embed.el | 15 | ||||
| -rw-r--r-- | lisp/calc/calc-lang.el | 29 | ||||
| -rw-r--r-- | lisp/case-table.el | 36 | ||||
| -rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 10 | ||||
| -rw-r--r-- | lisp/faces.el | 24 | ||||
| -rw-r--r-- | lisp/font-core.el | 8 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 11 | ||||
| -rw-r--r-- | lisp/help-fns.el | 1 | ||||
| -rw-r--r-- | lisp/help.el | 20 | ||||
| -rw-r--r-- | lisp/hi-lock.el | 4 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 9 | ||||
| -rw-r--r-- | lisp/net/ldap.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 39 | ||||
| -rw-r--r-- | lisp/progmodes/gud.el | 14 | ||||
| -rw-r--r-- | lisp/textmodes/ispell.el | 5 | ||||
| -rw-r--r-- | lisp/textmodes/reftex.el | 5 | ||||
| -rw-r--r-- | lisp/x-dnd.el | 26 |
19 files changed, 294 insertions, 93 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5722db8f6b1..a38b40db6e1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,107 @@ | |||
| 1 | 2005-02-05 Arne_J,Ax(Brgensen <arne@arnested.dk> (tiny change) | ||
| 2 | |||
| 3 | * net/ldap.el (ldap-search-internal): Support attributes with | ||
| 4 | optional descriptions separated by a semi-colon, as in | ||
| 5 | "userCertificate;binary". | ||
| 6 | |||
| 7 | 2005-02-05 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 8 | |||
| 9 | * x-dnd.el (x-dnd-handle-xdnd): Handle the case where the flags | ||
| 10 | isn't a cons (i.e. the version is 0). | ||
| 11 | |||
| 12 | 2005-02-05 Eli Zaretskii <eliz@gnu.org> | ||
| 13 | |||
| 14 | * help.el (help-for-help): Doc fix. | ||
| 15 | |||
| 16 | 2005-02-05 Nick Roberts <nickrob@snap.net.nz> | ||
| 17 | |||
| 18 | * progmodes/gdb-ui.el: Update copyright. Put GDB-Frames before | ||
| 19 | GDB-Windows on the menu-bar as this works better. | ||
| 20 | |||
| 21 | 2005-02-04 Jay Belanger <belanger@truman.edu> | ||
| 22 | |||
| 23 | * calc/calc-embed.el (calc-embedded-update): Don't put in | ||
| 24 | unnecessary newlines. Adjust the end of formula marker. | ||
| 25 | |||
| 26 | * calc/calc-lang.el (math-latex-parse-frac): Don't use arguments. | ||
| 27 | (math-latex-parse-two-args): New function. | ||
| 28 | |||
| 29 | 2005-02-03 Lute Kamstra <lute@gnu.org> | ||
| 30 | |||
| 31 | * help-fns.el (help-with-tutorial): Make sure that users cannot | ||
| 32 | remove the entire text of the tutorial by means of `undo'. | ||
| 33 | |||
| 34 | 2005-02-03 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 35 | |||
| 36 | * textmodes/ispell.el (ispell-internal-change-dictionary): Fix problem | ||
| 37 | in recent changes, where the ispell process was repeatedly | ||
| 38 | killed & restarted. | ||
| 39 | |||
| 40 | * international/mule-cmds.el (set-locale-environment): Set file-name | ||
| 41 | coding system to utf-8 on Darwin systems. | ||
| 42 | (set-default-coding-systems): Don't set default-file-name-coding-system | ||
| 43 | on Darwin systems. | ||
| 44 | |||
| 45 | 2005-02-03 Richard M. Stallman <rms@gnu.org> | ||
| 46 | |||
| 47 | * hi-lock.el (hi-lock-mode): Turning on Hi-Lock turns on Font-Lock. | ||
| 48 | |||
| 49 | 2005-02-03 Matt Hodges <MPHodges@member.fsf.org> | ||
| 50 | |||
| 51 | * faces.el (list-faces-display): Add optional argument. | ||
| 52 | |||
| 53 | 2005-02-02 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 54 | |||
| 55 | * font-core.el (font-lock-default-function): Handle the rare case where | ||
| 56 | only font-lock-keywords is set. | ||
| 57 | |||
| 58 | 2005-02-02 Kenichi Handa <handa@m17n.org> | ||
| 59 | |||
| 60 | * international/characters.el: Cancel previous change for | ||
| 61 | I-WITH-DOT-ABOVE and DOTLESS-i. | ||
| 62 | |||
| 63 | * international/latin-5.el: Cancel previous change. | ||
| 64 | |||
| 65 | 2005-02-02 Nick Roberts <nickrob@snap.net.nz> | ||
| 66 | |||
| 67 | * progmodes/gud.el: Correction to syntax in gud-menu-map. | ||
| 68 | |||
| 69 | 2005-02-02 Kenichi Handa <handa@m17n.org> | ||
| 70 | |||
| 71 | * international/latin-5.el (tbl): Setup cases of I-WITH-DOT-ABOVE, | ||
| 72 | DOTLESS-i. | ||
| 73 | |||
| 74 | * international/characters.el: Setup cases of GREEK-FINAL-SIGMA, | ||
| 75 | Y-WITH-DIAERESIS, I-WITH-DOT-ABOVE, DOTLESS-i. | ||
| 76 | |||
| 77 | * case-table.el (get-upcase-table): New function. | ||
| 78 | (copy-case-table): Copy upcaes table too if non-nil. | ||
| 79 | (set-case-syntax-delims): Maintain upcase table too. | ||
| 80 | (set-case-syntax-pair): Likewise. | ||
| 81 | (set-upcase-syntax, set-downcase-syntax): New functions. | ||
| 82 | (set-case-syntax): Maintain upcase table too. | ||
| 83 | |||
| 84 | 2005-02-02 Nick Roberts <nickrob@snap.net.nz> | ||
| 85 | |||
| 86 | * progmodes/gdb-ui.el: (gdb-goto-info): Delete. | ||
| 87 | |||
| 88 | * progmodes/gud.el (gud-goto-info): New function. | ||
| 89 | (gud-tool-bar-map): Use correct icon. | ||
| 90 | |||
| 91 | 2005-02-01 Thien-Thi Nguyen <ttn@gnu.org> | ||
| 92 | |||
| 93 | * emacs-lisp/lisp-mode.el (lisp-indent-function): Fix bug: | ||
| 94 | When delegating, order args in the funcall correctly. | ||
| 95 | |||
| 96 | 2005-02-01 Thien-Thi Nguyen <ttn@gnu.org> | ||
| 97 | |||
| 98 | * emacs-lisp/lisp-mode.el (lisp-indent-function): Doc fix. | ||
| 99 | |||
| 100 | 2005-02-01 Carsten Dominik <dominik@science.uva.nl> | ||
| 101 | |||
| 102 | * textmodes/reftex.el (reftex-access-scan-info): Error out in a | ||
| 103 | buffer not visiting a file. | ||
| 104 | |||
| 1 | 2005-01-31 Jay Belanger <belanger@truman.edu> | 105 | 2005-01-31 Jay Belanger <belanger@truman.edu> |
| 2 | 106 | ||
| 3 | * calc/calc-embed.el (calc-embedded-find-bounds): Set the formula | 107 | * calc/calc-embed.el (calc-embedded-find-bounds): Set the formula |
| @@ -111,7 +215,7 @@ | |||
| 111 | 215 | ||
| 112 | 2005-01-29 Richard M. Stallman <rms@gnu.org> | 216 | 2005-01-29 Richard M. Stallman <rms@gnu.org> |
| 113 | 217 | ||
| 114 | * ses.el (undo-more): defadvice deleted. | 218 | * ses.el (undo-more): Delete defadvice. |
| 115 | (ses-begin-change): Doc fix. | 219 | (ses-begin-change): Doc fix. |
| 116 | 220 | ||
| 117 | * dired.el (dired-mode-map): Remap `undo' and `advertised-undo' | 221 | * dired.el (dired-mode-map): Remap `undo' and `advertised-undo' |
| @@ -129,7 +233,7 @@ | |||
| 129 | 233 | ||
| 130 | * simple.el (undo): Fix the test for continuing a series of undos. | 234 | * simple.el (undo): Fix the test for continuing a series of undos. |
| 131 | (undo-more): Set pending-undo-list to t when we reach end. | 235 | (undo-more): Set pending-undo-list to t when we reach end. |
| 132 | (pending-undo-list): defvar moved up. | 236 | (pending-undo-list): Move up defvar. |
| 133 | 237 | ||
| 134 | * wid-edit.el (widget-button-click): | 238 | * wid-edit.el (widget-button-click): |
| 135 | Shorten the range of the track-mouse binding. | 239 | Shorten the range of the track-mouse binding. |
| @@ -154,6 +258,20 @@ | |||
| 154 | (gdb-assembler-custom): Update to recognise breakpoint information | 258 | (gdb-assembler-custom): Update to recognise breakpoint information |
| 155 | added on 2005-01-19. | 259 | added on 2005-01-19. |
| 156 | 260 | ||
| 261 | 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 262 | |||
| 263 | * progmodes/scheme.el (scheme-mode-variables): Set comment-add. | ||
| 264 | (dsssl-mode): Use define-derived-mode. | ||
| 265 | (scheme-mode-initialize): Remove. | ||
| 266 | (scheme-mode): Use run-mode-hooks. | ||
| 267 | |||
| 268 | * cus-edit.el (customize-group-other-window) | ||
| 269 | (custom-buffer-create-other-window): Don't override special-display-*. | ||
| 270 | (custom-mode-map): Make it dense. | ||
| 271 | |||
| 272 | * emacs-lisp/lisp-mode.el (eval-defun-1): Make sure `defvar' always | ||
| 273 | sets the default value. | ||
| 274 | |||
| 157 | 2005-01-28 Eli Zaretskii <eliz@gnu.org> | 275 | 2005-01-28 Eli Zaretskii <eliz@gnu.org> |
| 158 | 276 | ||
| 159 | * descr-text.el: Add more keywords. | 277 | * descr-text.el: Add more keywords. |
diff --git a/lisp/calc/calc-embed.el b/lisp/calc/calc-embed.el index 4c6311c9a5b..e3b3b6b5b19 100644 --- a/lisp/calc/calc-embed.el +++ b/lisp/calc/calc-embed.el | |||
| @@ -967,19 +967,24 @@ The command \\[yank] can retrieve it from there." | |||
| 967 | (calc-embedded-original-buffer t info) | 967 | (calc-embedded-original-buffer t info) |
| 968 | (or (equal str (aref info 6)) | 968 | (or (equal str (aref info 6)) |
| 969 | (let ((delta (- (aref info 5) (aref info 3))) | 969 | (let ((delta (- (aref info 5) (aref info 3))) |
| 970 | (adjbot 0) | ||
| 970 | (buffer-read-only nil)) | 971 | (buffer-read-only nil)) |
| 971 | (goto-char (aref info 2)) | 972 | (goto-char (aref info 2)) |
| 972 | (delete-region (point) (aref info 3)) | 973 | (delete-region (point) (aref info 3)) |
| 973 | (and (> (nth 1 entry) (1+ extra)) | 974 | (and (> (nth 1 entry) (1+ extra)) |
| 974 | (aref info 7) | 975 | (aref info 7) |
| 975 | (progn | 976 | (progn |
| 976 | (aset info 7 nil) | ||
| 977 | (delete-horizontal-space) | 977 | (delete-horizontal-space) |
| 978 | (insert "\n\n") | 978 | (if (looking-at "\n") |
| 979 | (delete-horizontal-space) | 979 | ;; If there's a newline there, don't add one |
| 980 | (backward-char 1))) | 980 | (insert "\n") |
| 981 | (insert "\n\n") | ||
| 982 | (delete-horizontal-space) | ||
| 983 | (setq adjbot 1) | ||
| 984 | ; (setq delta (1+ delta)) | ||
| 985 | (backward-char 1)))) | ||
| 981 | (insert str) | 986 | (insert str) |
| 982 | (set-marker (aref info 3) (point)) | 987 | (set-marker (aref info 3) (+ (point) adjbot)) |
| 983 | (set-marker (aref info 5) (+ (point) delta)) | 988 | (set-marker (aref info 5) (+ (point) delta)) |
| 984 | (aset info 6 str)))))) | 989 | (aset info 6 str)))))) |
| 985 | (if (eq (car-safe val) 'calcFunc-evalto) | 990 | (if (eq (car-safe val) 'calcFunc-evalto) |
diff --git a/lisp/calc/calc-lang.el b/lisp/calc/calc-lang.el index d91d78fc461..63d24bb76d5 100644 --- a/lisp/calc/calc-lang.el +++ b/lisp/calc/calc-lang.el | |||
| @@ -469,12 +469,12 @@ | |||
| 469 | (put 'latex 'math-function-table | 469 | (put 'latex 'math-function-table |
| 470 | (append | 470 | (append |
| 471 | (get 'tex 'math-function-table) | 471 | (get 'tex 'math-function-table) |
| 472 | '(( \\frac . (math-latex-parse-frac /)) | 472 | '(( \\frac . (math-latex-parse-frac)) |
| 473 | ( \\tfrac . (math-latex-parse-frac /)) | 473 | ( \\tfrac . (math-latex-parse-frac)) |
| 474 | ( \\dfrac . (math-latex-parse-frac /)) | 474 | ( \\dfrac . (math-latex-parse-frac)) |
| 475 | ( \\binom . (math-latex-parse-frac calcFunc-choose)) | 475 | ( \\binom . (math-latex-parse-two-args calcFunc-choose)) |
| 476 | ( \\tbinom . (math-latex-parse-frac calcFunc-choose)) | 476 | ( \\tbinom . (math-latex-parse-two-args calcFunc-choose)) |
| 477 | ( \\dbinom . (math-latex-parse-frac calcFunc-choose)) | 477 | ( \\dbinom . (math-latex-parse-two-args calcFunc-choose)) |
| 478 | ( \\phi . calcFunc-totient ) | 478 | ( \\phi . calcFunc-totient ) |
| 479 | ( \\mu . calcFunc-moebius )))) | 479 | ( \\mu . calcFunc-moebius )))) |
| 480 | 480 | ||
| @@ -487,12 +487,23 @@ | |||
| 487 | 487 | ||
| 488 | (put 'latex 'math-complex-format 'i) | 488 | (put 'latex 'math-complex-format 'i) |
| 489 | 489 | ||
| 490 | |||
| 490 | (defun math-latex-parse-frac (f val) | 491 | (defun math-latex-parse-frac (f val) |
| 491 | (let (numer denom) | 492 | (let (numer denom) |
| 492 | (setq args (math-read-expr-list)) | 493 | (setq numer (car (math-read-expr-list))) |
| 494 | (math-read-token) | ||
| 495 | (setq denom (math-read-factor)) | ||
| 496 | (if (and (Math-num-integerp numer) | ||
| 497 | (Math-num-integerp denom)) | ||
| 498 | (list 'frac numer denom) | ||
| 499 | (list '/ numer denom)))) | ||
| 500 | |||
| 501 | (defun math-latex-parse-two-args (f val) | ||
| 502 | (let (first second) | ||
| 503 | (setq first (car (math-read-expr-list))) | ||
| 493 | (math-read-token) | 504 | (math-read-token) |
| 494 | (setq margs (math-read-factor)) | 505 | (setq second (math-read-factor)) |
| 495 | (list (nth 2 f) (car args) margs))) | 506 | (list (nth 2 f) first second))) |
| 496 | 507 | ||
| 497 | (defun math-latex-print-frac (a fn) | 508 | (defun math-latex-print-frac (a fn) |
| 498 | (list 'horiz (nth 1 fn) "{" (math-compose-expr (nth 1 a) -1) | 509 | (list 'horiz (nth 1 fn) "{" (math-compose-expr (nth 1 a) -1) |
diff --git a/lisp/case-table.el b/lisp/case-table.el index 747e90c28f5..c3da621a9dd 100644 --- a/lisp/case-table.el +++ b/lisp/case-table.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; case-table.el --- code to extend the character set and support case tables | 1 | ;;; case-table.el --- code to extend the character set and support case tables |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1988, 1994 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1988, 1994, 2005 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Howard Gayle | 5 | ;; Author: Howard Gayle |
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| @@ -60,11 +60,26 @@ | |||
| 60 | (describe-vector description) | 60 | (describe-vector description) |
| 61 | (help-mode))))) | 61 | (help-mode))))) |
| 62 | 62 | ||
| 63 | (defun get-upcase-table (case-table) | ||
| 64 | "Return the upcase table of CASE-TABLE." | ||
| 65 | (or (char-table-extra-slot case-table 0) | ||
| 66 | ;; Setup all extra slots of CASE-TABLE by temporarily selecting | ||
| 67 | ;; it as the standard case table. | ||
| 68 | (let ((old (standard-case-table))) | ||
| 69 | (unwind-protect | ||
| 70 | (progn | ||
| 71 | (set-standard-case-table case-table) | ||
| 72 | (char-table-extra-slot case-table 0)) | ||
| 73 | (or (eq case-table old) | ||
| 74 | (set-standard-case-table old)))))) | ||
| 75 | |||
| 63 | (defun copy-case-table (case-table) | 76 | (defun copy-case-table (case-table) |
| 64 | (let ((copy (copy-sequence case-table))) | 77 | (let ((copy (copy-sequence case-table)) |
| 65 | ;; Clear out the extra slots so that they will be | 78 | (up (char-table-extra-slot case-table 0))) |
| 66 | ;; recomputed from the main (downcase) table. | 79 | ;; Clear out the extra slots (except for upcase table) so that |
| 67 | (set-char-table-extra-slot copy 0 nil) | 80 | ;; they will be recomputed from the main (downcase) table. |
| 81 | (if up | ||
| 82 | (set-char-table-extra-slot copy 0 (copy-sequence up))) | ||
| 68 | (set-char-table-extra-slot copy 1 nil) | 83 | (set-char-table-extra-slot copy 1 nil) |
| 69 | (set-char-table-extra-slot copy 2 nil) | 84 | (set-char-table-extra-slot copy 2 nil) |
| 70 | copy)) | 85 | copy)) |
| @@ -77,9 +92,11 @@ It also modifies `standard-syntax-table' to | |||
| 77 | indicate left and right delimiters." | 92 | indicate left and right delimiters." |
| 78 | (aset table l l) | 93 | (aset table l l) |
| 79 | (aset table r r) | 94 | (aset table r r) |
| 95 | (let ((up (get-upcase-table table))) | ||
| 96 | (aset up l l) | ||
| 97 | (aset up r r)) | ||
| 80 | ;; Clear out the extra slots so that they will be | 98 | ;; Clear out the extra slots so that they will be |
| 81 | ;; recomputed from the main (downcase) table. | 99 | ;; recomputed from the main (downcase) table and upcase table. |
| 82 | (set-char-table-extra-slot table 0 nil) | ||
| 83 | (set-char-table-extra-slot table 1 nil) | 100 | (set-char-table-extra-slot table 1 nil) |
| 84 | (set-char-table-extra-slot table 2 nil) | 101 | (set-char-table-extra-slot table 2 nil) |
| 85 | (modify-syntax-entry l (concat "(" (char-to-string r) " ") | 102 | (modify-syntax-entry l (concat "(" (char-to-string r) " ") |
| @@ -110,9 +127,10 @@ that will be used as the downcase part of a case table. | |||
| 110 | It also modifies `standard-syntax-table'. | 127 | It also modifies `standard-syntax-table'. |
| 111 | SYNTAX should be \" \", \"w\", \".\" or \"_\"." | 128 | SYNTAX should be \" \", \"w\", \".\" or \"_\"." |
| 112 | (aset table c c) | 129 | (aset table c c) |
| 130 | (let ((up (get-upcase-table table))) | ||
| 131 | (aset up c c)) | ||
| 113 | ;; Clear out the extra slots so that they will be | 132 | ;; Clear out the extra slots so that they will be |
| 114 | ;; recomputed from the main (downcase) table. | 133 | ;; recomputed from the main (downcase) table and upcase table. |
| 115 | (set-char-table-extra-slot table 0 nil) | ||
| 116 | (set-char-table-extra-slot table 1 nil) | 134 | (set-char-table-extra-slot table 1 nil) |
| 117 | (set-char-table-extra-slot table 2 nil) | 135 | (set-char-table-extra-slot table 2 nil) |
| 118 | (modify-syntax-entry c syntax (standard-syntax-table))) | 136 | (modify-syntax-entry c syntax (standard-syntax-table))) |
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 86c3ac1bab4..6b5c0b1c0f1 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -881,11 +881,11 @@ which has a non-nil property `lisp-indent-function', | |||
| 881 | that specifies how to do the indentation. The property value can be | 881 | that specifies how to do the indentation. The property value can be |
| 882 | * `defun', meaning indent `defun'-style; | 882 | * `defun', meaning indent `defun'-style; |
| 883 | * an integer N, meaning indent the first N arguments specially | 883 | * an integer N, meaning indent the first N arguments specially |
| 884 | like ordinary function arguments and then indent any further | 884 | like ordinary function arguments and then indent any further |
| 885 | aruments like a body; | 885 | arguments like a body; |
| 886 | * a function to call just as this function was called. | 886 | * a function to call just as this function was called. |
| 887 | If that function returns nil, that means it doesn't specify | 887 | If that function returns nil, that means it doesn't specify |
| 888 | the indentation. | 888 | the indentation. |
| 889 | 889 | ||
| 890 | This function also returns nil meaning don't specify the indentation." | 890 | This function also returns nil meaning don't specify the indentation." |
| 891 | (let ((normal-indent (current-column))) | 891 | (let ((normal-indent (current-column))) |
| @@ -921,7 +921,7 @@ This function also returns nil meaning don't specify the indentation." | |||
| 921 | (lisp-indent-specform method state | 921 | (lisp-indent-specform method state |
| 922 | indent-point normal-indent)) | 922 | indent-point normal-indent)) |
| 923 | (method | 923 | (method |
| 924 | (funcall method state indent-point))))))) | 924 | (funcall method indent-point state))))))) |
| 925 | 925 | ||
| 926 | (defvar lisp-body-indent 2 | 926 | (defvar lisp-body-indent 2 |
| 927 | "Number of columns to indent the second line of a `(def...)' form.") | 927 | "Number of columns to indent the second line of a `(def...)' form.") |
diff --git a/lisp/faces.el b/lisp/faces.el index 5efcc30cfea..0185541ecef 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -1143,15 +1143,26 @@ Value is a list (FACE NEW-VALUE) where FACE is the face read | |||
| 1143 | ;; conflict with Lucid, which uses that name differently. | 1143 | ;; conflict with Lucid, which uses that name differently. |
| 1144 | 1144 | ||
| 1145 | (defvar help-xref-stack) | 1145 | (defvar help-xref-stack) |
| 1146 | (defun list-faces-display () | 1146 | (defun list-faces-display (&optional regexp) |
| 1147 | "List all faces, using the same sample text in each. | 1147 | "List all faces, using the same sample text in each. |
| 1148 | The sample text is a string that comes from the variable | 1148 | The sample text is a string that comes from the variable |
| 1149 | `list-faces-sample-text'." | 1149 | `list-faces-sample-text'. |
| 1150 | (interactive) | 1150 | |
| 1151 | If REGEXP is non-nil, list only those faces with names matching | ||
| 1152 | this regular expression. When called interactively with a prefix | ||
| 1153 | arg, prompt for a regular expression." | ||
| 1154 | (interactive (list (and current-prefix-arg | ||
| 1155 | (read-string "List faces matching regexp: ")))) | ||
| 1151 | (let ((faces (sort (face-list) #'string-lessp)) | 1156 | (let ((faces (sort (face-list) #'string-lessp)) |
| 1152 | (face nil) | ||
| 1153 | (frame (selected-frame)) | 1157 | (frame (selected-frame)) |
| 1154 | disp-frame window face-name) | 1158 | disp-frame window face-name) |
| 1159 | (when (> (length regexp) 0) | ||
| 1160 | (setq faces | ||
| 1161 | (delq nil | ||
| 1162 | (mapcar (lambda (f) | ||
| 1163 | (when (string-match regexp (symbol-name f)) | ||
| 1164 | f)) | ||
| 1165 | faces)))) | ||
| 1155 | (with-output-to-temp-buffer "*Faces*" | 1166 | (with-output-to-temp-buffer "*Faces*" |
| 1156 | (save-excursion | 1167 | (save-excursion |
| 1157 | (set-buffer standard-output) | 1168 | (set-buffer standard-output) |
| @@ -1164,9 +1175,7 @@ The sample text is a string that comes from the variable | |||
| 1164 | "\\[help-follow] on a face name to customize it\n" | 1175 | "\\[help-follow] on a face name to customize it\n" |
| 1165 | "or on its sample text for a description of the face.\n\n"))) | 1176 | "or on its sample text for a description of the face.\n\n"))) |
| 1166 | (setq help-xref-stack nil) | 1177 | (setq help-xref-stack nil) |
| 1167 | (while faces | 1178 | (dolist (face faces) |
| 1168 | (setq face (car faces)) | ||
| 1169 | (setq faces (cdr faces)) | ||
| 1170 | (setq face-name (symbol-name face)) | 1179 | (setq face-name (symbol-name face)) |
| 1171 | (insert (format "%25s " face-name)) | 1180 | (insert (format "%25s " face-name)) |
| 1172 | ;; Hyperlink to a customization buffer for the face. Using | 1181 | ;; Hyperlink to a customization buffer for the face. Using |
| @@ -1208,6 +1217,7 @@ The sample text is a string that comes from the variable | |||
| 1208 | (copy-face (car faces) (car faces) frame disp-frame) | 1217 | (copy-face (car faces) (car faces) frame disp-frame) |
| 1209 | (setq faces (cdr faces))))))) | 1218 | (setq faces (cdr faces))))))) |
| 1210 | 1219 | ||
| 1220 | |||
| 1211 | (defun describe-face (face &optional frame) | 1221 | (defun describe-face (face &optional frame) |
| 1212 | "Display the properties of face FACE on FRAME. | 1222 | "Display the properties of face FACE on FRAME. |
| 1213 | Interactively, FACE defaults to the faces of the character after point | 1223 | Interactively, FACE defaults to the faces of the character after point |
diff --git a/lisp/font-core.el b/lisp/font-core.el index ce4a35a0ec3..bbe1961e51e 100644 --- a/lisp/font-core.el +++ b/lisp/font-core.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; font-core.el --- Core interface to font-lock | 1 | ;;; font-core.el --- Core interface to font-lock |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 1999, 2000, 2001, 02, 2003 | 3 | ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; 2002, 2003, 2005 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| 7 | ;; Keywords: languages, faces | 7 | ;; Keywords: languages, faces |
| @@ -202,6 +202,7 @@ this function onto `change-major-mode-hook'." | |||
| 202 | ;; Only do hard work if the mode has specified stuff in | 202 | ;; Only do hard work if the mode has specified stuff in |
| 203 | ;; `font-lock-defaults'. | 203 | ;; `font-lock-defaults'. |
| 204 | (when (or font-lock-defaults | 204 | (when (or font-lock-defaults |
| 205 | (and (boundp 'font-lock-keywords) font-lock-keywords) | ||
| 205 | (cdr (assq major-mode font-lock-defaults-alist))) | 206 | (cdr (assq major-mode font-lock-defaults-alist))) |
| 206 | (font-lock-mode-internal mode))) | 207 | (font-lock-mode-internal mode))) |
| 207 | 208 | ||
| @@ -295,6 +296,5 @@ means that Font Lock mode is turned on for buffers in C and C++ modes only." | |||
| 295 | 296 | ||
| 296 | (provide 'font-core) | 297 | (provide 'font-core) |
| 297 | 298 | ||
| 299 | ;; arch-tag: f8c286e1-02f7-41d9-b89b-1b67780aed71 | ||
| 298 | ;;; font-core.el ends here | 300 | ;;; font-core.el ends here |
| 299 | |||
| 300 | ;;; arch-tag: f8c286e1-02f7-41d9-b89b-1b67780aed71 | ||
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index eb761d10b27..e0db7c194a7 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-02-03 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-art.el (gnus-mime-inline-part): Show the raw contents if a | ||
| 4 | prefix arg is neither nil nor a number, as info specifies. | ||
| 5 | |||
| 1 | 2005-01-30 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2005-01-30 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * gnus-art.el (gnus-article-mode): Turn off the "\ " non-break space. | 8 | * gnus-art.el (gnus-article-mode): Turn off the "\ " non-break space. |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 3f8e172c1a8..22d48c3eff0 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -4354,7 +4354,16 @@ are decompressed." | |||
| 4354 | (setq charset | 4354 | (setq charset |
| 4355 | (or (cdr (assq arg | 4355 | (or (cdr (assq arg |
| 4356 | gnus-summary-show-article-charset-alist)) | 4356 | gnus-summary-show-article-charset-alist)) |
| 4357 | (mm-read-coding-system "Charset: "))))) | 4357 | (mm-read-coding-system "Charset: ")))) |
| 4358 | (t | ||
| 4359 | (if (mm-handle-undisplayer handle) | ||
| 4360 | (mm-remove-part handle)) | ||
| 4361 | (setq contents | ||
| 4362 | (if (fboundp 'string-to-multibyte) | ||
| 4363 | (string-to-multibyte contents) | ||
| 4364 | (mapconcat | ||
| 4365 | (lambda (ch) (mm-string-as-multibyte (char-to-string ch))) | ||
| 4366 | contents ""))))) | ||
| 4358 | (forward-line 2) | 4367 | (forward-line 2) |
| 4359 | (mm-insert-inline handle | 4368 | (mm-insert-inline handle |
| 4360 | (if (and charset | 4369 | (if (and charset |
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index 9acadaa2fa6..4bf0a4775a0 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el | |||
| @@ -97,6 +97,7 @@ With ARG, you are asked to choose which language." | |||
| 97 | (forward-line 1) | 97 | (forward-line 1) |
| 98 | (newline (- n (/ n 2))))) | 98 | (newline (- n (/ n 2))))) |
| 99 | (goto-char (point-min)) | 99 | (goto-char (point-min)) |
| 100 | (setq buffer-undo-list nil) | ||
| 100 | (set-buffer-modified-p nil)))) | 101 | (set-buffer-modified-p nil)))) |
| 101 | 102 | ||
| 102 | ;;;###autoload | 103 | ;;;###autoload |
diff --git a/lisp/help.el b/lisp/help.el index f5831c9ab3f..5da7ef0c03a 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -186,7 +186,7 @@ If FUNCTION is nil, it applies `message', thus displaying the message." | |||
| 186 | \(Use SPC or DEL to scroll through this text. Type \\<help-map>\\[help-quit] to exit the Help command.) | 186 | \(Use SPC or DEL to scroll through this text. Type \\<help-map>\\[help-quit] to exit the Help command.) |
| 187 | 187 | ||
| 188 | a command-apropos. Give a substring, and see a list of commands | 188 | a command-apropos. Give a substring, and see a list of commands |
| 189 | (functions interactively callable) that contain | 189 | (functions that are interactively callable) that contain |
| 190 | that substring. See also the apropos command. | 190 | that substring. See also the apropos command. |
| 191 | b describe-bindings. Display table of all key bindings. | 191 | b describe-bindings. Display table of all key bindings. |
| 192 | c describe-key-briefly. Type a command key sequence; | 192 | c describe-key-briefly. Type a command key sequence; |
| @@ -194,24 +194,28 @@ c describe-key-briefly. Type a command key sequence; | |||
| 194 | C describe-coding-system. This describes either a specific coding system | 194 | C describe-coding-system. This describes either a specific coding system |
| 195 | (if you type its name) or the coding systems currently in use | 195 | (if you type its name) or the coding systems currently in use |
| 196 | (if you type just RET). | 196 | (if you type just RET). |
| 197 | e view-echo-area-messages. Show the `*Messages*' buffer. | 197 | e view-echo-area-messages. Show the buffer where the echo-area messages |
| 198 | f describe-function. Type a function name and get documentation of it. | 198 | are stored. |
| 199 | f describe-function. Type a function name and get its documentation. | ||
| 199 | F Info-goto-emacs-command-node. Type a function name; | 200 | F Info-goto-emacs-command-node. Type a function name; |
| 200 | it takes you to the Info node for that command. | 201 | it takes you to the on-line manual's section that describes |
| 202 | the command. | ||
| 201 | h Display the HELLO file which illustrates various scripts. | 203 | h Display the HELLO file which illustrates various scripts. |
| 202 | i info. The info documentation reader. | 204 | i info. The Info documentation reader: read on-line manuals. |
| 203 | I describe-input-method. Describe a specific input method (if you type | 205 | I describe-input-method. Describe a specific input method (if you type |
| 204 | its name) or the current input method (if you type just RET). | 206 | its name) or the current input method (if you type just RET). |
| 205 | k describe-key. Type a command key sequence; | 207 | k describe-key. Type a command key sequence; |
| 206 | it displays the full documentation. | 208 | it displays the full documentation for that key sequence. |
| 207 | K Info-goto-emacs-key-command-node. Type a command key sequence; | 209 | K Info-goto-emacs-key-command-node. Type a command key sequence; |
| 208 | it takes you to the Info node for the command bound to that key. | 210 | it takes you to the on-line manual's section that describes |
| 211 | the command bound to that key. | ||
| 209 | l view-lossage. Show last 100 characters you typed. | 212 | l view-lossage. Show last 100 characters you typed. |
| 210 | L describe-language-environment. This describes either a | 213 | L describe-language-environment. This describes either a |
| 211 | specific language environment (if you type its name) | 214 | specific language environment (if you type its name) |
| 212 | or the current language environment (if you type just RET). | 215 | or the current language environment (if you type just RET). |
| 213 | m describe-mode. Print documentation of current minor modes, | 216 | m describe-mode. Display documentation of current minor modes, |
| 214 | and the current major mode, including their special commands. | 217 | and the current major mode, including their special commands. |
| 218 | n view-emacs-news. Display news of recent Emacs changes. | ||
| 215 | p finder-by-keyword. Find packages matching a given topic keyword. | 219 | p finder-by-keyword. Find packages matching a given topic keyword. |
| 216 | s describe-syntax. Display contents of syntax table, plus explanations. | 220 | s describe-syntax. Display contents of syntax table, plus explanations. |
| 217 | S info-lookup-symbol. Display the definition of a specific symbol | 221 | S info-lookup-symbol. Display the definition of a specific symbol |
diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index 99eeb698171..81c7296760f 100644 --- a/lisp/hi-lock.el +++ b/lisp/hi-lock.el | |||
| @@ -294,6 +294,10 @@ is found. A mode is excluded if it's in the list `hi-lock-exclude-modes'." | |||
| 294 | (when (and (not hi-lock-mode-prev) hi-lock-mode) | 294 | (when (and (not hi-lock-mode-prev) hi-lock-mode) |
| 295 | (add-hook 'find-file-hooks 'hi-lock-find-file-hook) | 295 | (add-hook 'find-file-hooks 'hi-lock-find-file-hook) |
| 296 | (add-hook 'font-lock-mode-hook 'hi-lock-font-lock-hook) | 296 | (add-hook 'font-lock-mode-hook 'hi-lock-font-lock-hook) |
| 297 | (when (eq nil font-lock-defaults) | ||
| 298 | (setq font-lock-defaults '(nil))) | ||
| 299 | (unless font-lock-mode | ||
| 300 | (font-lock-mode 1)) | ||
| 297 | (define-key-after menu-bar-edit-menu [hi-lock] | 301 | (define-key-after menu-bar-edit-menu [hi-lock] |
| 298 | (cons "Regexp Highlighting" hi-lock-menu)) | 302 | (cons "Regexp Highlighting" hi-lock-menu)) |
| 299 | (dolist (buffer (buffer-list)) | 303 | (dolist (buffer (buffer-list)) |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 5953d499755..acebb3b8d70 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -332,7 +332,8 @@ This also sets the following values: | |||
| 332 | (or (local-variable-p 'buffer-file-coding-system buffer) | 332 | (or (local-variable-p 'buffer-file-coding-system buffer) |
| 333 | (ucs-set-table-for-input buffer)))) | 333 | (ucs-set-table-for-input buffer)))) |
| 334 | 334 | ||
| 335 | (if default-enable-multibyte-characters | 335 | (if (and default-enable-multibyte-characters (not (eq system-type 'darwin))) |
| 336 | ;; The file-name coding system on Darwin systems is always utf-8. | ||
| 336 | (setq default-file-name-coding-system coding-system)) | 337 | (setq default-file-name-coding-system coding-system)) |
| 337 | ;; If coding-system is nil, honor that on MS-DOS as well, so | 338 | ;; If coding-system is nil, honor that on MS-DOS as well, so |
| 338 | ;; that they could reset the terminal coding system. | 339 | ;; that they could reset the terminal coding system. |
| @@ -1647,6 +1648,8 @@ The default status is as follows: | |||
| 1647 | 1648 | ||
| 1648 | (set-default-coding-systems nil) | 1649 | (set-default-coding-systems nil) |
| 1649 | (setq default-sendmail-coding-system 'iso-latin-1) | 1650 | (setq default-sendmail-coding-system 'iso-latin-1) |
| 1651 | ;; On Darwin systems, this should be utf-8, but when this file is loaded | ||
| 1652 | ;; utf-8 is not yet defined, so we set it in set-locale-environment instead. | ||
| 1650 | (setq default-file-name-coding-system 'iso-latin-1) | 1653 | (setq default-file-name-coding-system 'iso-latin-1) |
| 1651 | ;; Preserve eol-type from existing default-process-coding-systems. | 1654 | ;; Preserve eol-type from existing default-process-coding-systems. |
| 1652 | ;; On non-unix-like systems in particular, these may have been set | 1655 | ;; On non-unix-like systems in particular, these may have been set |
| @@ -2411,6 +2414,10 @@ system codeset `%s' for this locale." coding-system codeset)))))))) | |||
| 2411 | (set-keyboard-coding-system code-page-coding) | 2414 | (set-keyboard-coding-system code-page-coding) |
| 2412 | (set-terminal-coding-system code-page-coding)))) | 2415 | (set-terminal-coding-system code-page-coding)))) |
| 2413 | 2416 | ||
| 2417 | ;; On Darwin, file names are always encoded in utf-8, no matter the locale. | ||
| 2418 | (when (eq system-type 'darwin) | ||
| 2419 | (setq default-file-name-coding-system 'utf-8)) | ||
| 2420 | |||
| 2414 | ;; Default to A4 paper if we're not in a C, POSIX or US locale. | 2421 | ;; Default to A4 paper if we're not in a C, POSIX or US locale. |
| 2415 | ;; (See comments in Flocale_info.) | 2422 | ;; (See comments in Flocale_info.) |
| 2416 | (let ((locale locale) | 2423 | (let ((locale locale) |
diff --git a/lisp/net/ldap.el b/lisp/net/ldap.el index f093fb1cbcc..16af42ffc27 100644 --- a/lisp/net/ldap.el +++ b/lisp/net/ldap.el | |||
| @@ -579,9 +579,9 @@ an alist of attribute/value pairs." | |||
| 579 | (end-of-line) | 579 | (end-of-line) |
| 580 | (point)))) | 580 | (point)))) |
| 581 | (forward-line 1) | 581 | (forward-line 1) |
| 582 | (while (looking-at "^\\(\\w*\\)[=:\t ]+\\(<[\t ]*file://\\)?\\(.*\\)$") | 582 | (while (looking-at "^\\(\\w*\\)\\(;\\w*\\)?[=:\t ]+\\(<[\t ]*file://\\)?\\(.*\\)$") |
| 583 | (setq name (match-string 1) | 583 | (setq name (match-string 1) |
| 584 | value (match-string 3)) | 584 | value (match-string 4)) |
| 585 | ;; Need to handle file:///D:/... as generated by OpenLDAP | 585 | ;; Need to handle file:///D:/... as generated by OpenLDAP |
| 586 | ;; on DOS/Windows as local files. | 586 | ;; on DOS/Windows as local files. |
| 587 | (if (and (memq system-type '(windows-nt ms-dos)) | 587 | (if (and (memq system-type '(windows-nt ms-dos)) |
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 54c43d1df36..9c15fc5be52 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | ;; Maintainer: FSF | 4 | ;; Maintainer: FSF |
| 5 | ;; Keywords: unix, tools | 5 | ;; Keywords: unix, tools |
| 6 | 6 | ||
| 7 | ;; Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. | 7 | ;; Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | 10 | ||
| @@ -289,13 +289,6 @@ detailed description of this mode. | |||
| 289 | `(lambda () (gdb-var-create-handler ,expr)))))) | 289 | `(lambda () (gdb-var-create-handler ,expr)))))) |
| 290 | (select-window (get-buffer-window gud-comint-buffer 0))) | 290 | (select-window (get-buffer-window gud-comint-buffer 0))) |
| 291 | 291 | ||
| 292 | (defun gdb-goto-info () | ||
| 293 | "Go to Emacs info node: GDB Graphical Interface." | ||
| 294 | (interactive) | ||
| 295 | (select-frame (make-frame)) | ||
| 296 | (require 'info) | ||
| 297 | (Info-goto-node "(emacs)GDB Graphical Interface")) | ||
| 298 | |||
| 299 | (defconst gdb-var-create-regexp | 292 | (defconst gdb-var-create-regexp |
| 300 | "name=\"\\(.*?\\)\",numchild=\"\\(.*?\\)\",type=\"\\(.*?\\)\"") | 293 | "name=\"\\(.*?\\)\",numchild=\"\\(.*?\\)\",type=\"\\(.*?\\)\"") |
| 301 | 294 | ||
| @@ -1897,18 +1890,6 @@ corresponding to the mode line clicked." | |||
| 1897 | 1890 | ||
| 1898 | ;;; Shared keymap initialization: | 1891 | ;;; Shared keymap initialization: |
| 1899 | 1892 | ||
| 1900 | (let ((menu (make-sparse-keymap "GDB-Frames"))) | ||
| 1901 | (define-key gud-menu-map [frames] | ||
| 1902 | `(menu-item "GDB-Frames" ,menu :visible (eq gud-minor-mode 'gdba))) | ||
| 1903 | (define-key menu [gdb] '("Gdb" . gdb-frame-gdb-buffer)) | ||
| 1904 | (define-key menu [threads] '("Threads" . gdb-frame-threads-buffer)) | ||
| 1905 | (define-key menu [memory] '("Memory" . gdb-frame-memory-buffer)) | ||
| 1906 | (define-key menu [assembler] '("Machine" . gdb-frame-assembler-buffer)) | ||
| 1907 | (define-key menu [registers] '("Registers" . gdb-frame-registers-buffer)) | ||
| 1908 | (define-key menu [locals] '("Locals" . gdb-frame-locals-buffer)) | ||
| 1909 | (define-key menu [frames] '("Stack" . gdb-frame-stack-buffer)) | ||
| 1910 | (define-key menu [breakpoints] '("Breakpoints" . gdb-frame-breakpoints-buffer))) | ||
| 1911 | |||
| 1912 | (let ((menu (make-sparse-keymap "GDB-Windows"))) | 1893 | (let ((menu (make-sparse-keymap "GDB-Windows"))) |
| 1913 | (define-key gud-menu-map [displays] | 1894 | (define-key gud-menu-map [displays] |
| 1914 | `(menu-item "GDB-Windows" ,menu :visible (eq gud-minor-mode 'gdba))) | 1895 | `(menu-item "GDB-Windows" ,menu :visible (eq gud-minor-mode 'gdba))) |
| @@ -1921,15 +1902,27 @@ corresponding to the mode line clicked." | |||
| 1921 | (define-key menu [frames] '("Stack" . gdb-display-stack-buffer)) | 1902 | (define-key menu [frames] '("Stack" . gdb-display-stack-buffer)) |
| 1922 | (define-key menu [breakpoints] '("Breakpoints" . gdb-display-breakpoints-buffer))) | 1903 | (define-key menu [breakpoints] '("Breakpoints" . gdb-display-breakpoints-buffer))) |
| 1923 | 1904 | ||
| 1905 | (let ((menu (make-sparse-keymap "GDB-Frames"))) | ||
| 1906 | (define-key gud-menu-map [frames] | ||
| 1907 | `(menu-item "GDB-Frames" ,menu :visible (eq gud-minor-mode 'gdba))) | ||
| 1908 | (define-key menu [gdb] '("Gdb" . gdb-frame-gdb-buffer)) | ||
| 1909 | (define-key menu [threads] '("Threads" . gdb-frame-threads-buffer)) | ||
| 1910 | (define-key menu [memory] '("Memory" . gdb-frame-memory-buffer)) | ||
| 1911 | (define-key menu [assembler] '("Machine" . gdb-frame-assembler-buffer)) | ||
| 1912 | (define-key menu [registers] '("Registers" . gdb-frame-registers-buffer)) | ||
| 1913 | (define-key menu [locals] '("Locals" . gdb-frame-locals-buffer)) | ||
| 1914 | (define-key menu [frames] '("Stack" . gdb-frame-stack-buffer)) | ||
| 1915 | (define-key menu [breakpoints] '("Breakpoints" . gdb-frame-breakpoints-buffer))) | ||
| 1916 | |||
| 1924 | (let ((menu (make-sparse-keymap "GDB-UI"))) | 1917 | (let ((menu (make-sparse-keymap "GDB-UI"))) |
| 1925 | (define-key gud-menu-map [ui] | 1918 | (define-key gud-menu-map [ui] |
| 1926 | `(menu-item "GDB-UI" ,menu :visible (eq gud-minor-mode 'gdba))) | 1919 | `(menu-item "GDB-UI" ,menu :visible (eq gud-minor-mode 'gdba))) |
| 1927 | (define-key menu [gdb-restore-windows] | 1920 | (define-key menu [gdb-restore-windows] |
| 1928 | '("Restore window layout" . gdb-restore-windows)) | 1921 | '("Restore Window Layout" . gdb-restore-windows)) |
| 1929 | (define-key menu [gdb-many-windows] | 1922 | (define-key menu [gdb-many-windows] |
| 1930 | (menu-bar-make-toggle gdb-many-windows gdb-many-windows | 1923 | (menu-bar-make-toggle gdb-many-windows gdb-many-windows |
| 1931 | "Display other windows" "Many Windows %s" | 1924 | "Display Other Windows" "Many windows %s" |
| 1932 | "Display locals, stack and breakpoint information"))) | 1925 | "Toggle display of locals, stack and breakpoint information"))) |
| 1933 | 1926 | ||
| 1934 | (defun gdb-frame-gdb-buffer () | 1927 | (defun gdb-frame-gdb-buffer () |
| 1935 | "Display GUD buffer in a new frame." | 1928 | "Display GUD buffer in a new frame." |
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 2a40ae1aab6..0988599ed54 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -91,9 +91,17 @@ If SOFT is non-nil, returns nil if the symbol doesn't already exist." | |||
| 91 | "Non-nil if debuggee is running. | 91 | "Non-nil if debuggee is running. |
| 92 | Used to grey out relevant toolbar icons.") | 92 | Used to grey out relevant toolbar icons.") |
| 93 | 93 | ||
| 94 | (defun gud-goto-info () | ||
| 95 | "Go to relevant Emacs info node." | ||
| 96 | (interactive) | ||
| 97 | (select-frame (make-frame)) | ||
| 98 | (require 'info) | ||
| 99 | (if (memq gud-minor-mode '(gdbmi gdba)) | ||
| 100 | (Info-goto-node "(emacs)GDB Graphical Interface") | ||
| 101 | (Info-goto-node "(emacs)Debuggers"))) | ||
| 102 | |||
| 94 | (easy-mmode-defmap gud-menu-map | 103 | (easy-mmode-defmap gud-menu-map |
| 95 | '(([help] menu-item "Help" gdb-goto-info | 104 | '(([help] "Info" . gud-goto-info) |
| 96 | :enable (memq gud-minor-mode '(gdbmi gdba))) | ||
| 97 | ([refresh] "Refresh" . gud-refresh) | 105 | ([refresh] "Refresh" . gud-refresh) |
| 98 | ([run] menu-item "Run" gud-run | 106 | ([run] menu-item "Run" gud-run |
| 99 | :enable (and (not gud-running) | 107 | :enable (and (not gud-running) |
| @@ -172,7 +180,7 @@ Used to grey out relevant toolbar icons.") | |||
| 172 | (gud-nexti . "gud-ni") | 180 | (gud-nexti . "gud-ni") |
| 173 | (gud-up . "gud-up") | 181 | (gud-up . "gud-up") |
| 174 | (gud-down . "gud-down") | 182 | (gud-down . "gud-down") |
| 175 | (gdb-goto-info . "help")) | 183 | (gud-goto-info . "info")) |
| 176 | map) | 184 | map) |
| 177 | (tool-bar-local-item-from-menu | 185 | (tool-bar-local-item-from-menu |
| 178 | (car x) (cdr x) map gud-minor-mode-map))))) | 186 | (car x) (cdr x) map gud-minor-mode-map))))) |
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 3f3529f2aa5..c3b0f561cc2 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | ;;; ispell.el --- interface to International Ispell Versions 3.1 and 3.2 | 1 | ;;; ispell.el --- interface to International Ispell Versions 3.1 and 3.2 |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005 |
| 4 | ;; Free Software Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | ;; Author: Ken Stevens <k.stevens@ieee.org> | 6 | ;; Author: Ken Stevens <k.stevens@ieee.org> |
| 6 | ;; Maintainer: Ken Stevens <k.stevens@ieee.org> | 7 | ;; Maintainer: Ken Stevens <k.stevens@ieee.org> |
| @@ -2419,7 +2420,7 @@ With prefix argument, set the default dictionary." | |||
| 2419 | "Update the dictionary actually used by Ispell. | 2420 | "Update the dictionary actually used by Ispell. |
| 2420 | This may kill the Ispell process; if so, | 2421 | This may kill the Ispell process; if so, |
| 2421 | a new one will be started when needed." | 2422 | a new one will be started when needed." |
| 2422 | (let ((dict (or ispell-local-dictionary ispell-dictionary "default"))) | 2423 | (let ((dict (or ispell-local-dictionary ispell-dictionary))) |
| 2423 | (unless (equal ispell-current-dictionary dict) | 2424 | (unless (equal ispell-current-dictionary dict) |
| 2424 | (setq ispell-current-dictionary dict) | 2425 | (setq ispell-current-dictionary dict) |
| 2425 | (ispell-kill-ispell t)))) | 2426 | (ispell-kill-ispell t)))) |
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el index 318279b1377..49485c24725 100644 --- a/lisp/textmodes/reftex.el +++ b/lisp/textmodes/reftex.el | |||
| @@ -1228,6 +1228,11 @@ This enforces rescanning the buffer on next use." | |||
| 1228 | ;; But, when RESCAN is -1, don't rescan even if docstruct is empty. | 1228 | ;; But, when RESCAN is -1, don't rescan even if docstruct is empty. |
| 1229 | ;; When FILE is non-nil, parse only from that file. | 1229 | ;; When FILE is non-nil, parse only from that file. |
| 1230 | 1230 | ||
| 1231 | ;; Error out in a buffer without a file. | ||
| 1232 | (if (and reftex-mode | ||
| 1233 | (not (buffer-file-name))) | ||
| 1234 | (error "RefTeX works only in buffers visiting a file.")) | ||
| 1235 | |||
| 1231 | ;; Make sure we have the symbols tied | 1236 | ;; Make sure we have the symbols tied |
| 1232 | (if (eq reftex-docstruct-symbol nil) | 1237 | (if (eq reftex-docstruct-symbol nil) |
| 1233 | ;; Symbols are not yet tied: Tie them. | 1238 | ;; Symbols are not yet tied: Tie them. |
diff --git a/lisp/x-dnd.el b/lisp/x-dnd.el index f2b081fdcc5..a540c1b7af3 100644 --- a/lisp/x-dnd.el +++ b/lisp/x-dnd.el | |||
| @@ -557,18 +557,20 @@ EVENT is the client message. FRAME is where the mouse is now. | |||
| 557 | WINDOW is the window within FRAME where the mouse is now. | 557 | WINDOW is the window within FRAME where the mouse is now. |
| 558 | FORMAT is 32 (not used). MESSAGE is the data part of an XClientMessageEvent." | 558 | FORMAT is 32 (not used). MESSAGE is the data part of an XClientMessageEvent." |
| 559 | (cond ((equal "XdndEnter" message) | 559 | (cond ((equal "XdndEnter" message) |
| 560 | (let ((version (ash (car (aref data 1)) -8)) | 560 | (let* ((flags (aref data 1)) |
| 561 | (more-than-3 (cdr (aref data 1))) | 561 | (version (and (consp flags) (ash (car flags) -8))) |
| 562 | (dnd-source (aref data 0))) | 562 | (more-than-3 (and (consp flags) (cdr flags))) |
| 563 | (x-dnd-save-state | 563 | (dnd-source (aref data 0))) |
| 564 | window nil nil | 564 | (if version ;; If flags is bad, version will be nil. |
| 565 | (if (> more-than-3 0) | 565 | (x-dnd-save-state |
| 566 | (x-window-property "XdndTypeList" | 566 | window nil nil |
| 567 | frame "AnyPropertyType" | 567 | (if (> more-than-3 0) |
| 568 | dnd-source nil t) | 568 | (x-window-property "XdndTypeList" |
| 569 | (vector (x-get-atom-name (aref data 2)) | 569 | frame "AnyPropertyType" |
| 570 | (x-get-atom-name (aref data 3)) | 570 | dnd-source nil t) |
| 571 | (x-get-atom-name (aref data 4))))))) | 571 | (vector (x-get-atom-name (aref data 2)) |
| 572 | (x-get-atom-name (aref data 3)) | ||
| 573 | (x-get-atom-name (aref data 4)))))))) | ||
| 572 | 574 | ||
| 573 | ((equal "XdndPosition" message) | 575 | ((equal "XdndPosition" message) |
| 574 | (let* ((x (car (aref data 2))) | 576 | (let* ((x (car (aref data 2))) |