Skip to content

Commit

Permalink
* anything-config.el (anything-completing-read-default): Restore `thi…
Browse files Browse the repository at this point in the history
…s-command' on exit.
  • Loading branch information
thierryvolpiatto committed Nov 12, 2011
1 parent 1711ef4 commit e82e17d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions anything-config.el
Expand Up @@ -9559,8 +9559,14 @@ See documentation of `completing-read' and `all-completions' for details."
(t ; Fall back to classic `anything-comp-read'.
(anything-completing-read-default-1
prompt collection predicate require-match
initial-input hist def inherit-input-method str-command buf-name)))
(ac-mode 1))))
initial-input hist def inherit-input-method
str-command buf-name)))
(ac-mode 1)
;; When exiting minibuffer, `this-command' is set to
;; `anything-exit-minibuffer', which is unwanted when starting
;; on another `completing-read', so restore `this-command' to
;; initial value when exiting.
(setq this-command current-command))))

(defun* anything-generic-read-file-name
(prompt &optional dir default-filename mustmatch initial predicate)
Expand Down

0 comments on commit e82e17d

Please sign in to comment.