diff options
| author | Glenn Morris | 2014-04-08 20:37:56 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-04-08 20:37:56 -0700 |
| commit | 559836fbccf9c79c621da96fe8ca0080b980b14c (patch) | |
| tree | 4bf9792cdcf01bc71746845f5a1277da4a8ea687 | |
| parent | 6bc76cee212aab0a2c02f8c28213fc842cc7880f (diff) | |
| parent | 50c9a9b8a871ce281b43a196bd912f3d2fdda5fa (diff) | |
| download | emacs-559836fbccf9c79c621da96fe8ca0080b980b14c.tar.gz emacs-559836fbccf9c79c621da96fe8ca0080b980b14c.zip | |
Merge from emacs-24; up to 2014-04-02T16:17:08Z!dmantipov@yandex.ru
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/help.el | 8 | ||||
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 4 | ||||
| -rw-r--r-- | test/ChangeLog | 8 | ||||
| -rw-r--r-- | test/automated/electric-tests.el | 2 | ||||
| -rw-r--r-- | test/automated/python-tests.el | 54 |
6 files changed, 59 insertions, 27 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 26bcb7fd668..c6b0499a657 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2014-04-09 Dmitry Gutov <dgutov@yandex.ru> | ||
| 2 | |||
| 3 | * progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight more | ||
| 4 | Module methods. (Bug#17216) | ||
| 5 | |||
| 6 | 2014-04-09 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 7 | |||
| 8 | * help.el (describe-bindings): Fix buffer handling (bug#17210). | ||
| 9 | (describe-bindings-internal): Mark obsolete. | ||
| 10 | |||
| 1 | 2014-04-09 Stefan Monnier <monnier@iro.umontreal.ca> | 11 | 2014-04-09 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 12 | ||
| 3 | * subr.el (with-silent-modifications): Don't bind deactivate-mark, | 13 | * subr.el (with-silent-modifications): Don't bind deactivate-mark, |
diff --git a/lisp/help.el b/lisp/help.el index 76c27de8da6..932270204c5 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -482,8 +482,11 @@ or a buffer name." | |||
| 482 | (or buffer (setq buffer (current-buffer))) | 482 | (or buffer (setq buffer (current-buffer))) |
| 483 | (help-setup-xref (list #'describe-bindings prefix buffer) | 483 | (help-setup-xref (list #'describe-bindings prefix buffer) |
| 484 | (called-interactively-p 'interactive)) | 484 | (called-interactively-p 'interactive)) |
| 485 | (with-current-buffer buffer | 485 | (with-help-window (help-buffer) |
| 486 | (describe-bindings-internal nil prefix))) | 486 | ;; Be aware that `describe-buffer-bindings' puts its output into |
| 487 | ;; the current buffer. | ||
| 488 | (with-current-buffer (help-buffer) | ||
| 489 | (describe-buffer-bindings buffer prefix)))) | ||
| 487 | 490 | ||
| 488 | ;; This function used to be in keymap.c. | 491 | ;; This function used to be in keymap.c. |
| 489 | (defun describe-bindings-internal (&optional menus prefix) | 492 | (defun describe-bindings-internal (&optional menus prefix) |
| @@ -494,6 +497,7 @@ The optional argument MENUS, if non-nil, says to mention menu bindings. | |||
| 494 | \(Ordinarily these are omitted from the output.) | 497 | \(Ordinarily these are omitted from the output.) |
| 495 | The optional argument PREFIX, if non-nil, should be a key sequence; | 498 | The optional argument PREFIX, if non-nil, should be a key sequence; |
| 496 | then we display only bindings that start with that prefix." | 499 | then we display only bindings that start with that prefix." |
| 500 | (declare (obsolete describe-buffer-bindings "24.4")) | ||
| 497 | (let ((buf (current-buffer))) | 501 | (let ((buf (current-buffer))) |
| 498 | (with-help-window (help-buffer) | 502 | (with-help-window (help-buffer) |
| 499 | ;; Be aware that `describe-buffer-bindings' puts its output into | 503 | ;; Be aware that `describe-buffer-bindings' puts its output into |
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 6c6cdd3427d..912736707ef 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -2065,6 +2065,10 @@ See `font-lock-syntax-table'.") | |||
| 2065 | "include" | 2065 | "include" |
| 2066 | "module_function" | 2066 | "module_function" |
| 2067 | "prepend" | 2067 | "prepend" |
| 2068 | "private_class_method" | ||
| 2069 | "private_constant" | ||
| 2070 | "public_class_method" | ||
| 2071 | "public_constant" | ||
| 2068 | "refine" | 2072 | "refine" |
| 2069 | "using") | 2073 | "using") |
| 2070 | 'symbols)) | 2074 | 'symbols)) |
diff --git a/test/ChangeLog b/test/ChangeLog index fb969069c6c..c27b9b5f437 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2014-04-09 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * automated/python-tests.el (python-triple-quote-pairing): | ||
| 4 | Enable/disable electric-pair-mode as needed. | ||
| 5 | |||
| 6 | * automated/electric-tests.el (electric-pair-backspace-1): | ||
| 7 | Replace deleted function. | ||
| 8 | |||
| 1 | 2014-04-07 João Távora <joaotavora@gmail.com> | 9 | 2014-04-07 João Távora <joaotavora@gmail.com> |
| 2 | 10 | ||
| 3 | * automated/python-tests.el (python-triple-quote-pairing): New test. | 11 | * automated/python-tests.el (python-triple-quote-pairing): New test. |
diff --git a/test/automated/electric-tests.el b/test/automated/electric-tests.el index bcef9cc2adb..6a70080fde5 100644 --- a/test/automated/electric-tests.el +++ b/test/automated/electric-tests.el | |||
| @@ -509,7 +509,7 @@ baz\"\"" | |||
| 509 | (with-temp-buffer | 509 | (with-temp-buffer |
| 510 | (insert "()") | 510 | (insert "()") |
| 511 | (goto-char 2) | 511 | (goto-char 2) |
| 512 | (electric-pair-backward-delete-char 1) | 512 | (electric-pair-delete-pair 1) |
| 513 | (should (equal "" (buffer-string)))))) | 513 | (should (equal "" (buffer-string)))))) |
| 514 | 514 | ||
| 515 | 515 | ||
diff --git a/test/automated/python-tests.el b/test/automated/python-tests.el index 8fe8f71264f..de963a670bc 100644 --- a/test/automated/python-tests.el +++ b/test/automated/python-tests.el | |||
| @@ -2722,30 +2722,36 @@ def foo(a, b, c): | |||
| 2722 | (should (= (point) (point-min))))) | 2722 | (should (= (point) (point-min))))) |
| 2723 | 2723 | ||
| 2724 | (ert-deftest python-triple-quote-pairing () | 2724 | (ert-deftest python-triple-quote-pairing () |
| 2725 | (python-tests-with-temp-buffer | 2725 | (require 'electric) |
| 2726 | "\"\"\n" | 2726 | (let ((epm electric-pair-mode)) |
| 2727 | (goto-char (1- (point-max))) | 2727 | (unwind-protect |
| 2728 | (let ((last-command-event ?\")) | 2728 | (progn |
| 2729 | (call-interactively 'self-insert-command)) | 2729 | (python-tests-with-temp-buffer |
| 2730 | (should (string= (buffer-string) | 2730 | "\"\"\n" |
| 2731 | "\"\"\"\"\"\"\n")) | 2731 | (or epm (electric-pair-mode 1)) |
| 2732 | (should (= (point) 4))) | 2732 | (goto-char (1- (point-max))) |
| 2733 | (python-tests-with-temp-buffer | 2733 | (let ((last-command-event ?\")) |
| 2734 | "\n" | 2734 | (call-interactively 'self-insert-command)) |
| 2735 | (let ((last-command-event ?\")) | 2735 | (should (string= (buffer-string) |
| 2736 | (dotimes (i 3) | 2736 | "\"\"\"\"\"\"\n")) |
| 2737 | (call-interactively 'self-insert-command))) | 2737 | (should (= (point) 4))) |
| 2738 | (should (string= (buffer-string) | 2738 | (python-tests-with-temp-buffer |
| 2739 | "\"\"\"\"\"\"\n")) | 2739 | "\n" |
| 2740 | (should (= (point) 4))) | 2740 | (let ((last-command-event ?\")) |
| 2741 | (python-tests-with-temp-buffer | 2741 | (dotimes (i 3) |
| 2742 | "\"\n\"\"\n" | 2742 | (call-interactively 'self-insert-command))) |
| 2743 | (goto-char (1- (point-max))) | 2743 | (should (string= (buffer-string) |
| 2744 | (let ((last-command-event ?\")) | 2744 | "\"\"\"\"\"\"\n")) |
| 2745 | (call-interactively 'self-insert-command)) | 2745 | (should (= (point) 4))) |
| 2746 | (should (= (point) (1- (point-max)))) | 2746 | (python-tests-with-temp-buffer |
| 2747 | (should (string= (buffer-string) | 2747 | "\"\n\"\"\n" |
| 2748 | "\"\n\"\"\"\n")))) | 2748 | (goto-char (1- (point-max))) |
| 2749 | (let ((last-command-event ?\")) | ||
| 2750 | (call-interactively 'self-insert-command)) | ||
| 2751 | (should (= (point) (1- (point-max)))) | ||
| 2752 | (should (string= (buffer-string) | ||
| 2753 | "\"\n\"\"\"\n")))) | ||
| 2754 | (or epm (electric-pair-mode -1))))) | ||
| 2749 | 2755 | ||
| 2750 | 2756 | ||
| 2751 | (provide 'python-tests) | 2757 | (provide 'python-tests) |