diff options
| author | Karoly Lorentey | 2004-05-22 22:52:43 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-05-22 22:52:43 +0000 |
| commit | 04a0dc45e1e3833a3a97e45f2b20197c8bec744a (patch) | |
| tree | af6a98682fc8bd24be22340137e489a0796c9eed /lisp | |
| parent | f3c9434fad0ae6dfcadf44292df1472a402b5738 (diff) | |
| parent | 47ff5b284043393f79f231f0c6bd005a542721cb (diff) | |
| download | emacs-04a0dc45e1e3833a3a97e45f2b20197c8bec744a.tar.gz emacs-04a0dc45e1e3833a3a97e45f2b20197c8bec744a.zip | |
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-325
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-326
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-327
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-328
Update from CVS: src/.gdbinit (xsymbol): Fix last change.
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-329
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-166
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 86 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 34 | ||||
| -rw-r--r-- | lisp/files.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/gnus/mm-view.el | 5 | ||||
| -rw-r--r-- | lisp/help-mode.el | 9 | ||||
| -rw-r--r-- | lisp/international/characters.el | 33 | ||||
| -rw-r--r-- | lisp/net/ldap.el | 2 | ||||
| -rw-r--r-- | lisp/pcvs.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 20 | ||||
| -rw-r--r-- | lisp/progmodes/gud.el | 11 | ||||
| -rw-r--r-- | lisp/simple.el | 72 | ||||
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 31 | ||||
| -rw-r--r-- | lisp/wid-edit.el | 2 |
14 files changed, 177 insertions, 134 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8e2b74d5b60..81da604aea5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,18 +1,61 @@ | |||
| 1 | 2004-05-19 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * simple.el (do-auto-fill): Remove unused vars `bol' and `opoint'. | ||
| 4 | (completion-setup-function): Use with-current-buffer. | ||
| 5 | Properly save excursion. Simplify. | ||
| 6 | Don't assume there is necessarily a `mouse-face' property somewhere. | ||
| 7 | |||
| 8 | * progmodes/gud.el (gud-reset): Use unless & with-current-buffer. | ||
| 9 | |||
| 10 | * progmodes/gdb-ui.el (gdb-reset): Use unless. Fix regexp. | ||
| 11 | |||
| 12 | * emacs-lisp/bytecomp.el (byte-compile-log): Use backquotes. | ||
| 13 | (byte-compile-log-1): Don't call (byte-goto-log-buffer). | ||
| 14 | Use with-current-buffer. | ||
| 15 | (byte-goto-log-buffer): Delete. | ||
| 16 | (byte-compile-log-file): Call compilation-forget-errors. | ||
| 17 | |||
| 18 | 2004-05-19 Takaaki Ota <Takaaki.Ota@am.sony.com> (tiny change) | ||
| 19 | |||
| 20 | * net/ldap.el (ldap-search-internal): Avoid mixing standard error | ||
| 21 | output messages into the search result. | ||
| 22 | |||
| 23 | 2004-05-19 Masatake YAMATO <jet@gyve.org> | ||
| 24 | |||
| 25 | * wid-edit.el (widget-radio-button-notify): Revert my last | ||
| 26 | change. Reported by Katsumi Yamaoka <yamaoka@jpl.org>. | ||
| 27 | |||
| 28 | 2004-05-19 Kenichi Handa <handa@m17n.org> | ||
| 29 | |||
| 30 | * international/characters.el: Fix syntax (open/close) of CJK chars. | ||
| 31 | |||
| 32 | 2004-05-18 Karl Chen <quarl@hkn.eecs.berkeley.edu> (tiny change) | ||
| 33 | |||
| 34 | * help-mode.el (help-go-back): Don't depend on position of back button. | ||
| 35 | |||
| 36 | 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 37 | |||
| 38 | * files.el (auto-save-file-name-transforms): Make sure ange-ftp temp | ||
| 39 | files files don't contain an accidental additional /. | ||
| 40 | |||
| 41 | * textmodes/tex-mode.el (tex-compilation-parse-errors): Save excursion | ||
| 42 | in source buffer. | ||
| 43 | |||
| 1 | 2004-05-18 Masatake YAMATO <jet@gyve.org> | 44 | 2004-05-18 Masatake YAMATO <jet@gyve.org> |
| 2 | 45 | ||
| 3 | * wid-edit.el (widget-radio-button-notify): Don't pass `widget' | 46 | * wid-edit.el (widget-radio-button-notify): Don't pass `widget' |
| 4 | to widget-apply. :action method assumes 2 arguments, not 3. | 47 | to widget-apply. :action method assumes 2 arguments, not 3. |
| 5 | 48 | ||
| 6 | 2004-05-17 Glenn Morris <gmorris@ast.cam.ac.uk> | 49 | 2004-05-17 Glenn Morris <gmorris@ast.cam.ac.uk> |
| 7 | 50 | ||
| 8 | * progmodes/f90.el (f90-end-block-re, f90-start-block-re): New | 51 | * progmodes/f90.el (f90-end-block-re, f90-start-block-re): |
| 9 | constants. | 52 | New constants. |
| 10 | (hs-special-modes-alist): Add an f90-mode entry. | 53 | (hs-special-modes-alist): Add an f90-mode entry. |
| 11 | 54 | ||
| 12 | 2004-05-17 Sam Steingold <sds@gnu.org> | 55 | 2004-05-17 Sam Steingold <sds@gnu.org> |
| 13 | 56 | ||
| 14 | * emacs-lisp/cl-indent.el (common-lisp-indent-function-1): Indent | 57 | * emacs-lisp/cl-indent.el (common-lisp-indent-function-1): |
| 15 | "without-" forms just like "with-" and "do-". Use regexp-opt. | 58 | Indent "without-" forms just like "with-" and "do-". Use regexp-opt. |
| 16 | 59 | ||
| 17 | 2004-05-16 Kim F. Storm <storm@cua.dk> | 60 | 2004-05-16 Kim F. Storm <storm@cua.dk> |
| 18 | 61 | ||
| @@ -20,15 +63,14 @@ | |||
| 20 | 63 | ||
| 21 | 2004-05-15 John Wiegley <johnw@newartisans.com> | 64 | 2004-05-15 John Wiegley <johnw@newartisans.com> |
| 22 | 65 | ||
| 23 | * eshell/esh-io.el (eshell-get-target): whitespace changes. | 66 | * eshell/esh-io.el (eshell-get-target): Whitespace changes. |
| 24 | (eshell-output-object-to-target): Improve output speed 20% by not | 67 | (eshell-output-object-to-target): Improve output speed 20% by not |
| 25 | calling `eshell-stringify' if something is already known to be a | 68 | calling `eshell-stringify' if something is already known to be a string. |
| 26 | string. | ||
| 27 | 69 | ||
| 28 | 2004-05-15 Alex Ott <ott@jet.msk.su> | 70 | 2004-05-15 Alex Ott <ott@jet.msk.su> |
| 29 | 71 | ||
| 30 | * textmodes/ispell.el (ispell-local-dictionary-alist): Add | 72 | * textmodes/ispell.el (ispell-local-dictionary-alist): |
| 31 | windows-1251 to the choice of coding systems. | 73 | Add windows-1251 to the choice of coding systems. |
| 32 | (ispell-dictionary-alist-6): Add support for "russianw.aff", | 74 | (ispell-dictionary-alist-6): Add support for "russianw.aff", |
| 33 | encoded in cp1251. | 75 | encoded in cp1251. |
| 34 | 76 | ||
| @@ -75,7 +117,7 @@ | |||
| 75 | 117 | ||
| 76 | 2004-05-13 Marcelo Toledo <marcelo@marcelotoledo.org> | 118 | 2004-05-13 Marcelo Toledo <marcelo@marcelotoledo.org> |
| 77 | 119 | ||
| 78 | * language/european.el ("Brazilian Portuguese"): Added support for | 120 | * language/european.el ("Brazilian Portuguese"): Add support for |
| 79 | Brazilian Portuguese. | 121 | Brazilian Portuguese. |
| 80 | 122 | ||
| 81 | 2004-05-13 John Wiegley <johnw@newartisans.com> | 123 | 2004-05-13 John Wiegley <johnw@newartisans.com> |
| @@ -84,8 +126,7 @@ | |||
| 84 | `recentf-mode' if this variable has been customized to t. | 126 | `recentf-mode' if this variable has been customized to t. |
| 85 | 127 | ||
| 86 | * eshell/esh-test.el (eshell-test): Call the function | 128 | * eshell/esh-test.el (eshell-test): Call the function |
| 87 | `emacs-version' rather than trying to build a custom version | 129 | `emacs-version' rather than trying to build a custom version string. |
| 88 | string. | ||
| 89 | 130 | ||
| 90 | 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca> | 131 | 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca> |
| 91 | 132 | ||
| @@ -775,18 +816,17 @@ | |||
| 775 | * progmodes/fortran.el (fortran-fill): Use local var `bol' rather | 816 | * progmodes/fortran.el (fortran-fill): Use local var `bol' rather |
| 776 | than duplicate call to `line-beginning-position'. | 817 | than duplicate call to `line-beginning-position'. |
| 777 | 818 | ||
| 778 | * progmodes/f90.el (f90-get-present-comment-type): Return | 819 | * progmodes/f90.el (f90-get-present-comment-type): |
| 779 | whitespace, as well as comment chars, for consistent filling | 820 | Return whitespace, as well as comment chars, for consistent filling |
| 780 | of comment blocks. Use `match-string-no-properties'. | 821 | of comment blocks. Use `match-string-no-properties'. |
| 781 | (f90-break-line): Do not leave trailing whitespace when filling | 822 | (f90-break-line): Trim trailing whitespace when filling comments. |
| 782 | comments. | ||
| 783 | 823 | ||
| 784 | 2004-04-30 Dave Love <fx@gnu.org> | 824 | 2004-04-30 Dave Love <fx@gnu.org> |
| 785 | 825 | ||
| 786 | * calendar/diary-lib.el (diary-outlook-formats): New variable. | 826 | * calendar/diary-lib.el (diary-outlook-formats): New variable. |
| 787 | (diary-from-outlook-internal, diary-from-outlook) | 827 | (diary-from-outlook-internal, diary-from-outlook) |
| 788 | (diary-from-outlook-gnus, diary-from-outlook-rmail): New | 828 | (diary-from-outlook-gnus, diary-from-outlook-rmail): |
| 789 | functions to import diary entries from Outlook-format | 829 | New functions to import diary entries from Outlook-format |
| 790 | appointments in mail messages. | 830 | appointments in mail messages. |
| 791 | 831 | ||
| 792 | 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca> | 832 | 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca> |
| @@ -814,8 +854,7 @@ | |||
| 814 | 854 | ||
| 815 | * progmodes/sql.el (sql-product-alist): Rename variable | 855 | * progmodes/sql.el (sql-product-alist): Rename variable |
| 816 | `sql-product-support'. Add Postgres login parameters. | 856 | `sql-product-support'. Add Postgres login parameters. |
| 817 | (sql-set-product, sql-product-feature): Update with renamed | 857 | (sql-set-product, sql-product-feature): Update with renamed variable. |
| 818 | variable. | ||
| 819 | (sql-connect-postgres): Add username prompt. | 858 | (sql-connect-postgres): Add username prompt. |
| 820 | (sql-imenu-generic-expression, sql-mode-font-lock-object-name): | 859 | (sql-imenu-generic-expression, sql-mode-font-lock-object-name): |
| 821 | Make patterns less product specific. | 860 | Make patterns less product specific. |
| @@ -837,8 +876,7 @@ | |||
| 837 | (sql-mode-sqlite-font-lock-keywords) | 876 | (sql-mode-sqlite-font-lock-keywords) |
| 838 | (sql-mode-db2-font-lock-keywords): Default to nil. | 877 | (sql-mode-db2-font-lock-keywords): Default to nil. |
| 839 | (sql-product-font-lock): Always highlight ANSI keywords. | 878 | (sql-product-font-lock): Always highlight ANSI keywords. |
| 840 | (sql-add-product-keywords): Made similar to | 879 | (sql-add-product-keywords): Made similar to `font-lock-add-keywords'. |
| 841 | `font-lock-add-keywords'. | ||
| 842 | (sql-send-string): Add function. | 880 | (sql-send-string): Add function. |
| 843 | 881 | ||
| 844 | 2004-04-29 Dave Love <fx@gnu.org> | 882 | 2004-04-29 Dave Love <fx@gnu.org> |
| @@ -7391,7 +7429,7 @@ See ChangeLog.10 for earlier changes. | |||
| 7391 | ;; coding: iso-2022-7bit | 7429 | ;; coding: iso-2022-7bit |
| 7392 | ;; End: | 7430 | ;; End: |
| 7393 | 7431 | ||
| 7394 | Copyright (C) 2001, 2002 Free Software Foundation, Inc. | 7432 | Copyright (C) 2001, 02, 04 Free Software Foundation, Inc. |
| 7395 | Copying and distribution of this file, with or without modification, | 7433 | Copying and distribution of this file, with or without modification, |
| 7396 | are permitted provided the copyright notice and this notice are preserved. | 7434 | are permitted provided the copyright notice and this notice are preserved. |
| 7397 | 7435 | ||
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index f6e2946aa8b..8e20925c70d 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -832,24 +832,22 @@ Each function's symbol gets added to `byte-compile-noruntime-functions'." | |||
| 832 | 832 | ||
| 833 | ;; Log something that isn't a warning. | 833 | ;; Log something that isn't a warning. |
| 834 | (defmacro byte-compile-log (format-string &rest args) | 834 | (defmacro byte-compile-log (format-string &rest args) |
| 835 | (list 'and | 835 | `(and |
| 836 | 'byte-optimize | 836 | byte-optimize |
| 837 | '(memq byte-optimize-log '(t source)) | 837 | (memq byte-optimize-log '(t source)) |
| 838 | (list 'let '((print-escape-newlines t) | 838 | (let ((print-escape-newlines t) |
| 839 | (print-level 4) | 839 | (print-level 4) |
| 840 | (print-length 4)) | 840 | (print-length 4)) |
| 841 | (list 'byte-compile-log-1 | 841 | (byte-compile-log-1 |
| 842 | (cons 'format | 842 | (format |
| 843 | (cons format-string | 843 | ,format-string |
| 844 | (mapcar | 844 | ,@(mapcar |
| 845 | (lambda (x) | 845 | (lambda (x) (if (symbolp x) (list 'prin1-to-string x) x)) |
| 846 | (if (symbolp x) (list 'prin1-to-string x) x)) | 846 | args)))))) |
| 847 | args))))))) | ||
| 848 | 847 | ||
| 849 | ;; Log something that isn't a warning. | 848 | ;; Log something that isn't a warning. |
| 850 | (defun byte-compile-log-1 (string) | 849 | (defun byte-compile-log-1 (string) |
| 851 | (save-excursion | 850 | (with-current-buffer "*Compile-Log*" |
| 852 | (byte-goto-log-buffer) | ||
| 853 | (goto-char (point-max)) | 851 | (goto-char (point-max)) |
| 854 | (byte-compile-warning-prefix nil nil) | 852 | (byte-compile-warning-prefix nil nil) |
| 855 | (cond (noninteractive | 853 | (cond (noninteractive |
| @@ -903,11 +901,6 @@ Each function's symbol gets added to `byte-compile-noruntime-functions'." | |||
| 903 | (defvar byte-compile-last-warned-form nil) | 901 | (defvar byte-compile-last-warned-form nil) |
| 904 | (defvar byte-compile-last-logged-file nil) | 902 | (defvar byte-compile-last-logged-file nil) |
| 905 | 903 | ||
| 906 | (defun byte-goto-log-buffer () | ||
| 907 | (set-buffer (get-buffer-create "*Compile-Log*")) | ||
| 908 | (unless (eq major-mode 'compilation-mode) | ||
| 909 | (compilation-mode))) | ||
| 910 | |||
| 911 | ;; This is used as warning-prefix for the compiler. | 904 | ;; This is used as warning-prefix for the compiler. |
| 912 | ;; It is always called with the warnings buffer current. | 905 | ;; It is always called with the warnings buffer current. |
| 913 | (defun byte-compile-warning-prefix (level entry) | 906 | (defun byte-compile-warning-prefix (level entry) |
| @@ -983,6 +976,7 @@ Each function's symbol gets added to `byte-compile-noruntime-functions'." | |||
| 983 | ;; Do this after setting default-directory. | 976 | ;; Do this after setting default-directory. |
| 984 | (unless (eq major-mode 'compilation-mode) | 977 | (unless (eq major-mode 'compilation-mode) |
| 985 | (compilation-mode)) | 978 | (compilation-mode)) |
| 979 | (compilation-forget-errors) | ||
| 986 | pt)))) | 980 | pt)))) |
| 987 | 981 | ||
| 988 | ;; Log a message STRING in *Compile-Log*. | 982 | ;; Log a message STRING in *Compile-Log*. |
diff --git a/lisp/files.el b/lisp/files.el index 91da8a4c2c7..99cad16cf5b 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -293,7 +293,7 @@ Normally auto-save files are written under other names." | |||
| 293 | :group 'auto-save) | 293 | :group 'auto-save) |
| 294 | 294 | ||
| 295 | (defcustom auto-save-file-name-transforms | 295 | (defcustom auto-save-file-name-transforms |
| 296 | `(("\\`/[^/]*:\\(.+/\\)*\\(.*\\)" | 296 | `(("\\`/[^/]*:\\([^/]*/\\)*\\([^/]*\\)\\'" |
| 297 | ;; Don't put "\\2" inside expand-file-name, since it will be | 297 | ;; Don't put "\\2" inside expand-file-name, since it will be |
| 298 | ;; transformed to "/2" on DOS/Windows. | 298 | ;; transformed to "/2" on DOS/Windows. |
| 299 | ,(concat temporary-file-directory "\\2") t)) | 299 | ,(concat temporary-file-directory "\\2") t)) |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 00a2634ee8c..68df8d0941e 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * mm-view.el (mm-insert-inline): Make it work in read-only buffer. | ||
| 4 | |||
| 3 | * gnus-win.el (gnus-all-windows-visible-p): Don't consider | 5 | * gnus-win.el (gnus-all-windows-visible-p): Don't consider |
| 4 | non-visible windows. | 6 | non-visible windows. |
| 5 | 7 | ||
diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el index f7dfdb60f02..69cbd3d8a1d 100644 --- a/lisp/gnus/mm-view.el +++ b/lisp/gnus/mm-view.el | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; mm-view.el --- functions for viewing MIME objects | 1 | ;;; mm-view.el --- functions for viewing MIME objects |
| 2 | ;; Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. | 2 | ;; Copyright (C) 1998, 1999, 2000, 01, 2004 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | 4 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 5 | ;; This file is part of GNU Emacs. | 5 | ;; This file is part of GNU Emacs. |
| @@ -197,7 +197,8 @@ | |||
| 197 | 197 | ||
| 198 | (defun mm-insert-inline (handle text) | 198 | (defun mm-insert-inline (handle text) |
| 199 | "Insert TEXT inline from HANDLE." | 199 | "Insert TEXT inline from HANDLE." |
| 200 | (let ((b (point))) | 200 | (let ((b (point)) |
| 201 | (inhibit-read-only t)) | ||
| 201 | (insert text) | 202 | (insert text) |
| 202 | (mm-handle-set-undisplayer | 203 | (mm-handle-set-undisplayer |
| 203 | handle | 204 | handle |
diff --git a/lisp/help-mode.el b/lisp/help-mode.el index 1f1b529c8ef..11656ec368c 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el | |||
| @@ -577,12 +577,11 @@ help buffer." | |||
| 577 | (goto-char position))))) | 577 | (goto-char position))))) |
| 578 | 578 | ||
| 579 | (defun help-go-back () | 579 | (defun help-go-back () |
| 580 | "Invoke the [back] button (if any) in the Help mode buffer." | 580 | "Go back to previous topic in this help buffer." |
| 581 | (interactive) | 581 | (interactive) |
| 582 | (let ((back-button (button-at (1- (point-max))))) | 582 | (if help-xref-stack |
| 583 | (if back-button | 583 | (help-xref-go-back (current-buffer)) |
| 584 | (button-activate back-button) | 584 | (error "No previous help buffer."))) |
| 585 | (error "No [back] button")))) | ||
| 586 | 585 | ||
| 587 | (defun help-do-xref (pos function args) | 586 | (defun help-do-xref (pos function args) |
| 588 | "Call the help cross-reference function FUNCTION with args ARGS. | 587 | "Call the help cross-reference function FUNCTION with args ARGS. |
diff --git a/lisp/international/characters.el b/lisp/international/characters.el index 7af456d1878..ebf2a3af27d 100644 --- a/lisp/international/characters.el +++ b/lisp/international/characters.el | |||
| @@ -229,6 +229,14 @@ | |||
| 229 | (modify-category-entry generic-char ?|) | 229 | (modify-category-entry generic-char ?|) |
| 230 | (setq cns-list (cdr cns-list)))) | 230 | (setq cns-list (cdr cns-list)))) |
| 231 | 231 | ||
| 232 | (let ((parens "$(G!>!?!@!A!B!C!D!E!F!G!H!I!J!K!L!M!N!O!P!Q!R!S!T!U!V!W!X!Y!Z![!\!]!^!_!`!a!b!c(B") | ||
| 233 | open close) | ||
| 234 | (dotimes (i (/ (length parens) 2)) | ||
| 235 | (setq open (aref parens (* i 2)) | ||
| 236 | close (aref parens (1+ (* i 2)))) | ||
| 237 | (modify-syntax-entry open (format "(%c" close)) | ||
| 238 | (modify-syntax-entry close (format ")%c" open)))) | ||
| 239 | |||
| 232 | ;; Cyrillic character set (ISO-8859-5) | 240 | ;; Cyrillic character set (ISO-8859-5) |
| 233 | 241 | ||
| 234 | (modify-category-entry (make-char 'cyrillic-iso8859-5) ?y) | 242 | (modify-category-entry (make-char 'cyrillic-iso8859-5) ?y) |
| @@ -584,16 +592,13 @@ | |||
| 584 | (while chars | 592 | (while chars |
| 585 | (modify-syntax-entry (car chars) "w") | 593 | (modify-syntax-entry (car chars) "w") |
| 586 | (setq chars (cdr chars)))) | 594 | (setq chars (cdr chars)))) |
| 587 | (modify-syntax-entry ?\$B!J(B "($B!K(B") | 595 | (let ((parens "$B!J!K!L!M!N!O!P!Q!R!S!T!U!V!W!X!Y!Z![(B" ) |
| 588 | (modify-syntax-entry ?\$B!N(B "($B!O(B") | 596 | open close) |
| 589 | (modify-syntax-entry ?\$B!P(B "($B!Q(B") | 597 | (dotimes (i (/ (length parens) 2)) |
| 590 | (modify-syntax-entry ?\$B!V(B "($B!W(B") | 598 | (setq open (aref parens (* i 2)) |
| 591 | (modify-syntax-entry ?\$B!X(B "($B!Y(B") | 599 | close (aref parens (1+ (* i 2)))) |
| 592 | (modify-syntax-entry ?\$B!K(B ")$B!J(B") | 600 | (modify-syntax-entry open (format "(%c" close)) |
| 593 | (modify-syntax-entry ?\$B!O(B ")$B!N(B") | 601 | (modify-syntax-entry close (format ")%c" open)))) |
| 594 | (modify-syntax-entry ?\$B!Q(B ")$B!P(B") | ||
| 595 | (modify-syntax-entry ?\$B!W(B ")$B!V(B") | ||
| 596 | (modify-syntax-entry ?\$B!Y(B ")$B!X(B") | ||
| 597 | 602 | ||
| 598 | (modify-category-entry (make-char 'japanese-jisx0208 35) ?A) | 603 | (modify-category-entry (make-char 'japanese-jisx0208 35) ?A) |
| 599 | (modify-category-entry (make-char 'japanese-jisx0208 36) ?H) | 604 | (modify-category-entry (make-char 'japanese-jisx0208 36) ?H) |
| @@ -652,6 +657,14 @@ | |||
| 652 | (modify-category-entry (make-char 'korean-ksc5601 43) ?K) | 657 | (modify-category-entry (make-char 'korean-ksc5601 43) ?K) |
| 653 | (modify-category-entry (make-char 'korean-ksc5601 44) ?Y) | 658 | (modify-category-entry (make-char 'korean-ksc5601 44) ?Y) |
| 654 | 659 | ||
| 660 | (let ((parens "$(C!2!3!4!5!6!7!8!9!:!;!<!=(B" ) | ||
| 661 | open close) | ||
| 662 | (dotimes (i (/ (length parens) 2)) | ||
| 663 | (setq open (aref parens (* i 2)) | ||
| 664 | close (aref parens (1+ (* i 2)))) | ||
| 665 | (modify-syntax-entry open (format "(%c" close)) | ||
| 666 | (modify-syntax-entry close (format ")%c" open)))) | ||
| 667 | |||
| 655 | ;; Latin character set (latin-1,2,3,4,5,8,9) | 668 | ;; Latin character set (latin-1,2,3,4,5,8,9) |
| 656 | 669 | ||
| 657 | (modify-category-entry (make-char 'latin-iso8859-1) ?l) | 670 | (modify-category-entry (make-char 'latin-iso8859-1) ?l) |
diff --git a/lisp/net/ldap.el b/lisp/net/ldap.el index 55af47e6a87..f093fb1cbcc 100644 --- a/lisp/net/ldap.el +++ b/lisp/net/ldap.el | |||
| @@ -554,7 +554,7 @@ an alist of attribute/value pairs." | |||
| 554 | (setq arglist (nconc arglist (list (format "-z%s" sizelimit))))) | 554 | (setq arglist (nconc arglist (list (format "-z%s" sizelimit))))) |
| 555 | (eval `(call-process ldap-ldapsearch-prog | 555 | (eval `(call-process ldap-ldapsearch-prog |
| 556 | nil | 556 | nil |
| 557 | buf | 557 | `(,buf nil) |
| 558 | nil | 558 | nil |
| 559 | ,@arglist | 559 | ,@arglist |
| 560 | ,@ldap-ldapsearch-args | 560 | ,@ldap-ldapsearch-args |
diff --git a/lisp/pcvs.el b/lisp/pcvs.el index 8cb21828d69..9e518d791ec 100644 --- a/lisp/pcvs.el +++ b/lisp/pcvs.el | |||
| @@ -764,7 +764,7 @@ before calling the real function `" (symbol-name fun-1) "'.\n") | |||
| 764 | (interactive) | 764 | (interactive) |
| 765 | (cvs-mode! ',fun-1))))) | 765 | (cvs-mode! ',fun-1))))) |
| 766 | 766 | ||
| 767 | (t (error "unknown style %s in `defun-cvs-mode'" style))))) | 767 | (t (error "Unknown style %s in `defun-cvs-mode'" style))))) |
| 768 | 768 | ||
| 769 | (defun-cvs-mode cvs-mode-kill-process () | 769 | (defun-cvs-mode cvs-mode-kill-process () |
| 770 | "Kill the temporary buffer and associated process." | 770 | "Kill the temporary buffer and associated process." |
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 19c57979130..1fa6f8f2645 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -1728,15 +1728,15 @@ This arrangement depends on the value of `gdb-many-windows'." | |||
| 1728 | "Exit a debugging session cleanly by killing the gdb buffers and resetting | 1728 | "Exit a debugging session cleanly by killing the gdb buffers and resetting |
| 1729 | the source buffers." | 1729 | the source buffers." |
| 1730 | (dolist (buffer (buffer-list)) | 1730 | (dolist (buffer (buffer-list)) |
| 1731 | (if (not (eq buffer gud-comint-buffer)) | 1731 | (unless (eq buffer gud-comint-buffer) |
| 1732 | (with-current-buffer buffer | 1732 | (with-current-buffer buffer |
| 1733 | (if (memq gud-minor-mode '(gdba pdb)) | 1733 | (if (memq gud-minor-mode '(gdba pdb)) |
| 1734 | (if (string-match "^\*.+*$" (buffer-name)) | 1734 | (if (string-match "\\`\\*.+\\*\\'" (buffer-name)) |
| 1735 | (kill-buffer nil) | 1735 | (kill-buffer nil) |
| 1736 | (gdb-remove-breakpoint-icons (point-min) (point-max) t) | 1736 | (gdb-remove-breakpoint-icons (point-min) (point-max) t) |
| 1737 | (setq gud-minor-mode nil) | 1737 | (setq gud-minor-mode nil) |
| 1738 | (kill-local-variable 'tool-bar-map) | 1738 | (kill-local-variable 'tool-bar-map) |
| 1739 | (setq gud-running nil)))))) | 1739 | (setq gud-running nil)))))) |
| 1740 | (when (markerp gdb-overlay-arrow-position) | 1740 | (when (markerp gdb-overlay-arrow-position) |
| 1741 | (move-marker gdb-overlay-arrow-position nil) | 1741 | (move-marker gdb-overlay-arrow-position nil) |
| 1742 | (setq gdb-overlay-arrow-position nil)) | 1742 | (setq gdb-overlay-arrow-position nil)) |
| @@ -2013,5 +2013,5 @@ BUFFER nil or omitted means use the current buffer." | |||
| 2013 | 2013 | ||
| 2014 | (provide 'gdb-ui) | 2014 | (provide 'gdb-ui) |
| 2015 | 2015 | ||
| 2016 | ;;; arch-tag: e9fb00c5-74ef-469f-a088-37384caae352 | 2016 | ;; arch-tag: e9fb00c5-74ef-469f-a088-37384caae352 |
| 2017 | ;;; gdb-ui.el ends here | 2017 | ;;; gdb-ui.el ends here |
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 84dec78d895..eb0b887bdf3 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -2554,12 +2554,11 @@ It is saved for when this flag is not set.") | |||
| 2554 | 2554 | ||
| 2555 | (defun gud-reset () | 2555 | (defun gud-reset () |
| 2556 | (dolist (buffer (buffer-list)) | 2556 | (dolist (buffer (buffer-list)) |
| 2557 | (if (not (eq buffer gud-comint-buffer)) | 2557 | (unless (eq buffer gud-comint-buffer) |
| 2558 | (save-excursion | 2558 | (with-current-buffer buffer |
| 2559 | (set-buffer buffer) | 2559 | (when gud-minor-mode |
| 2560 | (when gud-minor-mode | 2560 | (setq gud-minor-mode nil) |
| 2561 | (setq gud-minor-mode nil) | 2561 | (kill-local-variable 'tool-bar-map)))))) |
| 2562 | (kill-local-variable 'tool-bar-map)))))) | ||
| 2563 | 2562 | ||
| 2564 | (defun gud-display-frame () | 2563 | (defun gud-display-frame () |
| 2565 | "Find and obey the last filename-and-line marker from the debugger. | 2564 | "Find and obey the last filename-and-line marker from the debugger. |
diff --git a/lisp/simple.el b/lisp/simple.el index 95e3ab0580d..fc8553cb133 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -3396,15 +3396,14 @@ Setting this variable automatically makes it local to the current buffer.") | |||
| 3396 | ;; (Actually some major modes use a different auto-fill function, | 3396 | ;; (Actually some major modes use a different auto-fill function, |
| 3397 | ;; but this one is the default one.) | 3397 | ;; but this one is the default one.) |
| 3398 | (defun do-auto-fill () | 3398 | (defun do-auto-fill () |
| 3399 | (let (fc justify bol give-up | 3399 | (let (fc justify give-up |
| 3400 | (fill-prefix fill-prefix)) | 3400 | (fill-prefix fill-prefix)) |
| 3401 | (if (or (not (setq justify (current-justification))) | 3401 | (if (or (not (setq justify (current-justification))) |
| 3402 | (null (setq fc (current-fill-column))) | 3402 | (null (setq fc (current-fill-column))) |
| 3403 | (and (eq justify 'left) | 3403 | (and (eq justify 'left) |
| 3404 | (<= (current-column) fc)) | 3404 | (<= (current-column) fc)) |
| 3405 | (save-excursion (beginning-of-line) | 3405 | (and auto-fill-inhibit-regexp |
| 3406 | (setq bol (point)) | 3406 | (save-excursion (beginning-of-line) |
| 3407 | (and auto-fill-inhibit-regexp | ||
| 3408 | (looking-at auto-fill-inhibit-regexp)))) | 3407 | (looking-at auto-fill-inhibit-regexp)))) |
| 3409 | nil ;; Auto-filling not required | 3408 | nil ;; Auto-filling not required |
| 3410 | (if (memq justify '(full center right)) | 3409 | (if (memq justify '(full center right)) |
| @@ -3427,16 +3426,15 @@ Setting this variable automatically makes it local to the current buffer.") | |||
| 3427 | ;; Determine where to split the line. | 3426 | ;; Determine where to split the line. |
| 3428 | (let* (after-prefix | 3427 | (let* (after-prefix |
| 3429 | (fill-point | 3428 | (fill-point |
| 3430 | (let ((opoint (point))) | 3429 | (save-excursion |
| 3431 | (save-excursion | 3430 | (beginning-of-line) |
| 3432 | (beginning-of-line) | 3431 | (setq after-prefix (point)) |
| 3433 | (setq after-prefix (point)) | 3432 | (and fill-prefix |
| 3434 | (and fill-prefix | 3433 | (looking-at (regexp-quote fill-prefix)) |
| 3435 | (looking-at (regexp-quote fill-prefix)) | 3434 | (setq after-prefix (match-end 0))) |
| 3436 | (setq after-prefix (match-end 0))) | 3435 | (move-to-column (1+ fc)) |
| 3437 | (move-to-column (1+ fc)) | 3436 | (fill-move-to-break-point after-prefix) |
| 3438 | (fill-move-to-break-point after-prefix) | 3437 | (point)))) |
| 3439 | (point))))) | ||
| 3440 | 3438 | ||
| 3441 | ;; See whether the place we found is any good. | 3439 | ;; See whether the place we found is any good. |
| 3442 | (if (save-excursion | 3440 | (if (save-excursion |
| @@ -4269,16 +4267,15 @@ of the differing parts is, by contrast, slightly highlighted." | |||
| 4269 | :group 'completion) | 4267 | :group 'completion) |
| 4270 | 4268 | ||
| 4271 | (defun completion-setup-function () | 4269 | (defun completion-setup-function () |
| 4272 | (save-excursion | 4270 | (let ((mainbuf (current-buffer)) |
| 4273 | (let ((mainbuf (current-buffer)) | 4271 | (mbuf-contents (minibuffer-contents))) |
| 4274 | (mbuf-contents (minibuffer-contents))) | 4272 | ;; When reading a file name in the minibuffer, |
| 4275 | ;; When reading a file name in the minibuffer, | 4273 | ;; set default-directory in the minibuffer |
| 4276 | ;; set default-directory in the minibuffer | 4274 | ;; so it will get copied into the completion list buffer. |
| 4277 | ;; so it will get copied into the completion list buffer. | 4275 | (if minibuffer-completing-file-name |
| 4278 | (if minibuffer-completing-file-name | 4276 | (with-current-buffer mainbuf |
| 4279 | (with-current-buffer mainbuf | 4277 | (setq default-directory (file-name-directory mbuf-contents)))) |
| 4280 | (setq default-directory (file-name-directory mbuf-contents)))) | 4278 | (with-current-buffer standard-output |
| 4281 | (set-buffer standard-output) | ||
| 4282 | (completion-list-mode) | 4279 | (completion-list-mode) |
| 4283 | (make-local-variable 'completion-reference-buffer) | 4280 | (make-local-variable 'completion-reference-buffer) |
| 4284 | (setq completion-reference-buffer mainbuf) | 4281 | (setq completion-reference-buffer mainbuf) |
| @@ -4287,24 +4284,23 @@ of the differing parts is, by contrast, slightly highlighted." | |||
| 4287 | ;; use the number of chars before the start of the | 4284 | ;; use the number of chars before the start of the |
| 4288 | ;; last file name component. | 4285 | ;; last file name component. |
| 4289 | (setq completion-base-size | 4286 | (setq completion-base-size |
| 4290 | (save-excursion | 4287 | (with-current-buffer mainbuf |
| 4291 | (set-buffer mainbuf) | 4288 | (save-excursion |
| 4292 | (goto-char (point-max)) | 4289 | (goto-char (point-max)) |
| 4293 | (skip-chars-backward "^/") | 4290 | (skip-chars-backward "^/") |
| 4294 | (- (point) (minibuffer-prompt-end)))) | 4291 | (- (point) (minibuffer-prompt-end))))) |
| 4295 | ;; Otherwise, in minibuffer, the whole input is being completed. | 4292 | ;; Otherwise, in minibuffer, the whole input is being completed. |
| 4296 | (save-match-data | 4293 | (if (minibufferp mainbuf) |
| 4297 | (if (minibufferp mainbuf) | 4294 | (setq completion-base-size 0))) |
| 4298 | (setq completion-base-size 0)))) | 4295 | ;; Put faces on first uncommon characters and common parts. |
| 4299 | ;; Put faces on first uncommon characters and common parts. | ||
| 4300 | (when completion-base-size | 4296 | (when completion-base-size |
| 4301 | (let* ((common-string-length (length | 4297 | (let* ((common-string-length |
| 4302 | (substring mbuf-contents | 4298 | (- (length mbuf-contents) completion-base-size)) |
| 4303 | completion-base-size))) | ||
| 4304 | (element-start (next-single-property-change | 4299 | (element-start (next-single-property-change |
| 4305 | (point-min) | 4300 | (point-min) |
| 4306 | 'mouse-face)) | 4301 | 'mouse-face)) |
| 4307 | (element-common-end (+ element-start common-string-length)) | 4302 | (element-common-end |
| 4303 | (+ (or element-start nil) common-string-length)) | ||
| 4308 | (maxp (point-max))) | 4304 | (maxp (point-max))) |
| 4309 | (while (and element-start (< element-common-end maxp)) | 4305 | (while (and element-start (< element-common-end maxp)) |
| 4310 | (when (and (get-char-property element-start 'mouse-face) | 4306 | (when (and (get-char-property element-start 'mouse-face) |
| @@ -4768,5 +4764,5 @@ works by saving the value of `buffer-invisibility-spec' and setting it to nil." | |||
| 4768 | 4764 | ||
| 4769 | (provide 'simple) | 4765 | (provide 'simple) |
| 4770 | 4766 | ||
| 4771 | ;;; arch-tag: 24af67c0-2a49-44f6-b3b1-312d8b570dfd | 4767 | ;; arch-tag: 24af67c0-2a49-44f6-b3b1-312d8b570dfd |
| 4772 | ;;; simple.el ends here | 4768 | ;;; simple.el ends here |
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 6e129987ec1..28bf9f6cf28 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -1944,21 +1944,22 @@ for the error messages." | |||
| 1944 | (or (null last-filename) | 1944 | (or (null last-filename) |
| 1945 | (not (string-equal last-filename filename)))) | 1945 | (not (string-equal last-filename filename)))) |
| 1946 | (error-location | 1946 | (error-location |
| 1947 | (save-excursion | 1947 | (with-current-buffer |
| 1948 | (if (equal filename (concat tex-zap-file ".tex")) | 1948 | (if (equal filename (concat tex-zap-file ".tex")) |
| 1949 | (set-buffer tex-last-buffer-texed) | 1949 | tex-last-buffer-texed |
| 1950 | (set-buffer (find-file-noselect filename))) | 1950 | (find-file-noselect filename)) |
| 1951 | (if new-file | 1951 | (save-excursion |
| 1952 | (progn (goto-line linenum) (setq last-position nil)) | 1952 | (if new-file |
| 1953 | (goto-char last-position) | 1953 | (progn (goto-line linenum) (setq last-position nil)) |
| 1954 | (forward-line (- linenum last-linenum))) | 1954 | (goto-char last-position) |
| 1955 | ;; first try a forward search for the error text, | 1955 | (forward-line (- linenum last-linenum))) |
| 1956 | ;; then a backward search limited by the last error. | 1956 | ;; first try a forward search for the error text, |
| 1957 | (let ((starting-point (point))) | 1957 | ;; then a backward search limited by the last error. |
| 1958 | (or (re-search-forward error-text nil t) | 1958 | (let ((starting-point (point))) |
| 1959 | (re-search-backward error-text last-position t) | 1959 | (or (re-search-forward error-text nil t) |
| 1960 | (goto-char starting-point))) | 1960 | (re-search-backward error-text last-position t) |
| 1961 | (point-marker)))) | 1961 | (goto-char starting-point))) |
| 1962 | (point-marker))))) | ||
| 1962 | (goto-char this-error) | 1963 | (goto-char this-error) |
| 1963 | (if (and compilation-error-list | 1964 | (if (and compilation-error-list |
| 1964 | (or (and find-at-least | 1965 | (or (and find-at-least |
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index b1a89e4fbef..33f1f06ba9a 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el | |||
| @@ -2294,7 +2294,7 @@ Return an alist of (TYPE MATCH)." | |||
| 2294 | 2294 | ||
| 2295 | (defun widget-radio-button-notify (widget child &optional event) | 2295 | (defun widget-radio-button-notify (widget child &optional event) |
| 2296 | ;; Tell daddy. | 2296 | ;; Tell daddy. |
| 2297 | (widget-apply (widget-get widget :parent) :action event)) | 2297 | (widget-apply (widget-get widget :parent) :action widget event)) |
| 2298 | 2298 | ||
| 2299 | ;;; The `radio-button-choice' Widget. | 2299 | ;;; The `radio-button-choice' Widget. |
| 2300 | 2300 | ||