diff options
| author | Stefan Monnier | 2014-11-16 17:24:55 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2014-11-16 17:24:55 -0500 |
| commit | c94988f4b740738cbc4660ee9c64637e55ad5d76 (patch) | |
| tree | 63a5b164b8ef810eabbeee592a5fb4678715fc06 | |
| parent | c2e145b237b92e37c7ba5b004d5372178da723e8 (diff) | |
| download | emacs-c94988f4b740738cbc4660ee9c64637e55ad5d76.tar.gz emacs-c94988f4b740738cbc4660ee9c64637e55ad5d76.zip | |
* lisp/simple.el (execute-extended-command--shorter): Cut search here.
(execute-extended-command): Instead of here.
| -rw-r--r-- | lisp/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/simple.el | 12 |
2 files changed, 13 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 984f4ce2cd7..0a73c570e61 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-11-16 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * simple.el (execute-extended-command--shorter): Cut search here. | ||
| 4 | (execute-extended-command): Instead of here. | ||
| 5 | |||
| 1 | 2014-11-16 Fabián Ezequiel Gallina <fgallina@gnu.org> | 6 | 2014-11-16 Fabián Ezequiel Gallina <fgallina@gnu.org> |
| 2 | 7 | ||
| 3 | * progmodes/python.el (python-mode): Avoid use of set-local to | 8 | * progmodes/python.el (python-mode): Avoid use of set-local to |
| @@ -15,8 +20,8 @@ | |||
| 15 | 20 | ||
| 16 | 2014-11-16 Ulf Jasper <ulf.jasper@web.de> | 21 | 2014-11-16 Ulf Jasper <ulf.jasper@web.de> |
| 17 | 22 | ||
| 18 | * calendar/icalendar.el (icalendar--convert-tz-offset): Return | 23 | * calendar/icalendar.el (icalendar--convert-tz-offset): |
| 19 | complete cons when offsets of standard time and daylight saving | 24 | Return complete cons when offsets of standard time and daylight saving |
| 20 | time are equal. | 25 | time are equal. |
| 21 | (icalendar-export-region): Fix unbound variable warning. | 26 | (icalendar-export-region): Fix unbound variable warning. |
| 22 | 27 | ||
| @@ -27,8 +32,8 @@ | |||
| 27 | 32 | ||
| 28 | 2014-11-16 Fabián Ezequiel Gallina <fgallina@gnu.org> | 33 | 2014-11-16 Fabián Ezequiel Gallina <fgallina@gnu.org> |
| 29 | 34 | ||
| 30 | * progmodes/python.el (python-shell-calculate-command): Rename | 35 | * progmodes/python.el (python-shell-calculate-command): |
| 31 | from python-shell-parse-command. Cleanup. | 36 | Rename from python-shell-parse-command. Cleanup. |
| 32 | (run-python, run-python-internal): Use it. | 37 | (run-python, run-python-internal): Use it. |
| 33 | (python-shell-calculate-pythonpath): Rename from | 38 | (python-shell-calculate-pythonpath): Rename from |
| 34 | python-new-pythonpath. | 39 | python-new-pythonpath. |
diff --git a/lisp/simple.el b/lisp/simple.el index 9665cd53d3f..031970ebb72 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -1621,7 +1621,9 @@ If the value is non-nil and not a number, we wait 2 seconds." | |||
| 1621 | (setq len (1+ len)) | 1621 | (setq len (1+ len)) |
| 1622 | (setq candidates (execute-extended-command--shorter-1 | 1622 | (setq candidates (execute-extended-command--shorter-1 |
| 1623 | name len))) | 1623 | name len))) |
| 1624 | (< len max))) | 1624 | ;; Don't show the help message if the binding isn't |
| 1625 | ;; significantly shorter than the M-x command the user typed. | ||
| 1626 | (< len (- max 5)))) | ||
| 1625 | (let ((candidate (pop candidates))) | 1627 | (let ((candidate (pop candidates))) |
| 1626 | (when (equal name | 1628 | (when (equal name |
| 1627 | (car-safe (completion-try-completion | 1629 | (car-safe (completion-try-completion |
| @@ -1686,13 +1688,7 @@ invoking, give a prefix argument to `execute-extended-command'." | |||
| 1686 | (while-no-input | 1688 | (while-no-input |
| 1687 | (setq binding (execute-extended-command--shorter | 1689 | (setq binding (execute-extended-command--shorter |
| 1688 | (symbol-name function) typed)))) | 1690 | (symbol-name function) typed)))) |
| 1689 | (when (and binding | 1691 | (when binding |
| 1690 | (or (not (stringp binding)) | ||
| 1691 | (> (- (length (symbol-name function)) (length binding)) | ||
| 1692 | ;; Don't show the help message if the | ||
| 1693 | ;; binding isn't significantly shorter than | ||
| 1694 | ;; the M-x command the user typed. | ||
| 1695 | 5))) | ||
| 1696 | (with-temp-message | 1692 | (with-temp-message |
| 1697 | (format "You can run the command `%s' with %s" | 1693 | (format "You can run the command `%s' with %s" |
| 1698 | function | 1694 | function |