diff options
| author | Paul Eggert | 2011-07-16 17:37:57 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-16 17:37:57 -0700 |
| commit | 4f8a4547454e24304b4182fbf4ae4b34a7bdc92b (patch) | |
| tree | d03d6d6cdd4b10a62633ed5f9da42d60dac016d0 /lisp | |
| parent | f0eb61e99dce9005dc94c909046f6130b3d4a97c (diff) | |
| parent | 64a465b2d97d00f27ed74513047ced07b798b9fd (diff) | |
| download | emacs-4f8a4547454e24304b4182fbf4ae4b34a7bdc92b.tar.gz emacs-4f8a4547454e24304b4182fbf4ae4b34a7bdc92b.zip | |
Merge from trunk.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 84 | ||||
| -rw-r--r-- | lisp/doc-view.el | 29 | ||||
| -rw-r--r-- | lisp/emacs-lisp/cl-loaddefs.el | 8 | ||||
| -rw-r--r-- | lisp/emacs-lisp/cl-macs.el | 13 | ||||
| -rw-r--r-- | lisp/emacs-lisp/debug.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/syntax.el | 4 | ||||
| -rw-r--r-- | lisp/files.el | 1 | ||||
| -rw-r--r-- | lisp/frame.el | 9 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 17 | ||||
| -rw-r--r-- | lisp/gnus/gnus-group.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus.el | 5 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 31 | ||||
| -rw-r--r-- | lisp/info.el | 16 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 2 | ||||
| -rw-r--r-- | lisp/isearch.el | 3 | ||||
| -rw-r--r-- | lisp/jka-cmpr-hook.el | 6 | ||||
| -rw-r--r-- | lisp/jka-compr.el | 5 | ||||
| -rw-r--r-- | lisp/mh-e/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/mh-e/mh-e.el | 4 | ||||
| -rw-r--r-- | lisp/net/gnutls.el | 34 | ||||
| -rw-r--r-- | lisp/simple.el | 15 | ||||
| -rw-r--r-- | lisp/subr.el | 41 | ||||
| -rw-r--r-- | lisp/textmodes/fill.el | 2 | ||||
| -rw-r--r-- | lisp/window.el | 26 |
24 files changed, 269 insertions, 96 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 66783b9a5ed..15f742ed91a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,87 @@ | |||
| 1 | 2011-07-16 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * net/gnutls.el (gnutls-log-level): Removed. | ||
| 4 | |||
| 5 | * textmodes/fill.el (adaptive-fill-regexp): Include EN DASH as an | ||
| 6 | indentation character (bug#6380). | ||
| 7 | |||
| 8 | * files.el (buffer-offer-save): Made permanently local (bug#6241). | ||
| 9 | |||
| 10 | * doc-view.el (doc-view-make-safe-dir): Rewrite the error message | ||
| 11 | to clarify what the problem is (bug#4291). | ||
| 12 | |||
| 13 | * simple.el (current-kill): Clarify what | ||
| 14 | `interprogram-paste-function' does (bug#7500). | ||
| 15 | (auto-fill-mode): Document `auto-fill-function' in relation to | ||
| 16 | `auto-fill-mode' (bug#2470). | ||
| 17 | |||
| 18 | 2011-07-16 Lawrence Mitchell <wence@gmx.li> | ||
| 19 | |||
| 20 | * emacs-lisp/cl-macs.el (defstruct): Ignore argument to setf | ||
| 21 | method if slot is read-only (bug#9035). | ||
| 22 | |||
| 23 | 2011-07-16 Martin Rudalics <rudalics@gmx.at> | ||
| 24 | |||
| 25 | * frame.el (select-frame-set-input-focus): New argument | ||
| 26 | NORECORD. | ||
| 27 | * window.el (pop-to-buffer): Select window used even if it was | ||
| 28 | selected before, see discussion of (Bug#8615), (Bug#6954). Pass | ||
| 29 | argument NORECORD on to select-frame-set-input-focus. | ||
| 30 | |||
| 31 | 2011-07-15 Glenn Morris <rgm@gnu.org> | ||
| 32 | |||
| 33 | * subr.el (read-char-choice): Allow quitting. (Bug#9001) | ||
| 34 | Respect help-form. | ||
| 35 | |||
| 36 | 2011-07-09 Lawrence Mitchell <wence@gmx.li> | ||
| 37 | |||
| 38 | * net/gnutls.el (gnutls-min-prime-bits): New variable. | ||
| 39 | (gnutls-negotiate): Use it. | ||
| 40 | |||
| 41 | 2011-07-15 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 42 | |||
| 43 | * net/gnutls.el (gnutls-negotiate): Upcase | ||
| 44 | `gnutls-algorithm-priority'. | ||
| 45 | |||
| 46 | 2011-07-15 Glenn Morris <rgm@gnu.org> | ||
| 47 | |||
| 48 | * jka-compr.el (jka-compr-verbose): Move from here... | ||
| 49 | * jka-cmpr-hook.el (jka-compr-verbose): ... to here. (Bug#9090) | ||
| 50 | Add missing :version tag. | ||
| 51 | * info.el: No need to require jka-compr when compiling. | ||
| 52 | |||
| 53 | 2011-07-15 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 54 | |||
| 55 | * net/gnutls.el (gnutls-algorithm-priority): New variable. | ||
| 56 | (gnutls-negotiate): Use it. | ||
| 57 | |||
| 58 | * emacs-lisp/cl-macs.el (declare): Link to the "Declarations" node. | ||
| 59 | |||
| 60 | * info.el (Info-beginning-of-buffer): New command. | ||
| 61 | (Info-mode-map): Use it instead of `beginning-of-buffer' to allow | ||
| 62 | announcing `b' as the key (bug#8325). | ||
| 63 | (Info-mode-menu): Use `Info-beginning-of-buffer' for consistency. | ||
| 64 | |||
| 65 | * emacs-lisp/cl-macs.el (declare): Doc string fix-up. | ||
| 66 | |||
| 67 | * international/mule-cmds.el | ||
| 68 | (describe-specified-language-support): Make the error message | ||
| 69 | clearer (bug#8905). | ||
| 70 | |||
| 71 | * emacs-lisp/cl-macs.el (declare): Add a doc string (bug#8690). | ||
| 72 | |||
| 73 | * isearch.el (isearch-barrier): Add a doc string, since it's | ||
| 74 | mentioned in a function doc string (bug#8678). | ||
| 75 | |||
| 76 | 2011-07-15 Martin Rudalics <rudalics@gmx.at> | ||
| 77 | |||
| 78 | * window.el (switch-to-buffer): Call pop-to-buffer with normalized | ||
| 79 | buffer argument (Bug#9083) and self-identifying label argument. | ||
| 80 | |||
| 81 | 2011-07-15 Glenn Morris <rgm@gnu.org> | ||
| 82 | |||
| 83 | * emacs-lisp/debug.el (debug): Doc fix. (Bug#8273) | ||
| 84 | |||
| 1 | 2011-07-14 Lars Magne Ingebrigtsen <larsi@gnus.org> | 85 | 2011-07-14 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 86 | ||
| 3 | * man.el (Man-fontify-manpage): Fix message when formatting the | 87 | * man.el (Man-fontify-manpage): Fix message when formatting the |
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 666c6a8b034..872b2172c7e 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el | |||
| @@ -569,18 +569,18 @@ at the top edge of the page moves to the previous page." | |||
| 569 | (defun doc-view-make-safe-dir (dir) | 569 | (defun doc-view-make-safe-dir (dir) |
| 570 | (condition-case nil | 570 | (condition-case nil |
| 571 | (let ((umask (default-file-modes))) | 571 | (let ((umask (default-file-modes))) |
| 572 | (unwind-protect | 572 | (unwind-protect |
| 573 | (progn | 573 | (progn |
| 574 | ;; Create temp files with strict access rights. It's easy to | 574 | ;; Create temp files with strict access rights. It's easy to |
| 575 | ;; loosen them later, whereas it's impossible to close the | 575 | ;; loosen them later, whereas it's impossible to close the |
| 576 | ;; time-window of loose permissions otherwise. | 576 | ;; time-window of loose permissions otherwise. |
| 577 | (set-default-file-modes #o0700) | 577 | (set-default-file-modes #o0700) |
| 578 | (make-directory dir)) | 578 | (make-directory dir)) |
| 579 | ;; Reset the umask. | 579 | ;; Reset the umask. |
| 580 | (set-default-file-modes umask))) | 580 | (set-default-file-modes umask))) |
| 581 | (file-already-exists | 581 | (file-already-exists |
| 582 | (if (file-symlink-p dir) | 582 | (when (file-symlink-p dir) |
| 583 | (error "Danger: %s points to a symbolic link" dir)) | 583 | (error "Danger: %s points to a symbolic link" dir)) |
| 584 | ;; In case it was created earlier with looser rights. | 584 | ;; In case it was created earlier with looser rights. |
| 585 | ;; We could check the mode info returned by file-attributes, but it's | 585 | ;; We could check the mode info returned by file-attributes, but it's |
| 586 | ;; a pain to parse and it may not tell you what we want under | 586 | ;; a pain to parse and it may not tell you what we want under |
| @@ -589,7 +589,12 @@ at the top edge of the page moves to the previous page." | |||
| 589 | ;; This also ends up checking a bunch of useful conditions: it makes | 589 | ;; This also ends up checking a bunch of useful conditions: it makes |
| 590 | ;; sure we have write-access to the directory and that we own it, thus | 590 | ;; sure we have write-access to the directory and that we own it, thus |
| 591 | ;; closing a bunch of security holes. | 591 | ;; closing a bunch of security holes. |
| 592 | (set-file-modes dir #o0700)))) | 592 | (condition-case error |
| 593 | (set-file-modes dir #o0700) | ||
| 594 | (file-error | ||
| 595 | (error | ||
| 596 | (format "Unable to use temporary directory %s: %s" | ||
| 597 | dir (mapconcat 'identity (cdr error) " ")))))))) | ||
| 593 | 598 | ||
| 594 | (defun doc-view-current-cache-dir () | 599 | (defun doc-view-current-cache-dir () |
| 595 | "Return the directory where the png files of the current doc should be saved. | 600 | "Return the directory where the png files of the current doc should be saved. |
diff --git a/lisp/emacs-lisp/cl-loaddefs.el b/lisp/emacs-lisp/cl-loaddefs.el index 48c7386bd43..f0c72a0b269 100644 --- a/lisp/emacs-lisp/cl-loaddefs.el +++ b/lisp/emacs-lisp/cl-loaddefs.el | |||
| @@ -282,7 +282,7 @@ Not documented | |||
| 282 | ;;;;;; flet progv psetq do-all-symbols do-symbols dotimes dolist | 282 | ;;;;;; flet progv psetq do-all-symbols do-symbols dotimes dolist |
| 283 | ;;;;;; do* do loop return-from return block etypecase typecase ecase | 283 | ;;;;;; do* do loop return-from return block etypecase typecase ecase |
| 284 | ;;;;;; case load-time-value eval-when destructuring-bind function* | 284 | ;;;;;; case load-time-value eval-when destructuring-bind function* |
| 285 | ;;;;;; defmacro* defun* gentemp gensym) "cl-macs" "cl-macs.el" "9f551dc739a39b3c8b420fbd1ab71879") | 285 | ;;;;;; defmacro* defun* gentemp gensym) "cl-macs" "cl-macs.el" "2261724608e3223036b863d214f7dc0c") |
| 286 | ;;; Generated autoloads from cl-macs.el | 286 | ;;; Generated autoloads from cl-macs.el |
| 287 | 287 | ||
| 288 | (autoload 'gensym "cl-macs" "\ | 288 | (autoload 'gensym "cl-macs" "\ |
| @@ -541,7 +541,13 @@ values. For compatibility, (values A B C) is a synonym for (list A B C). | |||
| 541 | \(fn TYPE FORM)" nil (quote macro)) | 541 | \(fn TYPE FORM)" nil (quote macro)) |
| 542 | 542 | ||
| 543 | (autoload 'declare "cl-macs" "\ | 543 | (autoload 'declare "cl-macs" "\ |
| 544 | Declare SPECS about the current function while compiling. | ||
| 545 | For instance | ||
| 544 | 546 | ||
| 547 | (declare (warn 0)) | ||
| 548 | |||
| 549 | will turn off byte-compile warnings in the function. | ||
| 550 | See Info node `(cl)Declarations' for details. | ||
| 545 | 551 | ||
| 546 | \(fn &rest SPECS)" nil (quote macro)) | 552 | \(fn &rest SPECS)" nil (quote macro)) |
| 547 | 553 | ||
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index 2813cc4f065..d6b4643d6a4 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el | |||
| @@ -1601,6 +1601,13 @@ values. For compatibility, (values A B C) is a synonym for (list A B C). | |||
| 1601 | 1601 | ||
| 1602 | ;;;###autoload | 1602 | ;;;###autoload |
| 1603 | (defmacro declare (&rest specs) | 1603 | (defmacro declare (&rest specs) |
| 1604 | "Declare SPECS about the current function while compiling. | ||
| 1605 | For instance | ||
| 1606 | |||
| 1607 | \(declare (warn 0)) | ||
| 1608 | |||
| 1609 | will turn off byte-compile warnings in the function. | ||
| 1610 | See Info node `(cl)Declarations' for details." | ||
| 1604 | (if (cl-compiling-file) | 1611 | (if (cl-compiling-file) |
| 1605 | (while specs | 1612 | (while specs |
| 1606 | (if (listp cl-declare-stack) (push (car specs) cl-declare-stack)) | 1613 | (if (listp cl-declare-stack) (push (car specs) cl-declare-stack)) |
| @@ -2389,8 +2396,10 @@ value, that slot cannot be set via `setf'. | |||
| 2389 | (push (cons accessor t) side-eff) | 2396 | (push (cons accessor t) side-eff) |
| 2390 | (push (list 'define-setf-method accessor '(cl-x) | 2397 | (push (list 'define-setf-method accessor '(cl-x) |
| 2391 | (if (cadr (memq :read-only (cddr desc))) | 2398 | (if (cadr (memq :read-only (cddr desc))) |
| 2392 | (list 'error (format "%s is a read-only slot" | 2399 | (list 'progn '(ignore cl-x) |
| 2393 | accessor)) | 2400 | (list 'error |
| 2401 | (format "%s is a read-only slot" | ||
| 2402 | 'accessor))) | ||
| 2394 | ;; If cl is loaded only for compilation, | 2403 | ;; If cl is loaded only for compilation, |
| 2395 | ;; the call to cl-struct-setf-expander would | 2404 | ;; the call to cl-struct-setf-expander would |
| 2396 | ;; cause a warning because it may not be | 2405 | ;; cause a warning because it may not be |
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index 2fa339e62fe..157749500e7 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el | |||
| @@ -102,7 +102,7 @@ and `debugger-reenable' to temporarily disable debug-on-entry.") | |||
| 102 | (setq debugger 'debug) | 102 | (setq debugger 'debug) |
| 103 | ;;;###autoload | 103 | ;;;###autoload |
| 104 | (defun debug (&rest debugger-args) | 104 | (defun debug (&rest debugger-args) |
| 105 | "Enter debugger. To return, type \\<debugger-mode-map>`\\[debugger-continue]'. | 105 | "Enter debugger. \\<debugger-mode-map>`\\[debugger-continue]' returns from the debugger. |
| 106 | Arguments are mainly for use when this is called from the internals | 106 | Arguments are mainly for use when this is called from the internals |
| 107 | of the evaluator. | 107 | of the evaluator. |
| 108 | 108 | ||
diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el index 200b3a6389b..c65cbc39eab 100644 --- a/lisp/emacs-lisp/syntax.el +++ b/lisp/emacs-lisp/syntax.el | |||
| @@ -100,7 +100,7 @@ Put first the functions more likely to cause a change and cheaper to compute.") | |||
| 100 | (cons beg end)) | 100 | (cons beg end)) |
| 101 | 101 | ||
| 102 | (defvar syntax-propertize--done -1 | 102 | (defvar syntax-propertize--done -1 |
| 103 | "Position upto which syntax-table properties have been set.") | 103 | "Position up to which syntax-table properties have been set.") |
| 104 | (make-variable-buffer-local 'syntax-propertize--done) | 104 | (make-variable-buffer-local 'syntax-propertize--done) |
| 105 | 105 | ||
| 106 | (defun syntax-propertize--shift-groups (re n) | 106 | (defun syntax-propertize--shift-groups (re n) |
| @@ -283,7 +283,7 @@ The return value is a function suitable for `syntax-propertize-function'." | |||
| 283 | (setq keywords font-lock-syntactic-keywords)))))) | 283 | (setq keywords font-lock-syntactic-keywords)))))) |
| 284 | 284 | ||
| 285 | (defun syntax-propertize (pos) | 285 | (defun syntax-propertize (pos) |
| 286 | "Ensure that syntax-table properties are set upto POS." | 286 | "Ensure that syntax-table properties are set until POS." |
| 287 | (when (and syntax-propertize-function | 287 | (when (and syntax-propertize-function |
| 288 | (< syntax-propertize--done pos)) | 288 | (< syntax-propertize--done pos)) |
| 289 | ;; (message "Needs to syntax-propertize from %s to %s" | 289 | ;; (message "Needs to syntax-propertize from %s to %s" |
diff --git a/lisp/files.el b/lisp/files.el index 0b253fcc297..6b8a352f20c 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -151,6 +151,7 @@ Automatically local in all buffers." | |||
| 151 | :type 'boolean | 151 | :type 'boolean |
| 152 | :group 'backup) | 152 | :group 'backup) |
| 153 | (make-variable-buffer-local 'buffer-offer-save) | 153 | (make-variable-buffer-local 'buffer-offer-save) |
| 154 | (put 'buffer-offer-save 'permanent-local t) | ||
| 154 | 155 | ||
| 155 | (defcustom find-file-existing-other-name t | 156 | (defcustom find-file-existing-other-name t |
| 156 | "Non-nil means find a file under alternative names, in existing buffers. | 157 | "Non-nil means find a file under alternative names, in existing buffers. |
diff --git a/lisp/frame.el b/lisp/frame.el index d6f82750347..8fea4f05147 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -747,12 +747,15 @@ the user during startup." | |||
| 747 | 747 | ||
| 748 | (declare-function x-focus-frame "xfns.c" (frame)) | 748 | (declare-function x-focus-frame "xfns.c" (frame)) |
| 749 | 749 | ||
| 750 | (defun select-frame-set-input-focus (frame) | 750 | (defun select-frame-set-input-focus (frame &optional norecord) |
| 751 | "Select FRAME, raise it, and set input focus, if possible. | 751 | "Select FRAME, raise it, and set input focus, if possible. |
| 752 | If `mouse-autoselect-window' is non-nil, also move mouse pointer | 752 | If `mouse-autoselect-window' is non-nil, also move mouse pointer |
| 753 | to FRAME's selected window. Otherwise, if `focus-follows-mouse' | 753 | to FRAME's selected window. Otherwise, if `focus-follows-mouse' |
| 754 | is non-nil, move mouse cursor to FRAME." | 754 | is non-nil, move mouse cursor to FRAME. |
| 755 | (select-frame frame) | 755 | |
| 756 | Optional argument NORECORD means to neither change the order of | ||
| 757 | recently selected windows nor the buffer list." | ||
| 758 | (select-frame frame norecord) | ||
| 756 | (raise-frame frame) | 759 | (raise-frame frame) |
| 757 | ;; Ensure, if possible, that FRAME gets input focus. | 760 | ;; Ensure, if possible, that FRAME gets input focus. |
| 758 | (when (memq (window-system frame) '(x w32 ns)) | 761 | (when (memq (window-system frame) '(x w32 ns)) |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 7c887dc5450..32f5b702c6f 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | 2011-07-16 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * message.el (message-auto-save-directory): If the ~/Mail directory | ||
| 4 | doesn't exist, use ~ as the auto-save directory (bug#4432). | ||
| 5 | |||
| 6 | * gnus-group.el (gnus-group-read-ephemeral-group): Start Gnus if it | ||
| 7 | hasn't already been started. | ||
| 8 | |||
| 9 | 2011-07-15 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 10 | |||
| 11 | * gnus.el (debbugs-gnu): Renamed from debbugs-emacs. | ||
| 12 | |||
| 13 | * message.el (message-reply): Work around mysterious bug where | ||
| 14 | `message-mode' seems to overwrite the locally bound `subject' variable. | ||
| 15 | |||
| 1 | 2011-07-14 Andrew Cohen <cohen@andy.bu.edu> | 16 | 2011-07-14 Andrew Cohen <cohen@andy.bu.edu> |
| 2 | 17 | ||
| 3 | * nnimap.el (nnimap-request-thread): Ensure search is performed in | 18 | * nnimap.el (nnimap-request-thread): Ensure search is performed in |
| @@ -5,7 +20,7 @@ | |||
| 5 | 20 | ||
| 6 | * gnus-int.el (gnus-request-thread): Add group argument. | 21 | * gnus-int.el (gnus-request-thread): Add group argument. |
| 7 | 22 | ||
| 8 | * gnus-sum.el (gnus-request-thread): Use it. | 23 | * gnus-sum.el (gnus-summary-refer-thread): Use it. |
| 9 | 24 | ||
| 10 | 2011-07-10 Lars Magne Ingebrigtsen <larsi@gnus.org> | 25 | 2011-07-10 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 11 | 26 | ||
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 2ea2a5c9bc7..b4dca3e1fc4 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -2282,6 +2282,8 @@ Return the name of the group if selection was successful." | |||
| 2282 | (gnus-group-completing-read) | 2282 | (gnus-group-completing-read) |
| 2283 | (gnus-read-method "From method"))) | 2283 | (gnus-read-method "From method"))) |
| 2284 | ;; Transform the select method into a unique server. | 2284 | ;; Transform the select method into a unique server. |
| 2285 | (unless (gnus-alive-p) | ||
| 2286 | (gnus-no-server)) | ||
| 2285 | (when (stringp method) | 2287 | (when (stringp method) |
| 2286 | (setq method (gnus-server-to-method method))) | 2288 | (setq method (gnus-server-to-method method))) |
| 2287 | (setq method | 2289 | (setq method |
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el index ac7db0e1d69..b66d5f22474 100644 --- a/lisp/gnus/gnus.el +++ b/lisp/gnus/gnus.el | |||
| @@ -4381,12 +4381,11 @@ prompt the user for the name of an NNTP server to use." | |||
| 4381 | (gnus-1 arg dont-connect slave) | 4381 | (gnus-1 arg dont-connect slave) |
| 4382 | (gnus-final-warning))) | 4382 | (gnus-final-warning))) |
| 4383 | 4383 | ||
| 4384 | (autoload 'debbugs-emacs "debbugs-gnu") | 4384 | (autoload 'debbugs-gnu "debbugs-gnu") |
| 4385 | (defun gnus-list-debbugs () | 4385 | (defun gnus-list-debbugs () |
| 4386 | "List all open Gnus bug reports." | 4386 | "List all open Gnus bug reports." |
| 4387 | (interactive) | 4387 | (interactive) |
| 4388 | (debbugs-emacs '("important" "normal" "minor" "wishlist") | 4388 | (debbugs-gnu nil "gnus")) |
| 4389 | "gnus")) | ||
| 4390 | 4389 | ||
| 4391 | ;; Allow redefinition of Gnus functions. | 4390 | ;; Allow redefinition of Gnus functions. |
| 4392 | 4391 | ||
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 7d7cc01225b..ff013e5b291 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -1310,7 +1310,9 @@ text and it replaces `self-insert-command' with the other command, e.g. | |||
| 1310 | :type '(repeat function)) | 1310 | :type '(repeat function)) |
| 1311 | 1311 | ||
| 1312 | (defcustom message-auto-save-directory | 1312 | (defcustom message-auto-save-directory |
| 1313 | (file-name-as-directory (expand-file-name "drafts" message-directory)) | 1313 | (if (file-exists-p message-directory) |
| 1314 | (file-name-as-directory (expand-file-name "drafts" message-directory)) | ||
| 1315 | "~/") | ||
| 1314 | "*Directory where Message auto-saves buffers if Gnus isn't running. | 1316 | "*Directory where Message auto-saves buffers if Gnus isn't running. |
| 1315 | If nil, Message won't auto-save." | 1317 | If nil, Message won't auto-save." |
| 1316 | :group 'message-buffers | 1318 | :group 'message-buffers |
| @@ -6878,20 +6880,19 @@ Useful functions to put in this list include: | |||
| 6878 | (unless follow-to | 6880 | (unless follow-to |
| 6879 | (setq follow-to (message-get-reply-headers wide to-address)))) | 6881 | (setq follow-to (message-get-reply-headers wide to-address)))) |
| 6880 | 6882 | ||
| 6881 | (unless (message-mail-user-agent) | 6883 | (let ((headers |
| 6882 | (message-pop-to-buffer | 6884 | `((Subject . ,subject) |
| 6883 | (message-buffer-name | 6885 | ,@follow-to))) |
| 6884 | (if wide "wide reply" "reply") from | 6886 | (unless (message-mail-user-agent) |
| 6885 | (if wide to-address nil)) | 6887 | (message-pop-to-buffer |
| 6886 | switch-function)) | 6888 | (message-buffer-name |
| 6887 | 6889 | (if wide "wide reply" "reply") from | |
| 6888 | (setq message-reply-headers | 6890 | (if wide to-address nil)) |
| 6889 | (vector 0 subject from date message-id references 0 0 "")) | 6891 | switch-function)) |
| 6890 | 6892 | (setq message-reply-headers | |
| 6891 | (message-setup | 6893 | (vector 0 (cdr (assq 'Subject headers)) |
| 6892 | `((Subject . ,subject) | 6894 | from date message-id references 0 0 "")) |
| 6893 | ,@follow-to) | 6895 | (message-setup headers cur)))) |
| 6894 | cur))) | ||
| 6895 | 6896 | ||
| 6896 | ;;;###autoload | 6897 | ;;;###autoload |
| 6897 | (defun message-wide-reply (&optional to-address) | 6898 | (defun message-wide-reply (&optional to-address) |
diff --git a/lisp/info.el b/lisp/info.el index cbdc8cc7ab3..a4826ee8c2c 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -32,7 +32,7 @@ | |||
| 32 | 32 | ||
| 33 | ;;; Code: | 33 | ;;; Code: |
| 34 | 34 | ||
| 35 | (eval-when-compile (require 'jka-compr) (require 'cl)) | 35 | (eval-when-compile (require 'cl)) |
| 36 | 36 | ||
| 37 | (defgroup info nil | 37 | (defgroup info nil |
| 38 | "Info subsystem." | 38 | "Info subsystem." |
| @@ -2789,6 +2789,11 @@ N is the digit argument used to invoke this command." | |||
| 2789 | (goto-char (point-max))))) | 2789 | (goto-char (point-max))))) |
| 2790 | (t (error "No previous nodes")))) | 2790 | (t (error "No previous nodes")))) |
| 2791 | 2791 | ||
| 2792 | (defun Info-beginning-of-buffer () | ||
| 2793 | "Go to the beginnning of the buffer." | ||
| 2794 | (interactive) | ||
| 2795 | (goto-char (point-min))) | ||
| 2796 | |||
| 2792 | (defun Info-scroll-up () | 2797 | (defun Info-scroll-up () |
| 2793 | "Scroll one screenful forward in Info, considering all nodes as one sequence. | 2798 | "Scroll one screenful forward in Info, considering all nodes as one sequence. |
| 2794 | Once you scroll far enough in a node that its menu appears on the screen | 2799 | Once you scroll far enough in a node that its menu appears on the screen |
| @@ -3650,7 +3655,7 @@ If FORK is non-nil, it is passed to `Info-goto-node'." | |||
| 3650 | (defvar Info-mode-map | 3655 | (defvar Info-mode-map |
| 3651 | (let ((map (make-keymap))) | 3656 | (let ((map (make-keymap))) |
| 3652 | (suppress-keymap map) | 3657 | (suppress-keymap map) |
| 3653 | (define-key map "." 'beginning-of-buffer) | 3658 | (define-key map "." 'Info-beginning-of-buffer) |
| 3654 | (define-key map " " 'Info-scroll-up) | 3659 | (define-key map " " 'Info-scroll-up) |
| 3655 | (define-key map "\C-m" 'Info-follow-nearest-node) | 3660 | (define-key map "\C-m" 'Info-follow-nearest-node) |
| 3656 | (define-key map "\t" 'Info-next-reference) | 3661 | (define-key map "\t" 'Info-next-reference) |
| @@ -3671,7 +3676,8 @@ If FORK is non-nil, it is passed to `Info-goto-node'." | |||
| 3671 | (define-key map "[" 'Info-backward-node) | 3676 | (define-key map "[" 'Info-backward-node) |
| 3672 | (define-key map "<" 'Info-top-node) | 3677 | (define-key map "<" 'Info-top-node) |
| 3673 | (define-key map ">" 'Info-final-node) | 3678 | (define-key map ">" 'Info-final-node) |
| 3674 | (define-key map "b" 'beginning-of-buffer) | 3679 | (define-key map "b" 'Info-beginning-of-buffer) |
| 3680 | (put 'Info-beginning-of-buffer :advertised-binding "b") | ||
| 3675 | (define-key map "d" 'Info-directory) | 3681 | (define-key map "d" 'Info-directory) |
| 3676 | (define-key map "e" 'Info-edit) | 3682 | (define-key map "e" 'Info-edit) |
| 3677 | (define-key map "f" 'Info-follow-reference) | 3683 | (define-key map "f" 'Info-follow-reference) |
| @@ -3725,7 +3731,7 @@ If FORK is non-nil, it is passed to `Info-goto-node'." | |||
| 3725 | :help "Go backward one node, considering all as a sequence"] | 3731 | :help "Go backward one node, considering all as a sequence"] |
| 3726 | ["Forward" Info-forward-node | 3732 | ["Forward" Info-forward-node |
| 3727 | :help "Go forward one node, considering all as a sequence"] | 3733 | :help "Go forward one node, considering all as a sequence"] |
| 3728 | ["Beginning" beginning-of-buffer | 3734 | ["Beginning" Info-beginning-of-buffer |
| 3729 | :help "Go to beginning of this node"] | 3735 | :help "Go to beginning of this node"] |
| 3730 | ["Top" Info-top-node | 3736 | ["Top" Info-top-node |
| 3731 | :help "Go to top node of file"] | 3737 | :help "Go to top node of file"] |
| @@ -3931,7 +3937,7 @@ Moving within a node: | |||
| 3931 | \\[Info-scroll-down] Normally, scroll backward. If the beginning of the buffer is | 3937 | \\[Info-scroll-down] Normally, scroll backward. If the beginning of the buffer is |
| 3932 | already visible, try to go to the previous menu entry, or up | 3938 | already visible, try to go to the previous menu entry, or up |
| 3933 | if there is none. | 3939 | if there is none. |
| 3934 | \\[beginning-of-buffer] Go to beginning of node. | 3940 | \\[Info-beginning-of-buffer] Go to beginning of node. |
| 3935 | 3941 | ||
| 3936 | Advanced commands: | 3942 | Advanced commands: |
| 3937 | \\[Info-search] Search through this Info file for specified regexp, | 3943 | \\[Info-search] Search through this Info file for specified regexp, |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 6a73aaaa838..128fb86b7b4 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -2059,7 +2059,7 @@ See `set-language-info-alist' for use in programs." | |||
| 2059 | (or (not (eq last-command-event 'Default)) | 2059 | (or (not (eq last-command-event 'Default)) |
| 2060 | (setq last-command-event 'English)) | 2060 | (setq last-command-event 'English)) |
| 2061 | (setq language-name (symbol-name last-command-event)))) | 2061 | (setq language-name (symbol-name last-command-event)))) |
| 2062 | (error "Bogus calling sequence")) | 2062 | (error "This command should only be called from the menu bar")) |
| 2063 | (describe-language-environment language-name))) | 2063 | (describe-language-environment language-name))) |
| 2064 | 2064 | ||
| 2065 | (defun describe-language-environment (language-name) | 2065 | (defun describe-language-environment (language-name) |
diff --git a/lisp/isearch.el b/lisp/isearch.el index 50e7b331c85..1942641fae9 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -549,7 +549,8 @@ Each set is a vector of the form: | |||
| 549 | (defvar isearch-error nil) ; Error message for failed search. | 549 | (defvar isearch-error nil) ; Error message for failed search. |
| 550 | (defvar isearch-other-end nil) ; Start (end) of match if forward (backward). | 550 | (defvar isearch-other-end nil) ; Start (end) of match if forward (backward). |
| 551 | (defvar isearch-wrapped nil) ; Searching restarted from the top (bottom). | 551 | (defvar isearch-wrapped nil) ; Searching restarted from the top (bottom). |
| 552 | (defvar isearch-barrier 0) | 552 | (defvar isearch-barrier 0 |
| 553 | "Recorded minimum/maximal point for the current search.") | ||
| 553 | (defvar isearch-just-started nil) | 554 | (defvar isearch-just-started nil) |
| 554 | (defvar isearch-start-hscroll 0) ; hscroll when starting the search. | 555 | (defvar isearch-start-hscroll 0) ; hscroll when starting the search. |
| 555 | 556 | ||
diff --git a/lisp/jka-cmpr-hook.el b/lisp/jka-cmpr-hook.el index e1cf2a661ed..d28fde0b214 100644 --- a/lisp/jka-cmpr-hook.el +++ b/lisp/jka-cmpr-hook.el | |||
| @@ -39,6 +39,12 @@ | |||
| 39 | "jka-compr customization." | 39 | "jka-compr customization." |
| 40 | :group 'compression) | 40 | :group 'compression) |
| 41 | 41 | ||
| 42 | (defcustom jka-compr-verbose t | ||
| 43 | "If non-nil, output messages whenever compressing or uncompressing files." | ||
| 44 | :version "24.1" | ||
| 45 | :type 'boolean | ||
| 46 | :group 'jka-compr) | ||
| 47 | |||
| 42 | ;; List of all the elements we actually added to file-coding-system-alist. | 48 | ;; List of all the elements we actually added to file-coding-system-alist. |
| 43 | (defvar jka-compr-added-to-file-coding-system-alist nil) | 49 | (defvar jka-compr-added-to-file-coding-system-alist nil) |
| 44 | 50 | ||
diff --git a/lisp/jka-compr.el b/lisp/jka-compr.el index 1893e982bbb..cd769885cc6 100644 --- a/lisp/jka-compr.el +++ b/lisp/jka-compr.el | |||
| @@ -97,11 +97,6 @@ NOTE: Not used in MS-DOS and Windows systems." | |||
| 97 | :type 'string | 97 | :type 'string |
| 98 | :group 'jka-compr) | 98 | :group 'jka-compr) |
| 99 | 99 | ||
| 100 | (defcustom jka-compr-verbose t | ||
| 101 | "If non-nil, output messages whenever compressing or uncompressing files." | ||
| 102 | :type 'boolean | ||
| 103 | :group 'jka-compr) | ||
| 104 | |||
| 105 | (defvar jka-compr-use-shell | 100 | (defvar jka-compr-use-shell |
| 106 | (not (memq system-type '(ms-dos windows-nt)))) | 101 | (not (memq system-type '(ms-dos windows-nt)))) |
| 107 | 102 | ||
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index df4edcc75e1..431c15b2346 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-07-16 Bill Wohler <wohler@newt.com> | ||
| 2 | |||
| 3 | Release MH-E version 8.2.92. | ||
| 4 | |||
| 5 | * mh-e.el (Version, mh-version): Update for release 8.2.92. | ||
| 6 | |||
| 1 | 2011-07-12 Bill Wohler <wohler@newt.com> | 7 | 2011-07-12 Bill Wohler <wohler@newt.com> |
| 2 | 8 | ||
| 3 | Release MH-E version 8.2.91. | 9 | Release MH-E version 8.2.91. |
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el index 51b41e854b0..1e7b07eb6dc 100644 --- a/lisp/mh-e/mh-e.el +++ b/lisp/mh-e/mh-e.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | 5 | ||
| 6 | ;; Author: Bill Wohler <wohler@newt.com> | 6 | ;; Author: Bill Wohler <wohler@newt.com> |
| 7 | ;; Maintainer: Bill Wohler <wohler@newt.com> | 7 | ;; Maintainer: Bill Wohler <wohler@newt.com> |
| 8 | ;; Version: 8.2.91 | 8 | ;; Version: 8.2.92 |
| 9 | ;; Keywords: mail | 9 | ;; Keywords: mail |
| 10 | 10 | ||
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| @@ -127,7 +127,7 @@ | |||
| 127 | ;; Try to keep variables local to a single file. Provide accessors if | 127 | ;; Try to keep variables local to a single file. Provide accessors if |
| 128 | ;; variables are shared. Use this section as a last resort. | 128 | ;; variables are shared. Use this section as a last resort. |
| 129 | 129 | ||
| 130 | (defconst mh-version "8.2.91" "Version number of MH-E.") | 130 | (defconst mh-version "8.2.92" "Version number of MH-E.") |
| 131 | 131 | ||
| 132 | ;; Variants | 132 | ;; Variants |
| 133 | 133 | ||
diff --git a/lisp/net/gnutls.el b/lisp/net/gnutls.el index 67d7b2d20d3..9cb071b185d 100644 --- a/lisp/net/gnutls.el +++ b/lisp/net/gnutls.el | |||
| @@ -42,9 +42,24 @@ | |||
| 42 | :prefix "gnutls-" | 42 | :prefix "gnutls-" |
| 43 | :group 'net-utils) | 43 | :group 'net-utils) |
| 44 | 44 | ||
| 45 | (defcustom gnutls-log-level 0 | 45 | (defcustom gnutls-algorithm-priority nil |
| 46 | "Logging level to be used by `starttls-negotiate' and GnuTLS." | 46 | "If non-nil, this should be a TLS priority string. |
| 47 | :type 'integer | 47 | For instance, if you want to skip the \"dhe-rsa\" algorithm, |
| 48 | set this variable to \"normal:-dhe-rsa\"." | ||
| 49 | :type '(choice (const nil) | ||
| 50 | string)) | ||
| 51 | |||
| 52 | ;;;###autoload | ||
| 53 | (defcustom gnutls-min-prime-bits nil | ||
| 54 | "The minimum number of bits to be used in Diffie-Hellman key exchange. | ||
| 55 | |||
| 56 | This sets the minimum accepted size of the key to be used in a | ||
| 57 | client-server handshake. If the server sends a prime with fewer than | ||
| 58 | the specified number of bits the handshake will fail. | ||
| 59 | |||
| 60 | A value of nil says to use the default gnutls value." | ||
| 61 | :type '(choice (const :tag "Use default value" nil) | ||
| 62 | (integer :tag "Number of bits" 512)) | ||
| 48 | :group 'gnutls) | 63 | :group 'gnutls) |
| 49 | 64 | ||
| 50 | (defun open-gnutls-stream (name buffer host service) | 65 | (defun open-gnutls-stream (name buffer host service) |
| @@ -90,8 +105,8 @@ trust and key files, and priority string." | |||
| 90 | (defun* gnutls-negotiate | 105 | (defun* gnutls-negotiate |
| 91 | (&rest spec | 106 | (&rest spec |
| 92 | &key process type hostname priority-string | 107 | &key process type hostname priority-string |
| 93 | trustfiles crlfiles keylist verify-flags | 108 | trustfiles crlfiles keylist min-prime-bits |
| 94 | verify-error verify-hostname-error | 109 | verify-flags verify-error verify-hostname-error |
| 95 | &allow-other-keys) | 110 | &allow-other-keys) |
| 96 | "Negotiate a SSL/TLS connection. Returns proc. Signals gnutls-error. | 111 | "Negotiate a SSL/TLS connection. Returns proc. Signals gnutls-error. |
| 97 | 112 | ||
| @@ -104,6 +119,9 @@ PRIORITY-STRING is as per the GnuTLS docs, default is \"NORMAL\". | |||
| 104 | TRUSTFILES is a list of CA bundles. | 119 | TRUSTFILES is a list of CA bundles. |
| 105 | CRLFILES is a list of CRL files. | 120 | CRLFILES is a list of CRL files. |
| 106 | KEYLIST is an alist of (client key file, client cert file) pairs. | 121 | KEYLIST is an alist of (client key file, client cert file) pairs. |
| 122 | MIN-PRIME-BITS is the minimum acceptable size of Diffie-Hellman keys | ||
| 123 | \(see `gnutls-min-prime-bits' for more information). Use nil for the | ||
| 124 | default. | ||
| 107 | 125 | ||
| 108 | When VERIFY-HOSTNAME-ERROR is not nil, an error will be raised | 126 | When VERIFY-HOSTNAME-ERROR is not nil, an error will be raised |
| 109 | when the hostname does not match the presented certificate's host | 127 | when the hostname does not match the presented certificate's host |
| @@ -145,10 +163,14 @@ defaults to GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT." | |||
| 145 | ((eq type 'gnutls-anon) | 163 | ((eq type 'gnutls-anon) |
| 146 | "NORMAL:+ANON-DH:!ARCFOUR-128") | 164 | "NORMAL:+ANON-DH:!ARCFOUR-128") |
| 147 | ((eq type 'gnutls-x509pki) | 165 | ((eq type 'gnutls-x509pki) |
| 148 | "NORMAL")))) | 166 | (if gnutls-algorithm-priority |
| 167 | (upcase gnutls-algorithm-priority) | ||
| 168 | "NORMAL"))))) | ||
| 169 | (min-prime-bits (or min-prime-bits gnutls-min-prime-bits)) | ||
| 149 | (params `(:priority ,priority-string | 170 | (params `(:priority ,priority-string |
| 150 | :hostname ,hostname | 171 | :hostname ,hostname |
| 151 | :loglevel ,gnutls-log-level | 172 | :loglevel ,gnutls-log-level |
| 173 | :min-prime-bits ,min-prime-bits | ||
| 152 | :trustfiles ,trustfiles | 174 | :trustfiles ,trustfiles |
| 153 | :crlfiles ,crlfiles | 175 | :crlfiles ,crlfiles |
| 154 | :keylist ,keylist | 176 | :keylist ,keylist |
diff --git a/lisp/simple.el b/lisp/simple.el index 64333402924..7fd7e20b499 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -3056,10 +3056,11 @@ If `interprogram-cut-function' is set, pass the resulting kill to it." | |||
| 3056 | 3056 | ||
| 3057 | (defun current-kill (n &optional do-not-move) | 3057 | (defun current-kill (n &optional do-not-move) |
| 3058 | "Rotate the yanking point by N places, and then return that kill. | 3058 | "Rotate the yanking point by N places, and then return that kill. |
| 3059 | If N is zero, `interprogram-paste-function' is set, and calling | 3059 | If N is zero and `interprogram-paste-function' is set to a |
| 3060 | it returns a string or list of strings, then that string (or | 3060 | function that returns a string or a list of strings, and if that |
| 3061 | list) is added to the front of the kill ring and the string (or | 3061 | function doesn't return nil, then that string (or list) is added |
| 3062 | first string in the list) is returned as the latest kill. | 3062 | to the front of the kill ring and the string (or first string in |
| 3063 | the list) is returned as the latest kill. | ||
| 3063 | 3064 | ||
| 3064 | If N is not zero, and if `yank-pop-change-selection' is | 3065 | If N is not zero, and if `yank-pop-change-selection' is |
| 3065 | non-nil, use `interprogram-cut-function' to transfer the | 3066 | non-nil, use `interprogram-cut-function' to transfer the |
| @@ -5236,14 +5237,16 @@ Some major modes set this.") | |||
| 5236 | ;; auto-fill-function to nil in a file-local setting is safe and | 5237 | ;; auto-fill-function to nil in a file-local setting is safe and |
| 5237 | ;; can be useful to prevent auto-filling. | 5238 | ;; can be useful to prevent auto-filling. |
| 5238 | (put 'auto-fill-function 'safe-local-variable 'null) | 5239 | (put 'auto-fill-function 'safe-local-variable 'null) |
| 5239 | ;; FIXME: turn into a proper minor mode. | 5240 | |
| 5240 | ;; Add a global minor mode version of it. | ||
| 5241 | (define-minor-mode auto-fill-mode | 5241 | (define-minor-mode auto-fill-mode |
| 5242 | "Toggle Auto Fill mode. | 5242 | "Toggle Auto Fill mode. |
| 5243 | With ARG, turn Auto Fill mode on if and only if ARG is positive. | 5243 | With ARG, turn Auto Fill mode on if and only if ARG is positive. |
| 5244 | In Auto Fill mode, inserting a space at a column beyond `current-fill-column' | 5244 | In Auto Fill mode, inserting a space at a column beyond `current-fill-column' |
| 5245 | automatically breaks the line at a previous space. | 5245 | automatically breaks the line at a previous space. |
| 5246 | 5246 | ||
| 5247 | When `auto-fill-mode' is on, the `auto-fill-function' variable is | ||
| 5248 | non-`nil'. | ||
| 5249 | |||
| 5247 | The value of `normal-auto-fill-function' specifies the function to use | 5250 | The value of `normal-auto-fill-function' specifies the function to use |
| 5248 | for `auto-fill-function' when turning Auto Fill mode on." | 5251 | for `auto-fill-function' when turning Auto Fill mode on." |
| 5249 | :variable (eq auto-fill-function normal-auto-fill-function)) | 5252 | :variable (eq auto-fill-function normal-auto-fill-function)) |
diff --git a/lisp/subr.el b/lisp/subr.el index 94b28c007d1..ef19797012a 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2145,23 +2145,34 @@ If optional argument INHIBIT-KEYBOARD-QUIT is non-nil, ignore | |||
| 2145 | keyboard-quit events while waiting for a valid input." | 2145 | keyboard-quit events while waiting for a valid input." |
| 2146 | (unless (consp chars) | 2146 | (unless (consp chars) |
| 2147 | (error "Called `read-char-choice' without valid char choices")) | 2147 | (error "Called `read-char-choice' without valid char choices")) |
| 2148 | (let (char done) | 2148 | (let (char done show-help (helpbuf " *Char Help*")) |
| 2149 | (let ((cursor-in-echo-area t) | 2149 | (let ((cursor-in-echo-area t) |
| 2150 | (executing-kbd-macro executing-kbd-macro)) | 2150 | (executing-kbd-macro executing-kbd-macro)) |
| 2151 | (while (not done) | 2151 | (save-window-excursion ; in case we call help-form-show |
| 2152 | (unless (get-text-property 0 'face prompt) | 2152 | (while (not done) |
| 2153 | (setq prompt (propertize prompt 'face 'minibuffer-prompt))) | 2153 | (unless (get-text-property 0 'face prompt) |
| 2154 | (setq char (let ((inhibit-quit inhibit-keyboard-quit)) | 2154 | (setq prompt (propertize prompt 'face 'minibuffer-prompt))) |
| 2155 | (read-key prompt))) | 2155 | (setq char (let ((inhibit-quit inhibit-keyboard-quit)) |
| 2156 | (cond | 2156 | (read-key prompt))) |
| 2157 | ((not (numberp char))) | 2157 | (and show-help (buffer-live-p helpbuf) |
| 2158 | ((memq char chars) | 2158 | (kill-buffer helpbuf)) |
| 2159 | (setq done t)) | 2159 | (cond |
| 2160 | ((and executing-kbd-macro (= char -1)) | 2160 | ((not (numberp char))) |
| 2161 | ;; read-event returns -1 if we are in a kbd macro and | 2161 | ;; If caller has set help-form, that's enough. |
| 2162 | ;; there are no more events in the macro. Attempt to | 2162 | ;; They don't explicitly have to add help-char to chars. |
| 2163 | ;; get an event interactively. | 2163 | ((and help-form |
| 2164 | (setq executing-kbd-macro nil))))) | 2164 | (eq char help-char) |
| 2165 | (setq show-help t) | ||
| 2166 | (help-form-show))) | ||
| 2167 | ((memq char chars) | ||
| 2168 | (setq done t)) | ||
| 2169 | ((and executing-kbd-macro (= char -1)) | ||
| 2170 | ;; read-event returns -1 if we are in a kbd macro and | ||
| 2171 | ;; there are no more events in the macro. Attempt to | ||
| 2172 | ;; get an event interactively. | ||
| 2173 | (setq executing-kbd-macro nil)) | ||
| 2174 | ((and (not inhibit-keyboard-quit) (eq char ?\C-g)) | ||
| 2175 | (keyboard-quit)))))) | ||
| 2165 | ;; Display the question with the answer. But without cursor-in-echo-area. | 2176 | ;; Display the question with the answer. But without cursor-in-echo-area. |
| 2166 | (message "%s%s" prompt (char-to-string char)) | 2177 | (message "%s%s" prompt (char-to-string char)) |
| 2167 | char)) | 2178 | char)) |
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index b264cc30850..52f6e5b4889 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el | |||
| @@ -93,7 +93,7 @@ reinserts the fill prefix in each resulting line." | |||
| 93 | ;; Added `!' for doxygen comments starting with `//!' or `/*!'. | 93 | ;; Added `!' for doxygen comments starting with `//!' or `/*!'. |
| 94 | ;; Added `%' for TeX comments. | 94 | ;; Added `%' for TeX comments. |
| 95 | ;; RMS: deleted the code to match `1.' and `(1)'. | 95 | ;; RMS: deleted the code to match `1.' and `(1)'. |
| 96 | (purecopy "[ \t]*\\([-!|#%;>*·•‣⁃◦]+[ \t]*\\)*") | 96 | (purecopy "[ \t]*\\([-–!|#%;>*·•‣⁃◦]+[ \t]*\\)*") |
| 97 | "Regexp to match text at start of line that constitutes indentation. | 97 | "Regexp to match text at start of line that constitutes indentation. |
| 98 | If Adaptive Fill mode is enabled, a prefix matching this pattern | 98 | If Adaptive Fill mode is enabled, a prefix matching this pattern |
| 99 | on the first and second lines of a paragraph is used as the | 99 | on the first and second lines of a paragraph is used as the |
diff --git a/lisp/window.el b/lisp/window.el index 0302a672521..b4b900287e1 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -3272,7 +3272,7 @@ window." | |||
| 3272 | (defun split-window-side-by-side (&optional size) | 3272 | (defun split-window-side-by-side (&optional size) |
| 3273 | "Split selected window into two windows side by side. | 3273 | "Split selected window into two windows side by side. |
| 3274 | The selected window becomes the left one and gets SIZE columns. | 3274 | The selected window becomes the left one and gets SIZE columns. |
| 3275 | SIZE negative means the right window gets -SIZE lines. | 3275 | SIZE negative means the right window gets -SIZE columns. |
| 3276 | 3276 | ||
| 3277 | SIZE includes the width of the window's scroll bar; if there are | 3277 | SIZE includes the width of the window's scroll bar; if there are |
| 3278 | no scroll bars, it includes the width of the divider column to | 3278 | no scroll bars, it includes the width of the divider column to |
| @@ -5836,15 +5836,13 @@ additional information." | |||
| 5836 | new-window new-frame) | 5836 | new-window new-frame) |
| 5837 | (set-buffer buffer) | 5837 | (set-buffer buffer) |
| 5838 | (setq new-window (display-buffer buffer specifiers label)) | 5838 | (setq new-window (display-buffer buffer specifiers label)) |
| 5839 | (unless (eq new-window old-window) | 5839 | (setq new-frame (window-frame new-window)) |
| 5840 | ;; `display-buffer' has chosen another window, select it. | 5840 | (if (eq old-frame new-frame) |
| 5841 | (select-window new-window norecord) | 5841 | ;; Make sure new-window gets selected (Bug#8615), (Bug#6954). |
| 5842 | (setq new-frame (window-frame new-window)) | 5842 | (select-window new-window norecord) |
| 5843 | (unless (eq new-frame old-frame) | 5843 | ;; `display-buffer' has chosen another frame, make sure it gets |
| 5844 | ;; `display-buffer' has chosen another frame, make sure it gets | 5844 | ;; input focus and is risen. |
| 5845 | ;; input focus and is risen. | 5845 | (select-frame-set-input-focus new-frame norecord)) |
| 5846 | (select-frame-set-input-focus new-frame))) | ||
| 5847 | |||
| 5848 | buffer)) | 5846 | buffer)) |
| 5849 | 5847 | ||
| 5850 | (defsubst pop-to-buffer-same-window (&optional buffer-or-name norecord label) | 5848 | (defsubst pop-to-buffer-same-window (&optional buffer-or-name norecord label) |
| @@ -5953,13 +5951,13 @@ Return the buffer switched to." | |||
| 5953 | (list (read-buffer-to-switch "Switch to buffer: ") nil nil)) | 5951 | (list (read-buffer-to-switch "Switch to buffer: ") nil nil)) |
| 5954 | (let ((buffer (window-normalize-buffer-to-switch-to buffer-or-name))) | 5952 | (let ((buffer (window-normalize-buffer-to-switch-to buffer-or-name))) |
| 5955 | (if (null force-same-window) | 5953 | (if (null force-same-window) |
| 5956 | (pop-to-buffer buffer-or-name | 5954 | (pop-to-buffer |
| 5957 | '(same-window (reuse-window-dedicated . weak)) | 5955 | buffer '(same-window (reuse-window-dedicated . weak)) |
| 5958 | norecord nil) | 5956 | norecord 'switch-to-buffer) |
| 5959 | (cond | 5957 | (cond |
| 5960 | ;; Don't call set-window-buffer if it's not needed since it | 5958 | ;; Don't call set-window-buffer if it's not needed since it |
| 5961 | ;; might signal an error (e.g. if the window is dedicated). | 5959 | ;; might signal an error (e.g. if the window is dedicated). |
| 5962 | ((eq buffer (window-buffer)) nil) | 5960 | ((eq buffer (window-buffer))) |
| 5963 | ((window-minibuffer-p) | 5961 | ((window-minibuffer-p) |
| 5964 | (error "Cannot switch buffers in minibuffer window")) | 5962 | (error "Cannot switch buffers in minibuffer window")) |
| 5965 | ((eq (window-dedicated-p) t) | 5963 | ((eq (window-dedicated-p) t) |