diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 55 | ||||
| -rw-r--r-- | lisp/comint.el | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/easy-mmode.el | 5 | ||||
| -rw-r--r-- | lisp/facemenu.el | 2 | ||||
| -rw-r--r-- | lisp/info.el | 2 | ||||
| -rw-r--r-- | lisp/isearch.el | 2 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 17 | ||||
| -rw-r--r-- | lisp/notifications.el | 3 | ||||
| -rw-r--r-- | lisp/progmodes/octave-inf.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/octave-mod.el | 8 | ||||
| -rw-r--r-- | lisp/subr.el | 2 |
11 files changed, 67 insertions, 37 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8ceb3617176..95113007f27 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,38 @@ | |||
| 1 | 2011-10-25 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp-sh.el (tramp-sh-handle-file-directory-p): Return t for | ||
| 4 | filenames "/method:foo:". | ||
| 5 | |||
| 6 | 2011-10-25 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 7 | |||
| 8 | * comint.el (comint-get-old-input-default): Fix use-prompt-regexp case | ||
| 9 | (bug#9865). | ||
| 10 | |||
| 11 | 2011-10-24 Glenn Morris <rgm@gnu.org> | ||
| 12 | |||
| 13 | * emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix. (Bug#9819) | ||
| 14 | |||
| 15 | 2011-10-24 Michael Albinus <michael.albinus@gmx.de> | ||
| 16 | |||
| 17 | * notifications.el: Add the requirement of a running D-Bus session | ||
| 18 | bus to the Commentary. | ||
| 19 | |||
| 20 | 2011-10-24 Juri Linkov <juri@jurta.org> | ||
| 21 | |||
| 22 | * isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to | ||
| 23 | `search-whitespace-regexp' only when `isearch-regexp' is non-nil. | ||
| 24 | (Bug#9364) | ||
| 25 | |||
| 26 | 2011-10-24 Juri Linkov <juri@jurta.org> | ||
| 27 | |||
| 28 | * info.el (Info-following-node-name-re): Add newline to the list | ||
| 29 | of allowed characters for leading space. (Bug#9824) | ||
| 30 | |||
| 31 | 2011-10-24 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 32 | |||
| 33 | * progmodes/octave-inf.el (inferior-octave-mode-map): Fix C-c C-h binding. | ||
| 34 | * progmodes/octave-mod.el (octave-help): Remove. | ||
| 35 | |||
| 1 | 2011-10-23 Michael Albinus <michael.albinus@gmx.de> | 36 | 2011-10-23 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 37 | ||
| 3 | Sync with Tramp 2.2.3. | 38 | Sync with Tramp 2.2.3. |
| @@ -16,16 +51,16 @@ | |||
| 16 | for toggle-read-only. Note that this hasn't called vc-next-action | 51 | for toggle-read-only. Note that this hasn't called vc-next-action |
| 17 | since 2008-05-02, though it wasn't documented at the time. | 52 | since 2008-05-02, though it wasn't documented at the time. |
| 18 | 53 | ||
| 19 | * vc/ediff-init.el (ediff-toggle-read-only-function): Use | 54 | * vc/ediff-init.el (ediff-toggle-read-only-function): |
| 20 | toggle-read-only. | 55 | Use toggle-read-only. |
| 21 | 56 | ||
| 22 | 2011-10-22 Alan Mackenzie <bug-cc-mode@gnu.org> | 57 | 2011-10-22 Alan Mackenzie <bug-cc-mode@gnu.org> |
| 23 | 58 | ||
| 24 | Fix bug #9560, sporadic wrong indentation; improve instrumentation | 59 | Fix bug #9560, sporadic wrong indentation; improve instrumentation |
| 25 | of c-parse-state. | 60 | of c-parse-state. |
| 26 | 61 | ||
| 27 | * cc-engine.el (c-append-lower-brace-pair-to-state-cache): correct | 62 | * cc-engine.el (c-append-lower-brace-pair-to-state-cache): |
| 28 | faulty logical expression. | 63 | correct faulty logical expression. |
| 29 | (c-parse-state-state, c-record-parse-state-state): | 64 | (c-parse-state-state, c-record-parse-state-state): |
| 30 | (c-replay-parse-state-state): New defvar/defuns. | 65 | (c-replay-parse-state-state): New defvar/defuns. |
| 31 | (c-debug-parse-state): Use new functions. | 66 | (c-debug-parse-state): Use new functions. |
| @@ -39,8 +74,8 @@ | |||
| 39 | 74 | ||
| 40 | * progmodes/idlwave.el (idlwave-mode): | 75 | * progmodes/idlwave.el (idlwave-mode): |
| 41 | * progmodes/vera-mode.el (vera-mode): No need to set | 76 | * progmodes/vera-mode.el (vera-mode): No need to set |
| 42 | require-final-newline; that's done in prog-mode. Suggested by | 77 | require-final-newline; that's done in prog-mode. |
| 43 | Stefan Monnier. | 78 | Suggested by Stefan Monnier. |
| 44 | 79 | ||
| 45 | 2011-10-21 Martin Rudalics <rudalics@gmx.at> | 80 | 2011-10-21 Martin Rudalics <rudalics@gmx.at> |
| 46 | 81 | ||
| @@ -61,8 +96,8 @@ | |||
| 61 | 2011-10-21 Chong Yidong <cyd@gnu.org> | 96 | 2011-10-21 Chong Yidong <cyd@gnu.org> |
| 62 | 97 | ||
| 63 | * progmodes/idlwave.el (idlwave-mode): | 98 | * progmodes/idlwave.el (idlwave-mode): |
| 64 | * progmodes/vera-mode.el (vera-mode): Use | 99 | * progmodes/vera-mode.el (vera-mode): |
| 65 | mode-require-final-newline. | 100 | Use mode-require-final-newline. |
| 66 | 101 | ||
| 67 | 2011-10-20 Glenn Morris <rgm@gnu.org> | 102 | 2011-10-20 Glenn Morris <rgm@gnu.org> |
| 68 | 103 | ||
| @@ -198,8 +233,8 @@ | |||
| 198 | (global-whitespace-mode, global-whitespace-newline-mode): | 233 | (global-whitespace-mode, global-whitespace-newline-mode): |
| 199 | * xt-mouse.el (xterm-mouse-mode): Doc fix. | 234 | * xt-mouse.el (xterm-mouse-mode): Doc fix. |
| 200 | 235 | ||
| 201 | * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix | 236 | * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): |
| 202 | autogenerated docstring. | 237 | Fix autogenerated docstring. |
| 203 | 238 | ||
| 204 | 2011-10-19 Juri Linkov <juri@jurta.org> | 239 | 2011-10-19 Juri Linkov <juri@jurta.org> |
| 205 | 240 | ||
diff --git a/lisp/comint.el b/lisp/comint.el index 591be5e2d9d..b91b82adb21 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -2151,8 +2151,10 @@ current line, if point is on an output field. | |||
| 2151 | If `comint-use-prompt-regexp' is non-nil, then return | 2151 | If `comint-use-prompt-regexp' is non-nil, then return |
| 2152 | the current line with any initial string matching the regexp | 2152 | the current line with any initial string matching the regexp |
| 2153 | `comint-prompt-regexp' removed." | 2153 | `comint-prompt-regexp' removed." |
| 2154 | (let ((bof (field-beginning))) | 2154 | (let (bof) |
| 2155 | (if (null (get-char-property bof 'field)) ;Not `output'. | 2155 | (if (and (not comint-use-prompt-regexp) |
| 2156 | ;; Make sure we're in an input rather than output field. | ||
| 2157 | (null (get-char-property (setq bof (field-beginning)) 'field))) | ||
| 2156 | (field-string-no-properties bof) | 2158 | (field-string-no-properties bof) |
| 2157 | (comint-bol) | 2159 | (comint-bol) |
| 2158 | (buffer-substring-no-properties (point) (line-end-position))))) | 2160 | (buffer-substring-no-properties (point) (line-end-position))))) |
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el index b1cb0615e43..4b6f4d634ca 100644 --- a/lisp/emacs-lisp/easy-mmode.el +++ b/lisp/emacs-lisp/easy-mmode.el | |||
| @@ -94,8 +94,9 @@ Optional LIGHTER is displayed in the modeline when the mode is on. | |||
| 94 | Optional KEYMAP is the default keymap bound to the mode keymap. | 94 | Optional KEYMAP is the default keymap bound to the mode keymap. |
| 95 | If non-nil, it should be a variable name (whose value is a keymap), | 95 | If non-nil, it should be a variable name (whose value is a keymap), |
| 96 | or an expression that returns either a keymap or a list of | 96 | or an expression that returns either a keymap or a list of |
| 97 | arguments for `easy-mmode-define-keymap'. If KEYMAP is not a symbol, | 97 | arguments for `easy-mmode-define-keymap'. If you supply a KEYMAP |
| 98 | this also defines the variable MODE-map. | 98 | argument that is not a symbol, this macro defines the variable |
| 99 | MODE-map and gives it the value that KEYMAP specifies. | ||
| 99 | 100 | ||
| 100 | BODY contains code to execute each time the mode is enabled or disabled. | 101 | BODY contains code to execute each time the mode is enabled or disabled. |
| 101 | It is executed after toggling the mode, and before running MODE-hook. | 102 | It is executed after toggling the mode, and before running MODE-hook. |
diff --git a/lisp/facemenu.el b/lisp/facemenu.el index 54b17d58f33..4f9db02b5e1 100644 --- a/lisp/facemenu.el +++ b/lisp/facemenu.el | |||
| @@ -645,6 +645,8 @@ a list of colors that the current display can handle." | |||
| 645 | ;; text in menu entries) and `SystemWindowText' (the default | 645 | ;; text in menu entries) and `SystemWindowText' (the default |
| 646 | ;; color w32 uses for the text in windows and dialogs) may | 646 | ;; color w32 uses for the text in windows and dialogs) may |
| 647 | ;; be the same display color and be adjacent in the list. | 647 | ;; be the same display color and be adjacent in the list. |
| 648 | ;; These system colors all have names prefixed with "System", | ||
| 649 | ;; which is hardcoded in w32fns.c (SYSTEM_COLOR_PREFIX). | ||
| 648 | ;; This makes them different to any other color. Bug#9722 | 650 | ;; This makes them different to any other color. Bug#9722 |
| 649 | (not (and (eq system-type 'windows-nt) | 651 | (not (and (eq system-type 'windows-nt) |
| 650 | (string-match-p "^System" (car (car l)))))) | 652 | (string-match-p "^System" (car (car l)))))) |
diff --git a/lisp/info.el b/lisp/info.el index 4ccbeba2a47..b8deb3c9c7f 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -2015,7 +2015,7 @@ Submatch 1 is the complete node name. | |||
| 2015 | Submatch 2 if non-nil is the parenthesized file name part of the node name. | 2015 | Submatch 2 if non-nil is the parenthesized file name part of the node name. |
| 2016 | Submatch 3 is the local part of the node name. | 2016 | Submatch 3 is the local part of the node name. |
| 2017 | End of submatch 0, 1, and 3 are the same, so you can safely concat." | 2017 | End of submatch 0, 1, and 3 are the same, so you can safely concat." |
| 2018 | (concat "[ \t]*" ;Skip leading space. | 2018 | (concat "[ \t\n]*" ;Skip leading space. |
| 2019 | "\\(\\(([^)]+)\\)?" ;Node name can start with a file name. | 2019 | "\\(\\(([^)]+)\\)?" ;Node name can start with a file name. |
| 2020 | "\\([" (or allowedchars "^,\t\n") "]*" ;Any number of allowed chars. | 2020 | "\\([" (or allowedchars "^,\t\n") "]*" ;Any number of allowed chars. |
| 2021 | "[" (or allowedchars "^,\t\n") " ]" ;The last char can't be a space. | 2021 | "[" (or allowedchars "^,\t\n") " ]" ;The last char can't be a space. |
diff --git a/lisp/isearch.el b/lisp/isearch.el index 6cfcce59672..6bb23916da3 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -1452,7 +1452,7 @@ string. NLINES has the same meaning as in `occur'." | |||
| 1452 | ;; Set `search-upper-case' to nil to not call | 1452 | ;; Set `search-upper-case' to nil to not call |
| 1453 | ;; `isearch-no-upper-case-p' in `occur-1'. | 1453 | ;; `isearch-no-upper-case-p' in `occur-1'. |
| 1454 | (search-upper-case nil) | 1454 | (search-upper-case nil) |
| 1455 | (search-spaces-regexp search-whitespace-regexp)) | 1455 | (search-spaces-regexp (if isearch-regexp search-whitespace-regexp))) |
| 1456 | (occur regexp nlines))) | 1456 | (occur regexp nlines))) |
| 1457 | 1457 | ||
| 1458 | (declare-function hi-lock-read-face-name "hi-lock" ()) | 1458 | (declare-function hi-lock-read-face-name "hi-lock" ()) |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 56424f79476..55732194bc8 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -1594,17 +1594,14 @@ and gid of the corresponding user is taken. Both parameters must be integers." | |||
| 1594 | 1594 | ||
| 1595 | (defun tramp-sh-handle-file-directory-p (filename) | 1595 | (defun tramp-sh-handle-file-directory-p (filename) |
| 1596 | "Like `file-directory-p' for Tramp files." | 1596 | "Like `file-directory-p' for Tramp files." |
| 1597 | ;; Care must be taken that this function returns `t' for symlinks | ||
| 1598 | ;; pointing to directories. Surely the most obvious implementation | ||
| 1599 | ;; would be `test -d', but that returns false for such symlinks. | ||
| 1600 | ;; CCC: Stefan Monnier says that `test -d' follows symlinks. And | ||
| 1601 | ;; I now think he's right. So we could be using `test -d', couldn't | ||
| 1602 | ;; we? | ||
| 1603 | ;; | ||
| 1604 | ;; Alternatives: `cd %s', `test -d %s' | ||
| 1605 | (with-parsed-tramp-file-name filename nil | 1597 | (with-parsed-tramp-file-name filename nil |
| 1606 | (with-file-property v localname "file-directory-p" | 1598 | ;; `file-directory-p' is used as predicate for filename completion. |
| 1607 | (tramp-run-test "-d" filename)))) | 1599 | ;; Sometimes, when a connection is not established yet, it is |
| 1600 | ;; desirable to return t immediately for "/method:foo:". It can | ||
| 1601 | ;; be expected that this is always a directory. | ||
| 1602 | (or (zerop (length localname)) | ||
| 1603 | (with-file-property v localname "file-directory-p" | ||
| 1604 | (tramp-run-test "-d" filename))))) | ||
| 1608 | 1605 | ||
| 1609 | (defun tramp-sh-handle-file-writable-p (filename) | 1606 | (defun tramp-sh-handle-file-writable-p (filename) |
| 1610 | "Like `file-writable-p' for Tramp files." | 1607 | "Like `file-writable-p' for Tramp files." |
diff --git a/lisp/notifications.el b/lisp/notifications.el index 42cd40df36b..a4e7fdd5425 100644 --- a/lisp/notifications.el +++ b/lisp/notifications.el | |||
| @@ -30,6 +30,9 @@ | |||
| 30 | ;; | 30 | ;; |
| 31 | ;; (require 'notifications) | 31 | ;; (require 'notifications) |
| 32 | 32 | ||
| 33 | ;; For proper usage, Emacs must be started in an environment with an | ||
| 34 | ;; active D-Bus session bus. | ||
| 35 | |||
| 33 | ;;; Code: | 36 | ;;; Code: |
| 34 | (eval-when-compile | 37 | (eval-when-compile |
| 35 | (require 'cl)) | 38 | (require 'cl)) |
diff --git a/lisp/progmodes/octave-inf.el b/lisp/progmodes/octave-inf.el index cb64b2436c6..e9d890c3f26 100644 --- a/lisp/progmodes/octave-inf.el +++ b/lisp/progmodes/octave-inf.el | |||
| @@ -68,7 +68,7 @@ mode, set this to (\"-q\" \"--traditional\")." | |||
| 68 | (define-key map "\C-c\C-l" 'inferior-octave-dynamic-list-input-ring) | 68 | (define-key map "\C-c\C-l" 'inferior-octave-dynamic-list-input-ring) |
| 69 | (define-key map [menu-bar inout list-history] | 69 | (define-key map [menu-bar inout list-history] |
| 70 | '("List Input History" . inferior-octave-dynamic-list-input-ring)) | 70 | '("List Input History" . inferior-octave-dynamic-list-input-ring)) |
| 71 | (define-key map "\C-c\C-h" 'octave-help) | 71 | (define-key map "\C-c\C-h" 'info-lookup-symbol) |
| 72 | map) | 72 | map) |
| 73 | "Keymap used in Inferior Octave mode.") | 73 | "Keymap used in Inferior Octave mode.") |
| 74 | 74 | ||
diff --git a/lisp/progmodes/octave-mod.el b/lisp/progmodes/octave-mod.el index 183347cdeca..5e13b8533e7 100644 --- a/lisp/progmodes/octave-mod.el +++ b/lisp/progmodes/octave-mod.el | |||
| @@ -655,14 +655,6 @@ including a reproducible test case and send the message." | |||
| 655 | 655 | ||
| 656 | (easy-menu-add octave-mode-menu) | 656 | (easy-menu-add octave-mode-menu) |
| 657 | (octave-initialize-completions)) | 657 | (octave-initialize-completions)) |
| 658 | |||
| 659 | (defvar info-lookup-mode) | ||
| 660 | |||
| 661 | (defun octave-help () | ||
| 662 | "Get help on Octave symbols from the Octave info files. | ||
| 663 | Look up symbol in the function, operator and variable indices of the info files." | ||
| 664 | (let ((info-lookup-mode 'octave-mode)) | ||
| 665 | (call-interactively 'info-lookup-symbol))) | ||
| 666 | 658 | ||
| 667 | ;;; Miscellaneous useful functions | 659 | ;;; Miscellaneous useful functions |
| 668 | 660 | ||
diff --git a/lisp/subr.el b/lisp/subr.el index 05ac198dd13..c88cef0ba0f 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -116,8 +116,6 @@ BODY should be a list of Lisp expressions. | |||
| 116 | ;; depend on backquote.el. | 116 | ;; depend on backquote.el. |
| 117 | (list 'function (cons 'lambda cdr))) | 117 | (list 'function (cons 'lambda cdr))) |
| 118 | 118 | ||
| 119 | ;; Partial application of functions (similar to "currying"). | ||
| 120 | ;; This function is here rather than in subr.el because it uses CL. | ||
| 121 | (defun apply-partially (fun &rest args) | 119 | (defun apply-partially (fun &rest args) |
| 122 | "Return a function that is a partial application of FUN to ARGS. | 120 | "Return a function that is a partial application of FUN to ARGS. |
| 123 | ARGS is a list of the first N arguments to pass to FUN. | 121 | ARGS is a list of the first N arguments to pass to FUN. |