Merge pull request #2350 from Janfel/patch-1

Fix #2349: Make +format-completing-read return symbol
This commit is contained in:
Henrik Lissner
2020-01-13 20:10:50 -05:00
committed by GitHub

View File

@ -95,7 +95,7 @@ Stolen shamelessly from go-mode"
(require 'format-all)
(let* ((fmtlist (mapcar #'symbol-name (hash-table-keys format-all--format-table)))
(fmt (completing-read "Formatter: " fmtlist)))
(if fmt (cons (intern fmt) t))))
(if fmt (intern fmt))))
;;;###autoload
(defun +format-probe-a (orig-fn)