diff options
| author | Karoly Lorentey | 2006-12-03 12:15:03 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2006-12-03 12:15:03 +0000 |
| commit | 14bcc1e098410087a837313e2fc822319ff2e8ca (patch) | |
| tree | e468aebbb8d84438d81eb08bf6b77bfeaf664ea7 /lisp | |
| parent | 5665a02fd1d009506f246d5f77896e3995127954 (diff) | |
| parent | 704ec54b3f2a40026ea7835b76e040c7335a56c1 (diff) | |
| download | emacs-14bcc1e098410087a837313e2fc822319ff2e8ca.tar.gz emacs-14bcc1e098410087a837313e2fc822319ff2e8ca.zip | |
Merged from emacs@sv.gnu.org.
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-474
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-475
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-476
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-477
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-478
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-150
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-151
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-152
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-584
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 104 | ||||
| -rw-r--r-- | lisp/dired-aux.el | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/pp.el | 17 | ||||
| -rw-r--r-- | lisp/facemenu.el | 3 | ||||
| -rw-r--r-- | lisp/filesets.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 20 | ||||
| -rw-r--r-- | lisp/gnus/gmm-utils.el | 15 | ||||
| -rw-r--r-- | lisp/gnus/mm-util.el | 16 | ||||
| -rw-r--r-- | lisp/gnus/mm-uu.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/nnmaildir.el | 11 | ||||
| -rw-r--r-- | lisp/help-fns.el | 63 | ||||
| -rw-r--r-- | lisp/ido.el | 4 | ||||
| -rw-r--r-- | lisp/mail/smtpmail.el | 11 | ||||
| -rw-r--r-- | lisp/progmodes/ada-mode.el | 38 | ||||
| -rw-r--r-- | lisp/progmodes/ada-xref.el | 8 | ||||
| -rw-r--r-- | lisp/progmodes/flymake.el | 4 | ||||
| -rw-r--r-- | lisp/recentf.el | 4 | ||||
| -rw-r--r-- | lisp/shell.el | 4 | ||||
| -rw-r--r-- | lisp/simple.el | 20 | ||||
| -rw-r--r-- | lisp/subr.el | 6 | ||||
| -rw-r--r-- | lisp/term/x-win.el | 9 | ||||
| -rw-r--r-- | lisp/textmodes/flyspell.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/table.el | 1 | ||||
| -rw-r--r-- | lisp/url/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/url/url-http.el | 4 | ||||
| -rw-r--r-- | lisp/woman.el | 6 |
26 files changed, 281 insertions, 105 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8dd343fc8ee..89a00314048 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,12 +1,97 @@ | |||
| 1 | 2006-10-18 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * progmodes/ada-mode.el (ada-83-string-keywords) | ||
| 4 | (ada-last-which-function-line ada-no-auto-case, ada-indent-region) | ||
| 5 | (ada-which-compiler, ada-align-modes, ada-adjust-case-buffer) | ||
| 6 | (ada-looking-at-semi-private, ada-get-body-name): | ||
| 7 | Fix typos in docstrings. | ||
| 8 | (ada-create-case-exception, ada-create-case-exception-substring): | ||
| 9 | Fix typos in error messages. | ||
| 10 | (ada-goto-matching-end, ada-narrow-to-defun): Doc fixes. | ||
| 11 | |||
| 12 | 2006-10-18 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 13 | |||
| 14 | * term/x-win.el (res-geometry): Don't set geometry from Xresources | ||
| 15 | to default-frame-alist if default-frame-alist already contains | ||
| 16 | width/height. | ||
| 17 | |||
| 18 | 2006-10-18 Richard Stallman <rms@gnu.org> | ||
| 19 | |||
| 20 | * emacs-lisp/pp.el (pp-eval-expression): Use `X' to read value. | ||
| 21 | Non-interactive arg is the value, not the expression. | ||
| 22 | |||
| 23 | * simple.el (read-expression-map): Just set it, no defvar. | ||
| 24 | |||
| 25 | * subr.el (insert-for-yank-1): If last inserted char has | ||
| 26 | properties, mark them as rear-nonsticky. | ||
| 27 | |||
| 28 | * recentf.el (recentf-mode): Doc fix. | ||
| 29 | |||
| 30 | * facemenu.el (facemenu-add-new-face): Defend against symbol | ||
| 31 | that isn't a face name. | ||
| 32 | |||
| 33 | * dired-aux.el (dired-do-copy): Doc fix. | ||
| 34 | |||
| 35 | 2006-10-18 Chong Yidong <cyd@stupidchicken.com> | ||
| 36 | |||
| 37 | * simple.el (line-move-1): Ignore fields when moving to the | ||
| 38 | beginning of line to avoid getting point stuck. | ||
| 39 | |||
| 40 | 2006-10-18 Martin Rudalics <rudalics@gmx.at> | ||
| 41 | |||
| 42 | * textmodes/flyspell.el (flyspell-word-search-backward): Set | ||
| 43 | inhibit-point-motion-hooks to avoid looping due to intangibile | ||
| 44 | text. | ||
| 45 | |||
| 46 | 2006-10-16 Richard Stallman <rms@gnu.org> | ||
| 47 | |||
| 48 | * help-fns.el (describe-function-1): Special case optimization | ||
| 49 | for self-insert-command. | ||
| 50 | |||
| 51 | 2006-10-16 Kim F. Storm <storm@cua.dk> | ||
| 52 | |||
| 53 | * ido.el (ido-reread-directory): Work in `dir' mode too. | ||
| 54 | |||
| 55 | 2006-10-15 Martin Rudalics <rudalics@gmx.at> | ||
| 56 | |||
| 57 | * textmodes/table.el: Require 'regexp-opt. | ||
| 58 | |||
| 59 | 2006-10-15 Lennart Borgman <lennart.borgman.073@student.lu.se> | ||
| 60 | |||
| 61 | * progmodes/flymake.el (flymake-get-project-include-dirs-imp): | ||
| 62 | Use shell-quote-argument. | ||
| 63 | |||
| 64 | * shell.el (explicit-bash-args): Likewise. | ||
| 65 | |||
| 66 | * progmodes/ada-xref.el (ada-find-in-src-path): Likewise. | ||
| 67 | Use grep -E rather than egrep. | ||
| 68 | |||
| 69 | 2006-10-15 Micha,Ak(Bl Cadilhac <michael.cadilhac@lrde.org> | ||
| 70 | |||
| 71 | * ido.el (ido-exhibit): Allow `-', `_', and trailing `$' in user id. | ||
| 72 | |||
| 73 | 2006-10-15 Kim F. Storm <storm@cua.dk> | ||
| 74 | |||
| 75 | * filesets.el (filesets-run-cmd--repl-fn): Use shell-quote-argument. | ||
| 76 | |||
| 77 | 2006-10-14 Lennart Borgman <lennart.borgman.073@student.lu.se> | ||
| 78 | |||
| 79 | * filesets.el (filesets-cmd-shell-command): Quote buffer-file-name | ||
| 80 | to protect whitespace and metacharacters from the shell. | ||
| 81 | |||
| 1 | 2006-10-13 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change) | 82 | 2006-10-13 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change) |
| 2 | 83 | ||
| 3 | * apropos.el (apropos-pattern-quoted): Fix a typo in a doc | 84 | * apropos.el (apropos-pattern-quoted): Fix a typo in a doc string. |
| 4 | string. | ||
| 5 | 85 | ||
| 6 | 2006-10-13 Eli Zaretskii <eliz@gnu.org> | 86 | 2006-10-13 Eli Zaretskii <eliz@gnu.org> |
| 7 | 87 | ||
| 8 | * subr.el (start-process-shell-command): Doc fix. | 88 | * subr.el (start-process-shell-command): Doc fix. |
| 9 | 89 | ||
| 90 | 2006-10-13 Andrea Russo <rastandy@salug.it> (tiny change) | ||
| 91 | |||
| 92 | * info-look.el <maxima-mode, inferior-maxima-mode>: Allow [0-9] in | ||
| 93 | the regexp for Maxima symbols. | ||
| 94 | |||
| 10 | 2006-10-13 Stefan Monnier <monnier@iro.umontreal.ca> | 95 | 2006-10-13 Stefan Monnier <monnier@iro.umontreal.ca> |
| 11 | 96 | ||
| 12 | * vc-hooks.el (vc-ignore-dir-regexp): Make it into a defcustom. | 97 | * vc-hooks.el (vc-ignore-dir-regexp): Make it into a defcustom. |
| @@ -19,8 +104,13 @@ | |||
| 19 | 104 | ||
| 20 | 2006-10-12 Carsten Dominik <dominik@science.uva.nl> | 105 | 2006-10-12 Carsten Dominik <dominik@science.uva.nl> |
| 21 | 106 | ||
| 22 | * textmodes/reftex-global.el (reftex-create-tags-file): Quote file | 107 | * textmodes/reftex-global.el (reftex-create-tags-file): |
| 23 | arguments. | 108 | Quote file arguments. |
| 109 | |||
| 110 | 2006-10-12 Richard Stallman <rms@gnu.org> | ||
| 111 | |||
| 112 | * files.el (file-name-history): Add defvar. | ||
| 113 | (save-some-buffers-action-alist): Improve description strings. | ||
| 24 | 114 | ||
| 25 | 2006-10-12 Andreas Schwab <schwab@suse.de> | 115 | 2006-10-12 Andreas Schwab <schwab@suse.de> |
| 26 | 116 | ||
| @@ -380,7 +470,7 @@ | |||
| 380 | was inverted; | 470 | was inverted; |
| 381 | Support `comment-column' = 0. | 471 | Support `comment-column' = 0. |
| 382 | 472 | ||
| 383 | 2006-10-11 Martin Rudalics <rudalics@gmx.at> | 473 | 2006-10-11 Martin Rudalics <rudalics@gmx.at> |
| 384 | 474 | ||
| 385 | * dnd.el (dnd-handle-one-url): Fix typo in doc-string. | 475 | * dnd.el (dnd-handle-one-url): Fix typo in doc-string. |
| 386 | * help-at-pt.el (scan-buf-move-to-region): Likewise. | 476 | * help-at-pt.el (scan-buf-move-to-region): Likewise. |
| @@ -424,8 +514,8 @@ | |||
| 424 | 514 | ||
| 425 | 2006-10-08 Nick Roberts <nickrob@snap.net.nz> | 515 | 2006-10-08 Nick Roberts <nickrob@snap.net.nz> |
| 426 | 516 | ||
| 427 | * progmodes/gdb-ui.el (gdb-speedbar-expand-node): Burp if | 517 | * progmodes/gdb-ui.el (gdb-speedbar-expand-node): |
| 428 | GUD buffer has been killed. | 518 | Burp if GUD buffer has been killed. |
| 429 | 519 | ||
| 430 | 2006-10-07 Stefan Monnier <monnier@iro.umontreal.ca> | 520 | 2006-10-07 Stefan Monnier <monnier@iro.umontreal.ca> |
| 431 | 521 | ||
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 6082fc180dc..769d98c9530 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -1560,7 +1560,10 @@ When operating on multiple or marked files, you specify a directory, | |||
| 1560 | and new copies of these files are made in that directory | 1560 | and new copies of these files are made in that directory |
| 1561 | with the same names that the files currently have. The default | 1561 | with the same names that the files currently have. The default |
| 1562 | suggested for the target directory depends on the value of | 1562 | suggested for the target directory depends on the value of |
| 1563 | `dired-dwim-target', which see." | 1563 | `dired-dwim-target', which see. |
| 1564 | |||
| 1565 | This command copies symbolic links by creating new ones, | ||
| 1566 | like `cp -d'." | ||
| 1564 | (interactive "P") | 1567 | (interactive "P") |
| 1565 | (let ((dired-recursive-copies dired-recursive-copies)) | 1568 | (let ((dired-recursive-copies dired-recursive-copies)) |
| 1566 | (dired-do-create-files 'copy (function dired-copy-file) | 1569 | (dired-do-create-files 'copy (function dired-copy-file) |
diff --git a/lisp/emacs-lisp/pp.el b/lisp/emacs-lisp/pp.el index f30b69ddac0..a9cb2abd741 100644 --- a/lisp/emacs-lisp/pp.el +++ b/lisp/emacs-lisp/pp.el | |||
| @@ -97,13 +97,16 @@ Output stream is STREAM, or value of `standard-output' (which see)." | |||
| 97 | (princ (pp-to-string object) (or stream standard-output))) | 97 | (princ (pp-to-string object) (or stream standard-output))) |
| 98 | 98 | ||
| 99 | ;;;###autoload | 99 | ;;;###autoload |
| 100 | (defun pp-eval-expression (expression) | 100 | (defun pp-eval-expression (expval) |
| 101 | "Evaluate EXPRESSION and pretty-print value into a new display buffer. | 101 | "Evaluate an expression, then pretty-print value EXPVAL into a new buffer. |
| 102 | If the pretty-printed value fits on one line, the message line is used | 102 | If pretty-printed EXPVAL fits on one line, display it in the echo |
| 103 | instead. The value is also consed onto the front of the list | 103 | area instead. Also add EXPVAL to the front of the list |
| 104 | in the variable `values'." | 104 | in the variable `values'. |
| 105 | (interactive "xPp-eval: ") | 105 | |
| 106 | (setq values (cons (eval expression) values)) | 106 | Non-interactively, the argument is the value, EXPVAL, not the expression |
| 107 | to evaluate." | ||
| 108 | (interactive "XPp-eval: ") | ||
| 109 | (setq values (cons expval values)) | ||
| 107 | (let* ((old-show-function temp-buffer-show-function) | 110 | (let* ((old-show-function temp-buffer-show-function) |
| 108 | ;; Use this function to display the buffer. | 111 | ;; Use this function to display the buffer. |
| 109 | ;; This function either decides not to display it at all | 112 | ;; This function either decides not to display it at all |
diff --git a/lisp/facemenu.el b/lisp/facemenu.el index eaaf4dacd72..13cf7fbd734 100644 --- a/lisp/facemenu.el +++ b/lisp/facemenu.el | |||
| @@ -690,6 +690,9 @@ This is called whenever you create a new face, and at other times." | |||
| 690 | (cond ((facemenu-iterate ; check if equivalent face is already in the menu | 690 | (cond ((facemenu-iterate ; check if equivalent face is already in the menu |
| 691 | (lambda (m) (and (listp m) | 691 | (lambda (m) (and (listp m) |
| 692 | (symbolp (car m)) | 692 | (symbolp (car m)) |
| 693 | ;; Avoid error in face-equal | ||
| 694 | ;; when a non-face is erroneously present. | ||
| 695 | (facep (car m)) | ||
| 693 | (face-equal (car m) symbol))) | 696 | (face-equal (car m) symbol))) |
| 694 | (cdr (symbol-function menu)))) | 697 | (cdr (symbol-function menu)))) |
| 695 | ;; Faces with a keyboard equivalent. These go at the front. | 698 | ;; Faces with a keyboard equivalent. These go at the front. |
diff --git a/lisp/filesets.el b/lisp/filesets.el index eb8cdb02617..355c39f8ed7 100644 --- a/lisp/filesets.el +++ b/lisp/filesets.el | |||
| @@ -1603,7 +1603,7 @@ Replace <file-name> or <<file-name>> with filename." | |||
| 1603 | ((equal arg "<file-name>") | 1603 | ((equal arg "<file-name>") |
| 1604 | (buffer-file-name)) | 1604 | (buffer-file-name)) |
| 1605 | ((equal arg "<<file-name>>") | 1605 | ((equal arg "<<file-name>>") |
| 1606 | (filesets-quote (buffer-file-name))) | 1606 | (shell-quote-argument (buffer-file-name))) |
| 1607 | (t | 1607 | (t |
| 1608 | arg)))) | 1608 | arg)))) |
| 1609 | 1609 | ||
| @@ -1701,7 +1701,7 @@ Replace <file-name> or <<file-name>> with filename." | |||
| 1701 | ok) | 1701 | ok) |
| 1702 | t))) | 1702 | t))) |
| 1703 | (when ok | 1703 | (when ok |
| 1704 | (let ((cmd (format txt (buffer-file-name)))) | 1704 | (let ((cmd (format txt (shell-quote-argument (buffer-file-name))))) |
| 1705 | (message "Filesets: %s" cmd) | 1705 | (message "Filesets: %s" cmd) |
| 1706 | (filesets-cmd-show-result cmd | 1706 | (filesets-cmd-show-result cmd |
| 1707 | (shell-command-to-string cmd)))))) | 1707 | (shell-command-to-string cmd)))))) |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 63e7f43424d..dba2c407b21 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,23 @@ | |||
| 1 | 2006-10-13 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> | ||
| 2 | |||
| 3 | * mm-uu.el (mm-uu-pgp-signed-extract-1): Use RFC 2440 definition of | ||
| 4 | "blank line" when searching for end of armor headers. | ||
| 5 | |||
| 6 | 2006-10-11 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 7 | |||
| 8 | * gmm-utils.el (gmm-write-region): Fix variable name. | ||
| 9 | |||
| 10 | 2006-10-10 Reiner Steib <Reiner.Steib@gmx.de> | ||
| 11 | |||
| 12 | * gmm-utils.el (gmm-write-region): New function based on compatibility | ||
| 13 | code from `mm-make-temp-file'. | ||
| 14 | |||
| 15 | * mm-util.el (mm-make-temp-file): Use `gmm-write-region'. | ||
| 16 | |||
| 17 | * nnmaildir.el (nnmaildir--update-nov) | ||
| 18 | (nnmaildir-request-replace-article, nnmaildir-request-accept-article): | ||
| 19 | Use `gmm-write-region'. | ||
| 20 | |||
| 1 | 2006-10-04 Reiner Steib <Reiner.Steib@gmx.de> | 21 | 2006-10-04 Reiner Steib <Reiner.Steib@gmx.de> |
| 2 | 22 | ||
| 3 | * gnus-sum.el (gnus-summary-make-menu-bar): Clarify | 23 | * gnus-sum.el (gnus-summary-make-menu-bar): Clarify |
diff --git a/lisp/gnus/gmm-utils.el b/lisp/gnus/gmm-utils.el index e773aa3bfac..59d02927008 100644 --- a/lisp/gnus/gmm-utils.el +++ b/lisp/gnus/gmm-utils.el | |||
| @@ -401,6 +401,21 @@ If mode is nil, use `major-mode' of the curent buffer." | |||
| 401 | (string-match "^\\(.+\\)-mode$" mode) | 401 | (string-match "^\\(.+\\)-mode$" mode) |
| 402 | (match-string 1 mode)))))) | 402 | (match-string 1 mode)))))) |
| 403 | 403 | ||
| 404 | (defun gmm-write-region (start end filename &optional append visit | ||
| 405 | lockname mustbenew) | ||
| 406 | "Compatibility function for `write-region'. | ||
| 407 | |||
| 408 | In XEmacs, the seventh argument of `write-region' specifies the | ||
| 409 | coding-system." | ||
| 410 | (if (and mustbenew | ||
| 411 | (or (featurep 'xemacs) | ||
| 412 | (= emacs-major-version 20))) | ||
| 413 | (if (file-exists-p filename) | ||
| 414 | (signal 'file-already-exists | ||
| 415 | (list "File exists" filename)) | ||
| 416 | (write-region start end filename append visit lockname)) | ||
| 417 | (write-region start end filename append visit lockname mustbenew))) | ||
| 418 | |||
| 404 | (provide 'gmm-utils) | 419 | (provide 'gmm-utils) |
| 405 | 420 | ||
| 406 | ;; arch-tag: e0b60920-2ce6-40c1-bfc0-cadbbe26b602 | 421 | ;; arch-tag: e0b60920-2ce6-40c1-bfc0-cadbbe26b602 |
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el index 1c9f9749f85..e75f2ef6d5f 100644 --- a/lisp/gnus/mm-util.el +++ b/lisp/gnus/mm-util.el | |||
| @@ -1126,17 +1126,11 @@ If SUFFIX is non-nil, add that at the end of the file name." | |||
| 1126 | (setq file (concat file suffix))) | 1126 | (setq file (concat file suffix))) |
| 1127 | (if dir-flag | 1127 | (if dir-flag |
| 1128 | (make-directory file) | 1128 | (make-directory file) |
| 1129 | (if (or (featurep 'xemacs) | 1129 | ;; NOTE: This is unsafe if Emacs 20 |
| 1130 | (= emacs-major-version 20)) | 1130 | ;; users and XEmacs users don't use |
| 1131 | ;; NOTE: This is unsafe if Emacs 20 | 1131 | ;; a secure temp directory. |
| 1132 | ;; users and XEmacs users don't use | 1132 | (gmm-write-region "" nil file nil 'silent |
| 1133 | ;; a secure temp directory. | 1133 | nil 'excl)) |
| 1134 | (if (file-exists-p file) | ||
| 1135 | (signal 'file-already-exists | ||
| 1136 | (list "File exists" file)) | ||
| 1137 | (write-region "" nil file nil 'silent)) | ||
| 1138 | (write-region "" nil file nil 'silent | ||
| 1139 | nil 'excl))) | ||
| 1140 | nil) | 1134 | nil) |
| 1141 | (file-already-exists t) | 1135 | (file-already-exists t) |
| 1142 | ;; The Emacs 20 and XEmacs versions of | 1136 | ;; The Emacs 20 and XEmacs versions of |
diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el index 9d9d87a3670..b1ed0b7af4e 100644 --- a/lisp/gnus/mm-uu.el +++ b/lisp/gnus/mm-uu.el | |||
| @@ -373,7 +373,7 @@ Return that buffer." | |||
| 373 | mm-security-handle 'gnus-details | 373 | mm-security-handle 'gnus-details |
| 374 | (format "Clear verification not supported by `%s'.\n" mml2015-use)))) | 374 | (format "Clear verification not supported by `%s'.\n" mml2015-use)))) |
| 375 | (goto-char (point-min)) | 375 | (goto-char (point-min)) |
| 376 | (if (search-forward "\n\n" nil t) | 376 | (if (re-search-forward "\n[\t ]*\n" nil t) |
| 377 | (delete-region (point-min) (point))) | 377 | (delete-region (point-min) (point))) |
| 378 | (if (re-search-forward mm-uu-pgp-beginning-signature nil t) | 378 | (if (re-search-forward mm-uu-pgp-beginning-signature nil t) |
| 379 | (delete-region (match-beginning 0) (point-max))) | 379 | (delete-region (match-beginning 0) (point-max))) |
diff --git a/lisp/gnus/nnmaildir.el b/lisp/gnus/nnmaildir.el index 6024b992061..589c4da8caf 100644 --- a/lisp/gnus/nnmaildir.el +++ b/lisp/gnus/nnmaildir.el | |||
| @@ -428,7 +428,8 @@ by nnmaildir-request-article.") | |||
| 428 | (prin1 (vector storage-version num msgid nov) (current-buffer)) | 428 | (prin1 (vector storage-version num msgid nov) (current-buffer)) |
| 429 | (setq file (concat novfile ":")) | 429 | (setq file (concat novfile ":")) |
| 430 | (nnmaildir--unlink file) | 430 | (nnmaildir--unlink file) |
| 431 | (write-region (point-min) (point-max) file nil 'no-message nil 'excl)) | 431 | (gmm-write-region (point-min) (point-max) file nil 'no-message nil |
| 432 | 'excl)) | ||
| 432 | (rename-file file novfile 'replace) | 433 | (rename-file file novfile 'replace) |
| 433 | (setf (nnmaildir--art-msgid article) msgid) | 434 | (setf (nnmaildir--art-msgid article) msgid) |
| 434 | nov))) | 435 | nov))) |
| @@ -1246,8 +1247,8 @@ by nnmaildir-request-article.") | |||
| 1246 | (throw 'return nil)) | 1247 | (throw 'return nil)) |
| 1247 | (save-excursion | 1248 | (save-excursion |
| 1248 | (set-buffer buffer) | 1249 | (set-buffer buffer) |
| 1249 | (write-region (point-min) (point-max) tmpfile nil 'no-message nil | 1250 | (gmm-write-region (point-min) (point-max) tmpfile nil 'no-message nil |
| 1250 | 'excl)) | 1251 | 'excl)) |
| 1251 | (unix-sync) ;; no fsync :( | 1252 | (unix-sync) ;; no fsync :( |
| 1252 | (rename-file tmpfile (concat (nnmaildir--cur dir) file suffix) 'replace) | 1253 | (rename-file tmpfile (concat (nnmaildir--cur dir) file suffix) 'replace) |
| 1253 | t))) | 1254 | t))) |
| @@ -1341,8 +1342,8 @@ by nnmaildir-request-article.") | |||
| 1341 | (condition-case nil | 1342 | (condition-case nil |
| 1342 | (add-name-to-file nnmaildir--file tmpfile) | 1343 | (add-name-to-file nnmaildir--file tmpfile) |
| 1343 | (error | 1344 | (error |
| 1344 | (write-region (point-min) (point-max) tmpfile nil 'no-message nil | 1345 | (gmm-write-region (point-min) (point-max) tmpfile nil 'no-message nil |
| 1345 | 'excl) | 1346 | 'excl) |
| 1346 | (unix-sync))) ;; no fsync :( | 1347 | (unix-sync))) ;; no fsync :( |
| 1347 | (nnheader-cancel-timer 24h) | 1348 | (nnheader-cancel-timer 24h) |
| 1348 | (condition-case err | 1349 | (condition-case err |
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index d4146b19d60..baffa004224 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el | |||
| @@ -383,35 +383,40 @@ face (according to `face-differs-from-default-p')." | |||
| 383 | (princ ".") | 383 | (princ ".") |
| 384 | (terpri) | 384 | (terpri) |
| 385 | (when (commandp function) | 385 | (when (commandp function) |
| 386 | (let* ((remapped (command-remapping function)) | 386 | (if (and (eq function 'self-insert-command) |
| 387 | (keys (where-is-internal | 387 | (eq (key-binding "a") 'self-insert-command) |
| 388 | (or remapped function) overriding-local-map nil nil)) | 388 | (eq (key-binding "b") 'self-insert-command) |
| 389 | non-modified-keys) | 389 | (eq (key-binding "c") 'self-insert-command)) |
| 390 | ;; Which non-control non-meta keys run this command? | 390 | (princ "It is bound to many ordinary text characters.\n") |
| 391 | (dolist (key keys) | 391 | (let* ((remapped (command-remapping function)) |
| 392 | (if (member (event-modifiers (aref key 0)) '(nil (shift))) | 392 | (keys (where-is-internal |
| 393 | (push key non-modified-keys))) | 393 | (or remapped function) overriding-local-map nil nil)) |
| 394 | (when remapped | 394 | non-modified-keys) |
| 395 | (princ "It is remapped to `") | 395 | ;; Which non-control non-meta keys run this command? |
| 396 | (princ (symbol-name remapped)) | 396 | (dolist (key keys) |
| 397 | (princ "'")) | 397 | (if (member (event-modifiers (aref key 0)) '(nil (shift))) |
| 398 | 398 | (push key non-modified-keys))) | |
| 399 | (when keys | 399 | (when remapped |
| 400 | (princ (if remapped " which is bound to " "It is bound to ")) | 400 | (princ "It is remapped to `") |
| 401 | ;; FIXME: This list can be very long (f.ex. for self-insert-command). | 401 | (princ (symbol-name remapped)) |
| 402 | ;; If there are many, remove them from KEYS. | 402 | (princ "'")) |
| 403 | (if (< (length non-modified-keys) 10) | 403 | |
| 404 | (princ (mapconcat 'key-description keys ", ")) | 404 | (when keys |
| 405 | (dolist (key non-modified-keys) | 405 | (princ (if remapped " which is bound to " "It is bound to ")) |
| 406 | (setq keys (delq key keys))) | 406 | ;; If lots of ordinary text characters run this command, |
| 407 | (if keys | 407 | ;; don't mention them one by one. |
| 408 | (progn | 408 | (if (< (length non-modified-keys) 10) |
| 409 | (princ (mapconcat 'key-description keys ", ")) | 409 | (princ (mapconcat 'key-description keys ", ")) |
| 410 | (princ ", and many ordinary text characters")) | 410 | (dolist (key non-modified-keys) |
| 411 | (princ "many ordinary text characters")))) | 411 | (setq keys (delq key keys))) |
| 412 | (when (or remapped keys non-modified-keys) | 412 | (if keys |
| 413 | (princ ".") | 413 | (progn |
| 414 | (terpri)))) | 414 | (princ (mapconcat 'key-description keys ", ")) |
| 415 | (princ ", and many ordinary text characters")) | ||
| 416 | (princ "many ordinary text characters")))) | ||
| 417 | (when (or remapped keys non-modified-keys) | ||
| 418 | (princ ".") | ||
| 419 | (terpri))))) | ||
| 415 | (let* ((arglist (help-function-arglist def)) | 420 | (let* ((arglist (help-function-arglist def)) |
| 416 | (doc (documentation function)) | 421 | (doc (documentation function)) |
| 417 | (usage (help-split-fundoc doc function))) | 422 | (usage (help-split-fundoc doc function))) |
diff --git a/lisp/ido.el b/lisp/ido.el index ff222b2958c..480b76cd68c 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -2611,7 +2611,7 @@ C-x C-f ... C-d enter dired on current directory." | |||
| 2611 | May be useful if cached version is no longer valid, but directory | 2611 | May be useful if cached version is no longer valid, but directory |
| 2612 | timestamp has not changed (e.g. with ftp or on Windows)." | 2612 | timestamp has not changed (e.g. with ftp or on Windows)." |
| 2613 | (interactive) | 2613 | (interactive) |
| 2614 | (if (and ido-mode (eq ido-cur-item 'file)) | 2614 | (if (and ido-mode (memq ido-cur-item '(file dir))) |
| 2615 | (progn | 2615 | (progn |
| 2616 | (if (ido-is-unc-root) | 2616 | (if (ido-is-unc-root) |
| 2617 | (setq ido-unc-hosts-cache t) | 2617 | (setq ido-unc-hosts-cache t) |
| @@ -4168,7 +4168,7 @@ For details of keybindings, do `\\[describe-function] ido-find-file'." | |||
| 4168 | (setq refresh t)) | 4168 | (setq refresh t)) |
| 4169 | ((string-equal contents "./") | 4169 | ((string-equal contents "./") |
| 4170 | (setq refresh t)) | 4170 | (setq refresh t)) |
| 4171 | ((string-match "\\`~[a-zA-Z0-9]+/\\'" contents) | 4171 | ((string-match "\\`~[-_a-zA-Z0-9]+[$]?/\\'" contents) |
| 4172 | (ido-trace "new home" contents) | 4172 | (ido-trace "new home" contents) |
| 4173 | (ido-set-current-home contents) | 4173 | (ido-set-current-home contents) |
| 4174 | (setq refresh t)) | 4174 | (setq refresh t)) |
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index 9557844a32a..ac87a93b7a1 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -541,6 +541,17 @@ This is relative to `smtpmail-queue-dir'.") | |||
| 541 | (decoded (base64-decode-string challenge)) | 541 | (decoded (base64-decode-string challenge)) |
| 542 | (hash (rfc2104-hash 'md5 64 16 passwd decoded)) | 542 | (hash (rfc2104-hash 'md5 64 16 passwd decoded)) |
| 543 | (response (concat (smtpmail-cred-user cred) " " hash)) | 543 | (response (concat (smtpmail-cred-user cred) " " hash)) |
| 544 | ;; Osamu Yamane <yamane@green.ocn.ne.jp>: | ||
| 545 | ;; SMTP auth fails because the SMTP server identifies | ||
| 546 | ;; only the first part of the string (delimited by | ||
| 547 | ;; new line characters) as a response from the | ||
| 548 | ;; client, and the rest as distinct commands. | ||
| 549 | |||
| 550 | ;; In my case, the response string is 80 characters | ||
| 551 | ;; long. Without the no-line-break option for | ||
| 552 | ;; base64-encode-sting, only the first 76 characters | ||
| 553 | ;; are taken as a response to the server, and the | ||
| 554 | ;; authentication fails. | ||
| 544 | (encoded (base64-encode-string response t))) | 555 | (encoded (base64-encode-string response t))) |
| 545 | (smtpmail-send-command process (format "%s" encoded)) | 556 | (smtpmail-send-command process (format "%s" encoded)) |
| 546 | (if (or (null (car (setq ret (smtpmail-read-response process)))) | 557 | (if (or (null (car (setq ret (smtpmail-read-response process)))) |
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el index bc00d859c2d..b1ca93e2f32 100644 --- a/lisp/progmodes/ada-mode.el +++ b/lisp/progmodes/ada-mode.el | |||
| @@ -218,8 +218,8 @@ These files should contain one word per line, that gives the casing | |||
| 218 | to be used for that word in Ada files. If the line starts with the | 218 | to be used for that word in Ada files. If the line starts with the |
| 219 | character *, then the exception will be used for substrings that either | 219 | character *, then the exception will be used for substrings that either |
| 220 | start at the beginning of a word or after a _ character, and end either | 220 | start at the beginning of a word or after a _ character, and end either |
| 221 | at the end of the word or at a _ character. Each line can be terminated by | 221 | at the end of the word or at a _ character. Each line can be terminated |
| 222 | a comment." | 222 | by a comment." |
| 223 | :type '(repeat (file)) | 223 | :type '(repeat (file)) |
| 224 | :group 'ada) | 224 | :group 'ada) |
| 225 | 225 | ||
| @@ -439,10 +439,10 @@ An example is: | |||
| 439 | (defcustom ada-which-compiler 'gnat | 439 | (defcustom ada-which-compiler 'gnat |
| 440 | "*Name of the compiler to use. | 440 | "*Name of the compiler to use. |
| 441 | This will determine what features are made available through the Ada mode. | 441 | This will determine what features are made available through the Ada mode. |
| 442 | The possible choices are : | 442 | The possible choices are: |
| 443 | `gnat': Use Ada Core Technologies' Gnat compiler. Add some cross-referencing | 443 | `gnat': Use Ada Core Technologies' Gnat compiler. Add some cross-referencing |
| 444 | features | 444 | features. |
| 445 | `generic': Use a generic compiler" | 445 | `generic': Use a generic compiler." |
| 446 | :type '(choice (const gnat) | 446 | :type '(choice (const gnat) |
| 447 | (const generic)) | 447 | (const generic)) |
| 448 | :group 'ada) | 448 | :group 'ada) |
| @@ -485,7 +485,7 @@ The extensions should include a `.' if needed.") | |||
| 485 | "reverse" "select" "separate" "subtype" "task" "terminate" "then" | 485 | "reverse" "select" "separate" "subtype" "task" "terminate" "then" |
| 486 | "type" "use" "when" "while" "with" "xor") | 486 | "type" "use" "when" "while" "with" "xor") |
| 487 | "List of Ada keywords. | 487 | "List of Ada keywords. |
| 488 | This variable is used to define `ada-83-keywords' and `ada-95-keywords'")) | 488 | This variable is used to define `ada-83-keywords' and `ada-95-keywords'.")) |
| 489 | 489 | ||
| 490 | (defvar ada-ret-binding nil | 490 | (defvar ada-ret-binding nil |
| 491 | "Variable to save key binding of RET when casing is activated.") | 491 | "Variable to save key binding of RET when casing is activated.") |
| @@ -532,7 +532,7 @@ See `align-mode-alist' for more information.") | |||
| 532 | (valid . (lambda() (not (ada-in-comment-p)))) | 532 | (valid . (lambda() (not (ada-in-comment-p)))) |
| 533 | (modes . '(ada-mode))) | 533 | (modes . '(ada-mode))) |
| 534 | ) | 534 | ) |
| 535 | "Ada support for align.el >= 2.8 | 535 | "Ada support for align.el >= 2.8. |
| 536 | This variable defines several rules to use to align different lines.") | 536 | This variable defines several rules to use to align different lines.") |
| 537 | 537 | ||
| 538 | (defconst ada-align-region-separate | 538 | (defconst ada-align-region-separate |
| @@ -1439,7 +1439,7 @@ The standard casing rules will no longer apply to this word." | |||
| 1439 | ((listp ada-case-exception-file) | 1439 | ((listp ada-case-exception-file) |
| 1440 | (setq file-name (car ada-case-exception-file))) | 1440 | (setq file-name (car ada-case-exception-file))) |
| 1441 | (t | 1441 | (t |
| 1442 | (error (concat "No exception file specified. " | 1442 | (error (concat "No exception file specified. " |
| 1443 | "See variable ada-case-exception-file")))) | 1443 | "See variable ada-case-exception-file")))) |
| 1444 | 1444 | ||
| 1445 | (set-syntax-table ada-mode-symbol-syntax-table) | 1445 | (set-syntax-table ada-mode-symbol-syntax-table) |
| @@ -1478,7 +1478,7 @@ word itself has a special casing." | |||
| 1478 | ((listp ada-case-exception-file) | 1478 | ((listp ada-case-exception-file) |
| 1479 | (car ada-case-exception-file)) | 1479 | (car ada-case-exception-file)) |
| 1480 | (t | 1480 | (t |
| 1481 | (error (concat "No exception file specified. " | 1481 | (error (concat "No exception file specified. " |
| 1482 | "See variable ada-case-exception-file")))))) | 1482 | "See variable ada-case-exception-file")))))) |
| 1483 | 1483 | ||
| 1484 | ;; Find the substring to define as an exception. Order is: the parameter, | 1484 | ;; Find the substring to define as an exception. Order is: the parameter, |
| @@ -1593,8 +1593,8 @@ word itself has a special casing." | |||
| 1593 | 1593 | ||
| 1594 | (defun ada-adjust-case-identifier () | 1594 | (defun ada-adjust-case-identifier () |
| 1595 | "Adjust case of the previous identifier. | 1595 | "Adjust case of the previous identifier. |
| 1596 | The auto-casing is done according to the value of `ada-case-identifier' and | 1596 | The auto-casing is done according to the value of `ada-case-identifier' |
| 1597 | the exceptions defined in `ada-case-exception-file'." | 1597 | and the exceptions defined in `ada-case-exception-file'." |
| 1598 | (interactive) | 1598 | (interactive) |
| 1599 | (if (or (equal ada-case-exception '()) | 1599 | (if (or (equal ada-case-exception '()) |
| 1600 | (equal (char-after) ?_)) | 1600 | (equal (char-after) ?_)) |
| @@ -1743,7 +1743,7 @@ ARG is ignored, and is there for compatibility with `capitalize-word' only." | |||
| 1743 | (defun ada-no-auto-case (&optional arg) | 1743 | (defun ada-no-auto-case (&optional arg) |
| 1744 | "Do nothing. | 1744 | "Do nothing. |
| 1745 | This function can be used for the auto-casing variables in the Ada mode, to | 1745 | This function can be used for the auto-casing variables in the Ada mode, to |
| 1746 | adapt to unusal auto-casing schemes. Since it does nothing, you can for | 1746 | adapt to unusal auto-casing schemes. Since it does nothing, you can for |
| 1747 | instance use it for `ada-case-identifier' if you don't want any special | 1747 | instance use it for `ada-case-identifier' if you don't want any special |
| 1748 | auto-casing for identifiers, whereas keywords have to be lower-cased. | 1748 | auto-casing for identifiers, whereas keywords have to be lower-cased. |
| 1749 | See also `ada-auto-case' to disable auto casing altogether." | 1749 | See also `ada-auto-case' to disable auto casing altogether." |
| @@ -1806,7 +1806,7 @@ Attention: This function might take very long for big regions!" | |||
| 1806 | (set-syntax-table previous-syntax-table)))) | 1806 | (set-syntax-table previous-syntax-table)))) |
| 1807 | 1807 | ||
| 1808 | (defun ada-adjust-case-buffer () | 1808 | (defun ada-adjust-case-buffer () |
| 1809 | "Adjusts the case of all words in the whole buffer. | 1809 | "Adjust the case of all words in the whole buffer. |
| 1810 | ATTENTION: This function might take very long for big buffers!" | 1810 | ATTENTION: This function might take very long for big buffers!" |
| 1811 | (interactive "*") | 1811 | (interactive "*") |
| 1812 | (ada-adjust-case-region (point-min) (point-max))) | 1812 | (ada-adjust-case-region (point-min) (point-max))) |
| @@ -2138,7 +2138,7 @@ Return the equivalent internal parameter list." | |||
| 2138 | (ada-indent-current)) | 2138 | (ada-indent-current)) |
| 2139 | (forward-line 1) | 2139 | (forward-line 1) |
| 2140 | (setq block-done (1+ block-done))) | 2140 | (setq block-done (1+ block-done))) |
| 2141 | (message "indenting ... done"))) | 2141 | (message "Indenting ... done"))) |
| 2142 | 2142 | ||
| 2143 | (defun ada-indent-newline-indent () | 2143 | (defun ada-indent-newline-indent () |
| 2144 | "Indent the current line, insert a newline and then indent the new line." | 2144 | "Indent the current line, insert a newline and then indent the new line." |
| @@ -3841,7 +3841,7 @@ If GOTOTHEN is non-nil, point moves to the 'then' following 'if'." | |||
| 3841 | (defun ada-goto-matching-end (&optional nest-level noerror) | 3841 | (defun ada-goto-matching-end (&optional nest-level noerror) |
| 3842 | "Move point to the end of a block. | 3842 | "Move point to the end of a block. |
| 3843 | Which block depends on the value of NEST-LEVEL, which defaults to zero. | 3843 | Which block depends on the value of NEST-LEVEL, which defaults to zero. |
| 3844 | If NOERROR is non-nil, it only returns nil if found no matching start." | 3844 | If NOERROR is non-nil, it only returns nil if no matching start found." |
| 3845 | (let ((nest-count (or nest-level 0)) | 3845 | (let ((nest-count (or nest-level 0)) |
| 3846 | (regex (eval-when-compile | 3846 | (regex (eval-when-compile |
| 3847 | (concat "\\<" | 3847 | (concat "\\<" |
| @@ -4058,7 +4058,7 @@ Assumes point to be at the end of a statement." | |||
| 4058 | 4058 | ||
| 4059 | (defun ada-looking-at-semi-private () | 4059 | (defun ada-looking-at-semi-private () |
| 4060 | "Return t if looking at the start of a private section in a package. | 4060 | "Return t if looking at the start of a private section in a package. |
| 4061 | Returns nil if the private is part of the package name, as in | 4061 | Return nil if the private is part of the package name, as in |
| 4062 | 'private package A is...' (this can only happen at top level)." | 4062 | 'private package A is...' (this can only happen at top level)." |
| 4063 | (save-excursion | 4063 | (save-excursion |
| 4064 | (and (looking-at "\\<private\\>") | 4064 | (and (looking-at "\\<private\\>") |
| @@ -4968,7 +4968,7 @@ Redefines the function `ff-which-function-are-we-in'." | |||
| 4968 | 4968 | ||
| 4969 | 4969 | ||
| 4970 | (defvar ada-last-which-function-line -1 | 4970 | (defvar ada-last-which-function-line -1 |
| 4971 | "Last on which `ada-which-function' was called.") | 4971 | "Last line on which `ada-which-function' was called.") |
| 4972 | (defvar ada-last-which-function-subprog 0 | 4972 | (defvar ada-last-which-function-subprog 0 |
| 4973 | "Last subprogram name returned by `ada-which-function'.") | 4973 | "Last subprogram name returned by `ada-which-function'.") |
| 4974 | (make-variable-buffer-local 'ada-last-which-function-subprog) | 4974 | (make-variable-buffer-local 'ada-last-which-function-subprog) |
| @@ -5062,7 +5062,7 @@ Since the search can be long, the results are cached." | |||
| 5062 | (defun ada-get-body-name (&optional spec-name) | 5062 | (defun ada-get-body-name (&optional spec-name) |
| 5063 | "Return the file name for the body of SPEC-NAME. | 5063 | "Return the file name for the body of SPEC-NAME. |
| 5064 | If SPEC-NAME is nil, return the body for the current package. | 5064 | If SPEC-NAME is nil, return the body for the current package. |
| 5065 | Returns nil if no body was found." | 5065 | Return nil if no body was found." |
| 5066 | (interactive) | 5066 | (interactive) |
| 5067 | 5067 | ||
| 5068 | (unless spec-name (setq spec-name (buffer-file-name))) | 5068 | (unless spec-name (setq spec-name (buffer-file-name))) |
| @@ -5223,7 +5223,7 @@ Returns nil if no body was found." | |||
| 5223 | "Make text outside current subprogram invisible. | 5223 | "Make text outside current subprogram invisible. |
| 5224 | The subprogram visible is the one that contains or follow point. | 5224 | The subprogram visible is the one that contains or follow point. |
| 5225 | Optional ARG is ignored. | 5225 | Optional ARG is ignored. |
| 5226 | Use `M-x widen' to go back to the full visibility for the buffer." | 5226 | Use \\[widen] to go back to the full visibility for the buffer." |
| 5227 | 5227 | ||
| 5228 | (interactive) | 5228 | (interactive) |
| 5229 | (save-excursion | 5229 | (save-excursion |
diff --git a/lisp/progmodes/ada-xref.el b/lisp/progmodes/ada-xref.el index 9e3f8e14332..05d2a8bf65b 100644 --- a/lisp/progmodes/ada-xref.el +++ b/lisp/progmodes/ada-xref.el | |||
| @@ -1916,8 +1916,12 @@ is using." | |||
| 1916 | (set-buffer (get-buffer-create "*grep*")) | 1916 | (set-buffer (get-buffer-create "*grep*")) |
| 1917 | (while dirs | 1917 | (while dirs |
| 1918 | (insert (shell-command-to-string | 1918 | (insert (shell-command-to-string |
| 1919 | (concat "egrep -i -h '^X|" regexp "( |$)' " | 1919 | (concat |
| 1920 | (file-name-as-directory (car dirs)) "*.ali"))) | 1920 | "grep -E -i -h " |
| 1921 | (shell-quote-argument (concat "^X|" regexp "( |$)")) | ||
| 1922 | " " | ||
| 1923 | (shell-quote-argument (file-name-as-directory (car dirs))) | ||
| 1924 | "*.ali"))) | ||
| 1921 | (set 'dirs (cdr dirs))) | 1925 | (set 'dirs (cdr dirs))) |
| 1922 | 1926 | ||
| 1923 | ;; Now parse the output | 1927 | ;; Now parse the output |
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 4f197e34bfe..b37be18188c 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el | |||
| @@ -1021,7 +1021,9 @@ For the format of LINE-ERR-INFO, see `flymake-ler-make-ler'." | |||
| 1021 | (progn | 1021 | (progn |
| 1022 | (flymake-get-project-include-dirs-from-cache basedir)) | 1022 | (flymake-get-project-include-dirs-from-cache basedir)) |
| 1023 | ;;else | 1023 | ;;else |
| 1024 | (let* ((command-line (concat "make -C\"" basedir "\" DUMPVARS=INCLUDE_DIRS dumpvars")) | 1024 | (let* ((command-line (concat "make -C " |
| 1025 | (shell-quote-argument basedir) | ||
| 1026 | " DUMPVARS=INCLUDE_DIRS dumpvars")) | ||
| 1025 | (output (shell-command-to-string command-line)) | 1027 | (output (shell-command-to-string command-line)) |
| 1026 | (lines (flymake-split-string output "\n")) | 1028 | (lines (flymake-split-string output "\n")) |
| 1027 | (count (length lines)) | 1029 | (count (length lines)) |
diff --git a/lisp/recentf.el b/lisp/recentf.el index 02e7e712399..ca288100b98 100644 --- a/lisp/recentf.el +++ b/lisp/recentf.el | |||
| @@ -1318,9 +1318,7 @@ With prefix argument ARG, turn on if positive, otherwise off. | |||
| 1318 | Returns non-nil if the new state is enabled. | 1318 | Returns non-nil if the new state is enabled. |
| 1319 | 1319 | ||
| 1320 | When recentf mode is enabled, it maintains a menu for visiting files | 1320 | When recentf mode is enabled, it maintains a menu for visiting files |
| 1321 | that were operated on recently. | 1321 | that were operated on recently." |
| 1322 | |||
| 1323 | \\{recentf-mode-map}" | ||
| 1324 | :global t | 1322 | :global t |
| 1325 | :group 'recentf | 1323 | :group 'recentf |
| 1326 | :keymap recentf-mode-map | 1324 | :keymap recentf-mode-map |
diff --git a/lisp/shell.el b/lisp/shell.el index 2adfc79618a..d3e23251a1f 100644 --- a/lisp/shell.el +++ b/lisp/shell.el | |||
| @@ -298,7 +298,9 @@ Value is a list of strings, which may be nil." | |||
| 298 | (equal name "bash") | 298 | (equal name "bash") |
| 299 | (file-executable-p prog) | 299 | (file-executable-p prog) |
| 300 | (string-match "bad option" | 300 | (string-match "bad option" |
| 301 | (shell-command-to-string (concat prog " --noediting")))) | 301 | (shell-command-to-string |
| 302 | (concat (shell-quote-argument prog) | ||
| 303 | " --noediting")))) | ||
| 302 | '("-i") | 304 | '("-i") |
| 303 | '("--noediting" "-i"))) | 305 | '("--noediting" "-i"))) |
| 304 | "Args passed to inferior shell by \\[shell], if the shell is bash. | 306 | "Args passed to inferior shell by \\[shell], if the shell is bash. |
diff --git a/lisp/simple.el b/lisp/simple.el index 0dff1c73795..8fc0fdf6b48 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -985,12 +985,11 @@ in *Help* buffer. See also the command `describe-char'." | |||
| 985 | (single-key-description char)) | 985 | (single-key-description char)) |
| 986 | encoding-msg pos total percent col hscroll)))))) | 986 | encoding-msg pos total percent col hscroll)))))) |
| 987 | 987 | ||
| 988 | (defvar read-expression-map | 988 | ;; Initialize read-expression-map. It is defined at C level. |
| 989 | (let ((m (make-sparse-keymap))) | 989 | (let ((m (make-sparse-keymap))) |
| 990 | (define-key m "\M-\t" 'lisp-complete-symbol) | 990 | (define-key m "\M-\t" 'lisp-complete-symbol) |
| 991 | (set-keymap-parent m minibuffer-local-map) | 991 | (set-keymap-parent m minibuffer-local-map) |
| 992 | m) | 992 | (setq read-expression-map m)) |
| 993 | "Minibuffer keymap used for reading Lisp expressions.") | ||
| 994 | 993 | ||
| 995 | (defvar read-expression-history nil) | 994 | (defvar read-expression-history nil) |
| 996 | 995 | ||
| @@ -3617,7 +3616,14 @@ Outline mode sets this." | |||
| 3617 | ;; The logic of this is the same as the loop above, | 3616 | ;; The logic of this is the same as the loop above, |
| 3618 | ;; it just goes in the other direction. | 3617 | ;; it just goes in the other direction. |
| 3619 | (while (and (< arg 0) (not done)) | 3618 | (while (and (< arg 0) (not done)) |
| 3620 | (beginning-of-line) | 3619 | ;; For completely consistency with the forward-motion |
| 3620 | ;; case, we should call beginning-of-line here. | ||
| 3621 | ;; However, if point is inside a field and on a | ||
| 3622 | ;; continued line, the call to (vertical-motion -1) | ||
| 3623 | ;; below won't move us back far enough; then we return | ||
| 3624 | ;; to the same column in line-move-finish, and point | ||
| 3625 | ;; gets stuck -- cyd | ||
| 3626 | (forward-line 0) | ||
| 3621 | (cond | 3627 | (cond |
| 3622 | ((bobp) | 3628 | ((bobp) |
| 3623 | (if (not noerror) | 3629 | (if (not noerror) |
diff --git a/lisp/subr.el b/lisp/subr.el index ad3e732c6c6..1f947a795f9 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2195,6 +2195,12 @@ If UNDO is present and non-nil, it is a function that will be called | |||
| 2195 | 2195 | ||
| 2196 | (unless (nth 2 handler) ;; NOEXCLUDE | 2196 | (unless (nth 2 handler) ;; NOEXCLUDE |
| 2197 | (remove-yank-excluded-properties opoint (point))) | 2197 | (remove-yank-excluded-properties opoint (point))) |
| 2198 | |||
| 2199 | ;; If last inserted char has properties, mark them as rear-nonsticky. | ||
| 2200 | (if (and (> end opoint) | ||
| 2201 | (text-properties-at (1- end))) | ||
| 2202 | (put-text-property (1- end) end 'rear-nonsticky t)) | ||
| 2203 | |||
| 2198 | (if (eq yank-undo-function t) ;; not set by FUNCTION | 2204 | (if (eq yank-undo-function t) ;; not set by FUNCTION |
| 2199 | (setq yank-undo-function (nth 3 handler))) ;; UNDO | 2205 | (setq yank-undo-function (nth 3 handler))) ;; UNDO |
| 2200 | (if (nth 4 handler) ;; COMMAND | 2206 | (if (nth 4 handler) ;; COMMAND |
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index aba5c6d1e4c..ec058e97c1e 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -2477,12 +2477,15 @@ order until succeed.") | |||
| 2477 | (cons '(user-size . t) parsed)))) | 2477 | (cons '(user-size . t) parsed)))) |
| 2478 | ;; All geometry parms apply to the initial frame. | 2478 | ;; All geometry parms apply to the initial frame. |
| 2479 | (setq initial-frame-alist (append initial-frame-alist parsed)) | 2479 | (setq initial-frame-alist (append initial-frame-alist parsed)) |
| 2480 | ;; The size parms apply to all frames. | 2480 | ;; The size parms apply to all frames. Don't set it if there are |
| 2481 | (if (assq 'height parsed) | 2481 | ;; sizes there already (from command line). |
| 2482 | (if (and (assq 'height parsed) | ||
| 2483 | (not (assq 'height default-frame-alist))) | ||
| 2482 | (setq default-frame-alist | 2484 | (setq default-frame-alist |
| 2483 | (cons (cons 'height (cdr (assq 'height parsed))) | 2485 | (cons (cons 'height (cdr (assq 'height parsed))) |
| 2484 | default-frame-alist))) | 2486 | default-frame-alist))) |
| 2485 | (if (assq 'width parsed) | 2487 | (if (and (assq 'width parsed) |
| 2488 | (not (assq 'width default-frame-alist))) | ||
| 2486 | (setq default-frame-alist | 2489 | (setq default-frame-alist |
| 2487 | (cons (cons 'width (cdr (assq 'width parsed))) | 2490 | (cons (cons 'width (cdr (assq 'width parsed))) |
| 2488 | default-frame-alist)))))) | 2491 | default-frame-alist)))))) |
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index ebee4691e8c..e7b95c9619d 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el | |||
| @@ -959,6 +959,7 @@ Mostly we check word delimiters." | |||
| 959 | (defun flyspell-word-search-backward (word bound) | 959 | (defun flyspell-word-search-backward (word bound) |
| 960 | (save-excursion | 960 | (save-excursion |
| 961 | (let ((r '()) | 961 | (let ((r '()) |
| 962 | (inhibit-point-motion-hooks t) | ||
| 962 | p) | 963 | p) |
| 963 | (while (and (not r) (setq p (search-backward word bound t))) | 964 | (while (and (not r) (setq p (search-backward word bound t))) |
| 964 | (let ((lw (flyspell-get-word '()))) | 965 | (let ((lw (flyspell-get-word '()))) |
| @@ -973,6 +974,7 @@ Mostly we check word delimiters." | |||
| 973 | (defun flyspell-word-search-forward (word bound) | 974 | (defun flyspell-word-search-forward (word bound) |
| 974 | (save-excursion | 975 | (save-excursion |
| 975 | (let ((r '()) | 976 | (let ((r '()) |
| 977 | (inhibit-point-motion-hooks t) | ||
| 976 | p) | 978 | p) |
| 977 | (while (and (not r) (setq p (search-forward word bound t))) | 979 | (while (and (not r) (setq p (search-forward word bound t))) |
| 978 | (let ((lw (flyspell-get-word '()))) | 980 | (let ((lw (flyspell-get-word '()))) |
diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el index 002ab9dac11..169eeb249f2 100644 --- a/lisp/textmodes/table.el +++ b/lisp/textmodes/table.el | |||
| @@ -614,6 +614,7 @@ | |||
| 614 | ;;; Code: | 614 | ;;; Code: |
| 615 | 615 | ||
| 616 | 616 | ||
| 617 | (require 'regexp-opt) | ||
| 617 | 618 | ||
| 618 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 619 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 619 | ;;; | 620 | ;;; |
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 2aa14af8983..2d26bc805a7 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-10-16 Magnus Henoch <mange@freemail.hu> | ||
| 2 | |||
| 3 | * url-http.el (url-https-create-secure-wrapper): Always use tls | ||
| 4 | gateway method. | ||
| 5 | |||
| 1 | 2006-10-12 Magnus Henoch <mange@freemail.hu> | 6 | 2006-10-12 Magnus Henoch <mange@freemail.hu> |
| 2 | 7 | ||
| 3 | * url-http.el (url-http-find-free-connection): Handle | 8 | * url-http.el (url-http-find-free-connection): Handle |
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index bf8069ded7e..958d90683e4 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el | |||
| @@ -1261,9 +1261,7 @@ p3p | |||
| 1261 | (defmacro url-https-create-secure-wrapper (method args) | 1261 | (defmacro url-https-create-secure-wrapper (method args) |
| 1262 | `(defun ,(intern (format (if method "url-https-%s" "url-https") method)) ,args | 1262 | `(defun ,(intern (format (if method "url-https-%s" "url-https") method)) ,args |
| 1263 | ,(format "HTTPS wrapper around `%s' call." (or method "url-http")) | 1263 | ,(format "HTTPS wrapper around `%s' call." (or method "url-http")) |
| 1264 | (let ((url-gateway-method (condition-case () | 1264 | (let ((url-gateway-method 'tls)) |
| 1265 | (require 'ssl) | ||
| 1266 | (error 'tls)))) | ||
| 1267 | (,(intern (format (if method "url-http-%s" "url-http") method)) | 1265 | (,(intern (format (if method "url-http-%s" "url-http") method)) |
| 1268 | ,@(remove '&rest (remove '&optional args)))))) | 1266 | ,@(remove '&rest (remove '&optional args)))))) |
| 1269 | 1267 | ||
diff --git a/lisp/woman.el b/lisp/woman.el index 13fa3147487..b25a93d86a8 100644 --- a/lisp/woman.el +++ b/lisp/woman.el | |||
| @@ -4121,7 +4121,11 @@ If `woman-nofill' is non-nil then indent without filling or adjusting." | |||
| 4121 | (eolp) | 4121 | (eolp) |
| 4122 | (skip-syntax-forward " ") | 4122 | (skip-syntax-forward " ") |
| 4123 | (setq woman-leave-blank-lines 1)) | 4123 | (setq woman-leave-blank-lines 1)) |
| 4124 | (beginning-of-line) | 4124 | ;; This shouldn't happen, but in case it does (e.g. for |
| 4125 | ;; badly-formatted manfiles with no terminating newline), | ||
| 4126 | ;; avoid an infinite loop. | ||
| 4127 | (unless (and (eolp) (eobp)) | ||
| 4128 | (beginning-of-line)) | ||
| 4125 | ;; If a single short line then just leave it. | 4129 | ;; If a single short line then just leave it. |
| 4126 | ;; This is necessary to preserve some table layouts. | 4130 | ;; This is necessary to preserve some table layouts. |
| 4127 | ;; PROBABLY NOT NECESSARY WITH SQUEEZE MODIFICATION !!!!! | 4131 | ;; PROBABLY NOT NECESSARY WITH SQUEEZE MODIFICATION !!!!! |