+2014-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * simple.el (execute-extended-command--shorter): Cut search here.
+ (execute-extended-command): Instead of here.
+
2014-11-16 Fabián Ezequiel Gallina <fgallina@gnu.org>
* progmodes/python.el (python-mode): Avoid use of set-local to
2014-11-16 Ulf Jasper <ulf.jasper@web.de>
- * calendar/icalendar.el (icalendar--convert-tz-offset): Return
- complete cons when offsets of standard time and daylight saving
+ * calendar/icalendar.el (icalendar--convert-tz-offset):
+ Return complete cons when offsets of standard time and daylight saving
time are equal.
(icalendar-export-region): Fix unbound variable warning.
2014-11-16 Fabián Ezequiel Gallina <fgallina@gnu.org>
- * progmodes/python.el (python-shell-calculate-command): Rename
- from python-shell-parse-command. Cleanup.
+ * progmodes/python.el (python-shell-calculate-command):
+ Rename from python-shell-parse-command. Cleanup.
(run-python, run-python-internal): Use it.
(python-shell-calculate-pythonpath): Rename from
python-new-pythonpath.
(setq len (1+ len))
(setq candidates (execute-extended-command--shorter-1
name len)))
- (< len max)))
+ ;; Don't show the help message if the binding isn't
+ ;; significantly shorter than the M-x command the user typed.
+ (< len (- max 5))))
(let ((candidate (pop candidates)))
(when (equal name
(car-safe (completion-try-completion
(while-no-input
(setq binding (execute-extended-command--shorter
(symbol-name function) typed))))
- (when (and binding
- (or (not (stringp binding))
- (> (- (length (symbol-name function)) (length binding))
- ;; Don't show the help message if the
- ;; binding isn't significantly shorter than
- ;; the M-x command the user typed.
- 5)))
+ (when binding
(with-temp-message
(format "You can run the command `%s' with %s"
function