diff options
| author | Eli Zaretskii | 2013-03-30 20:37:57 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-03-30 20:37:57 +0300 |
| commit | f1aa11971a74b7b2fa0f5baaaaf21dfbd388de6b (patch) | |
| tree | 48e20bfab4262d7171593d4ef98309ae717c1cb6 /lisp | |
| parent | 7c4026b6ad03974a55a175af17c8e76c61931b69 (diff) | |
| parent | 119b2d43cc40759394cae256c0a38624cacbf776 (diff) | |
| download | emacs-f1aa11971a74b7b2fa0f5baaaaf21dfbd388de6b.tar.gz emacs-f1aa11971a74b7b2fa0f5baaaaf21dfbd388de6b.zip | |
Merge from trunk.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 32 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/nnir.el | 2 | ||||
| -rw-r--r-- | lisp/iswitchb.el | 2 | ||||
| -rw-r--r-- | lisp/kmacro.el | 19 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 19 | ||||
| -rw-r--r-- | lisp/profiler.el | 8 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 16 |
8 files changed, 72 insertions, 30 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 737a91e2e4a..d1b827966de 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,25 @@ | |||
| 1 | 2013-03-30 Fabián Ezequiel Gallina <fabian@anue.biz> | ||
| 2 | |||
| 3 | Un-indent after "pass" and "return" statements (Bug#13888) | ||
| 4 | * progmodes/python.el (python-indent-block-enders): New var. | ||
| 5 | (python-indent-calculate-indentation): Use it. | ||
| 6 | |||
| 7 | 2013-03-30 Michael Albinus <michael.albinus@gmx.de> | ||
| 8 | |||
| 9 | * net/tramp.el (tramp-drop-volume-letter): Make it an ordinary | ||
| 10 | defun. Defining it as defalias could introduce too eager | ||
| 11 | byte-compiler optimization. (Bug#14030) | ||
| 12 | |||
| 13 | 2013-03-30 Chong Yidong <cyd@gnu.org> | ||
| 14 | |||
| 15 | * iswitchb.el (iswitchb-read-buffer): Fix typo. | ||
| 16 | |||
| 17 | 2013-03-30 Leo Liu <sdl.web@gmail.com> | ||
| 18 | |||
| 19 | * kmacro.el (kmacro-call-macro): Add optional arg MACRO. | ||
| 20 | (kmacro-execute-from-register): Pass the keyboard macro to | ||
| 21 | kmacro-call-macro or repeating won't work correctly. | ||
| 22 | |||
| 1 | 2013-03-30 Teodor Zlatanov <tzz@lifelogs.com> | 23 | 2013-03-30 Teodor Zlatanov <tzz@lifelogs.com> |
| 2 | 24 | ||
| 3 | * progmodes/subword.el: Back to using `forward-symbol'. | 25 | * progmodes/subword.el: Back to using `forward-symbol'. |
| @@ -56,6 +78,11 @@ | |||
| 56 | over symbol_words (parallels and leverages `subword-mode' which | 78 | over symbol_words (parallels and leverages `subword-mode' which |
| 57 | does word motion inside MixedCaseWords). | 79 | does word motion inside MixedCaseWords). |
| 58 | 80 | ||
| 81 | 2013-03-27 Aidan Gauland <aidalgol@no8wireless.co.nz> | ||
| 82 | |||
| 83 | * eshell/em-unix.el: Moved su and sudo to... | ||
| 84 | * eshell/em-tramp.el: ...Eshell tramp module | ||
| 85 | |||
| 59 | 2013-03-26 Stefan Monnier <monnier@iro.umontreal.ca> | 86 | 2013-03-26 Stefan Monnier <monnier@iro.umontreal.ca> |
| 60 | 87 | ||
| 61 | * desktop.el (desktop--v2s): Rename from desktop-internal-v2s. | 88 | * desktop.el (desktop--v2s): Rename from desktop-internal-v2s. |
| @@ -1054,6 +1081,11 @@ | |||
| 1054 | (eieio-browse-tree, eieio-browse): Use eieio--check-type. | 1081 | (eieio-browse-tree, eieio-browse): Use eieio--check-type. |
| 1055 | 1082 | ||
| 1056 | 1083 | ||
| 1084 | 2013-02-18 Aidan Gauland <aidalgol@no8wireless.co.nz> | ||
| 1085 | |||
| 1086 | * eshell/em-cmpl.el: Corrected "context-related help" | ||
| 1087 | keybinding in commentary. | ||
| 1088 | |||
| 1057 | 2013-02-18 Michael Heerdegen <michael_heerdegen@web.de> | 1089 | 2013-02-18 Michael Heerdegen <michael_heerdegen@web.de> |
| 1058 | 1090 | ||
| 1059 | * emacs-lisp/eldoc.el (eldoc-highlight-function-argument): | 1091 | * emacs-lisp/eldoc.el (eldoc-highlight-function-argument): |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 3ea10f55df2..d46051af097 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-03-30 Andrew Cohen <cohen@bu.edu> | ||
| 2 | |||
| 3 | * nnir.el (nnir-method-default-engines): Fix typo. | ||
| 4 | |||
| 1 | 2013-03-29 Andrew Cohen <cohen@bu.edu> | 5 | 2013-03-29 Andrew Cohen <cohen@bu.edu> |
| 2 | 6 | ||
| 3 | * nnir.el: Define 'number-sequence for xemacs. | 7 | * nnir.el: Define 'number-sequence for xemacs. |
diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el index cf9de09eaa2..1c7cb2ff17a 100644 --- a/lisp/gnus/nnir.el +++ b/lisp/gnus/nnir.el | |||
| @@ -584,7 +584,7 @@ needs the variables `nnir-namazu-program', | |||
| 584 | 584 | ||
| 585 | Add an entry here when adding a new search engine.") | 585 | Add an entry here when adding a new search engine.") |
| 586 | 586 | ||
| 587 | (defcustom nnir-method-default-engines '((nnimap . imap) (nttp . gmane)) | 587 | (defcustom nnir-method-default-engines '((nnimap . imap) (nntp . gmane)) |
| 588 | "*Alist of default search engines keyed by server method." | 588 | "*Alist of default search engines keyed by server method." |
| 589 | :version "24.1" | 589 | :version "24.1" |
| 590 | :group 'nnir | 590 | :group 'nnir |
diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el index 68749f1b012..07873db38e1 100644 --- a/lisp/iswitchb.el +++ b/lisp/iswitchb.el | |||
| @@ -597,7 +597,7 @@ the selection process begins. Used by isearchb.el." | |||
| 597 | ;; The map is generated every time so that it can inherit new | 597 | ;; The map is generated every time so that it can inherit new |
| 598 | ;; functions. | 598 | ;; functions. |
| 599 | (let ((map (copy-keymap minibuffer-local-map)) | 599 | (let ((map (copy-keymap minibuffer-local-map)) |
| 600 | buf-sel iswitchb-final-text map | 600 | buf-sel iswitchb-final-text |
| 601 | icomplete-mode) ; prevent icomplete starting up | 601 | icomplete-mode) ; prevent icomplete starting up |
| 602 | (define-key map "?" 'iswitchb-completion-help) | 602 | (define-key map "?" 'iswitchb-completion-help) |
| 603 | (define-key map "\C-s" 'iswitchb-next-match) | 603 | (define-key map "\C-s" 'iswitchb-next-match) |
diff --git a/lisp/kmacro.el b/lisp/kmacro.el index 4253fb87d5c..c08f49df0a7 100644 --- a/lisp/kmacro.el +++ b/lisp/kmacro.el | |||
| @@ -614,9 +614,10 @@ An argument of zero means repeat until error." | |||
| 614 | 614 | ||
| 615 | 615 | ||
| 616 | ;;;###autoload | 616 | ;;;###autoload |
| 617 | (defun kmacro-call-macro (arg &optional no-repeat end-macro) | 617 | (defun kmacro-call-macro (arg &optional no-repeat end-macro macro) |
| 618 | "Call the last keyboard macro that you defined with \\[kmacro-start-macro]. | 618 | "Call the keyboard MACRO that you defined with \\[kmacro-start-macro]. |
| 619 | A prefix argument serves as a repeat count. Zero means repeat until error. | 619 | A prefix argument serves as a repeat count. Zero means repeat until error. |
| 620 | MACRO defaults to `last-kbd-macro'. | ||
| 620 | 621 | ||
| 621 | When you call the macro, you can call the macro again by repeating | 622 | When you call the macro, you can call the macro again by repeating |
| 622 | just the last key in the key sequence that you used to call this | 623 | just the last key in the key sequence that you used to call this |
| @@ -630,7 +631,8 @@ others, use \\[kmacro-name-last-macro]." | |||
| 630 | (> (length (this-single-command-keys)) 1)) | 631 | (> (length (this-single-command-keys)) 1)) |
| 631 | ;; Used when we're in the process of repeating. | 632 | ;; Used when we're in the process of repeating. |
| 632 | (eq no-repeat 'repeating)) | 633 | (eq no-repeat 'repeating)) |
| 633 | last-input-event))) | 634 | last-input-event)) |
| 635 | (last-kbd-macro (or macro last-kbd-macro))) | ||
| 634 | (if end-macro | 636 | (if end-macro |
| 635 | (kmacro-end-macro arg) | 637 | (kmacro-end-macro arg) |
| 636 | (call-last-kbd-macro arg #'kmacro-loop-setup-function)) | 638 | (call-last-kbd-macro arg #'kmacro-loop-setup-function)) |
| @@ -656,7 +658,7 @@ others, use \\[kmacro-name-last-macro]." | |||
| 656 | (define-key map (vector repeat-key) | 658 | (define-key map (vector repeat-key) |
| 657 | `(lambda () (interactive) | 659 | `(lambda () (interactive) |
| 658 | (kmacro-call-macro ,(and kmacro-call-repeat-with-arg arg) | 660 | (kmacro-call-macro ,(and kmacro-call-repeat-with-arg arg) |
| 659 | 'repeating))) | 661 | 'repeating nil ,last-kbd-macro))) |
| 660 | map))))) | 662 | map))))) |
| 661 | 663 | ||
| 662 | 664 | ||
| @@ -838,8 +840,7 @@ Such a \"function\" cannot be called from Lisp, but it is a valid editor command | |||
| 838 | 840 | ||
| 839 | 841 | ||
| 840 | (defun kmacro-execute-from-register (k) | 842 | (defun kmacro-execute-from-register (k) |
| 841 | (let ((last-kbd-macro k)) | 843 | (kmacro-call-macro current-prefix-arg nil nil k)) |
| 842 | (kmacro-call-macro current-prefix-arg))) | ||
| 843 | 844 | ||
| 844 | (defun kmacro-to-register (r) | 845 | (defun kmacro-to-register (r) |
| 845 | "Store the last keyboard macro in register R." | 846 | "Store the last keyboard macro in register R." |
| @@ -851,10 +852,10 @@ Such a \"function\" cannot be called from Lisp, but it is a valid editor command | |||
| 851 | last-kbd-macro | 852 | last-kbd-macro |
| 852 | :jump-func 'kmacro-execute-from-register | 853 | :jump-func 'kmacro-execute-from-register |
| 853 | :print-func (lambda (k) | 854 | :print-func (lambda (k) |
| 854 | (princ (format "a keyboard macro:\n %s" | 855 | (princ (format "a keyboard macro:\n %s" |
| 855 | (format-kbd-macro k)))) | 856 | (format-kbd-macro k)))) |
| 856 | :insert-func (lambda (k) | 857 | :insert-func (lambda (k) |
| 857 | (insert (format-kbd-macro k)))))) | 858 | (insert (format-kbd-macro k)))))) |
| 858 | 859 | ||
| 859 | 860 | ||
| 860 | (defun kmacro-view-macro (&optional _arg) | 861 | (defun kmacro-view-macro (&optional _arg) |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 86f7f338b27..7795d9f808c 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -1660,23 +1660,16 @@ FILE must be a local file name on a connection identified via VEC." | |||
| 1660 | (tramp-compat-font-lock-add-keywords | 1660 | (tramp-compat-font-lock-add-keywords |
| 1661 | 'emacs-lisp-mode '("\\<with-tramp-connection-property\\>")) | 1661 | 'emacs-lisp-mode '("\\<with-tramp-connection-property\\>")) |
| 1662 | 1662 | ||
| 1663 | (defalias 'tramp-drop-volume-letter | 1663 | (defun tramp-drop-volume-letter (name) |
| 1664 | (if (memq system-type '(cygwin windows-nt)) | 1664 | "Cut off unnecessary drive letter from file NAME. |
| 1665 | (lambda (name) | ||
| 1666 | "Cut off unnecessary drive letter from file NAME. | ||
| 1667 | The functions `tramp-*-handle-expand-file-name' call `expand-file-name' | 1665 | The functions `tramp-*-handle-expand-file-name' call `expand-file-name' |
| 1668 | locally on a remote file name. When the local system is a W32 system | 1666 | locally on a remote file name. When the local system is a W32 system |
| 1669 | but the remote system is Unix, this introduces a superfluous drive | 1667 | but the remote system is Unix, this introduces a superfluous drive |
| 1670 | letter into the file name. This function removes it." | 1668 | letter into the file name. This function removes it." |
| 1671 | (save-match-data | 1669 | (save-match-data |
| 1672 | (if (string-match "\\`[a-zA-Z]:/" name) | 1670 | (if (string-match "\\`[a-zA-Z]:/" name) |
| 1673 | (replace-match "/" nil t name) | 1671 | (replace-match "/" nil t name) |
| 1674 | name))) | 1672 | name))) |
| 1675 | |||
| 1676 | 'identity)) | ||
| 1677 | |||
| 1678 | (if (featurep 'xemacs) | ||
| 1679 | (defalias 'tramp-drop-volume-letter 'identity)) | ||
| 1680 | 1673 | ||
| 1681 | (defun tramp-cleanup (vec) | 1674 | (defun tramp-cleanup (vec) |
| 1682 | "Cleanup connection VEC, but keep the debug buffer." | 1675 | "Cleanup connection VEC, but keep the debug buffer." |
diff --git a/lisp/profiler.el b/lisp/profiler.el index 07192a39bef..093a01a8602 100644 --- a/lisp/profiler.el +++ b/lisp/profiler.el | |||
| @@ -5,18 +5,20 @@ | |||
| 5 | ;; Author: Tomohiro Matsuyama <tomo@cx4a.org> | 5 | ;; Author: Tomohiro Matsuyama <tomo@cx4a.org> |
| 6 | ;; Keywords: lisp | 6 | ;; Keywords: lisp |
| 7 | 7 | ||
| 8 | ;; This program is free software; you can redistribute it and/or modify | 8 | ;; This file is part of GNU Emacs. |
| 9 | |||
| 10 | ;; GNU Emacs is free software: you can redistribute it and/or modify | ||
| 9 | ;; it under the terms of the GNU General Public License as published by | 11 | ;; it under the terms of the GNU General Public License as published by |
| 10 | ;; the Free Software Foundation, either version 3 of the License, or | 12 | ;; the Free Software Foundation, either version 3 of the License, or |
| 11 | ;; (at your option) any later version. | 13 | ;; (at your option) any later version. |
| 12 | 14 | ||
| 13 | ;; This program is distributed in the hope that it will be useful, | 15 | ;; GNU Emacs is distributed in the hope that it will be useful, |
| 14 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 17 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | ;; GNU General Public License for more details. | 18 | ;; GNU General Public License for more details. |
| 17 | 19 | ||
| 18 | ;; You should have received a copy of the GNU General Public License | 20 | ;; You should have received a copy of the GNU General Public License |
| 19 | ;; along with this program. If not, see <http://www.gnu.org/licenses/>. | 21 | ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
| 20 | 22 | ||
| 21 | ;;; Commentary: | 23 | ;;; Commentary: |
| 22 | 24 | ||
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index f0f67d01845..d1009534e49 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -638,6 +638,12 @@ It makes underscores and dots word constituent chars.") | |||
| 638 | These make `python-indent-calculate-indentation' subtract the value of | 638 | These make `python-indent-calculate-indentation' subtract the value of |
| 639 | `python-indent-offset'.") | 639 | `python-indent-offset'.") |
| 640 | 640 | ||
| 641 | (defvar python-indent-block-enders '("return" "pass") | ||
| 642 | "List of words that mark the end of a block. | ||
| 643 | These make `python-indent-calculate-indentation' subtract the | ||
| 644 | value of `python-indent-offset' when `python-indent-context' is | ||
| 645 | AFTER-LINE.") | ||
| 646 | |||
| 641 | (defun python-indent-guess-indent-offset () | 647 | (defun python-indent-guess-indent-offset () |
| 642 | "Guess and set `python-indent-offset' for the current buffer." | 648 | "Guess and set `python-indent-offset' for the current buffer." |
| 643 | (interactive) | 649 | (interactive) |
| @@ -763,9 +769,13 @@ START is the buffer position where the sexp starts." | |||
| 763 | (save-excursion | 769 | (save-excursion |
| 764 | (goto-char context-start) | 770 | (goto-char context-start) |
| 765 | (current-indentation)) | 771 | (current-indentation)) |
| 766 | (if (progn | 772 | (if (or (save-excursion |
| 767 | (back-to-indentation) | 773 | (back-to-indentation) |
| 768 | (looking-at (regexp-opt python-indent-dedenters))) | 774 | (looking-at (regexp-opt python-indent-dedenters))) |
| 775 | (save-excursion | ||
| 776 | (python-util-forward-comment -1) | ||
| 777 | (python-nav-beginning-of-statement) | ||
| 778 | (member (current-word) python-indent-block-enders))) | ||
| 769 | python-indent-offset | 779 | python-indent-offset |
| 770 | 0))) | 780 | 0))) |
| 771 | ;; When inside of a string, do nothing. just use the current | 781 | ;; When inside of a string, do nothing. just use the current |