branch: externals/shell-command+ commit 5c0159804d9ebf6e401403b5bd861cfe9a8af12a Author: Philip K <phi...@warpmail.net> Commit: Philip K <phi...@warpmail.net>
fixed minor checkdoc complaints --- bang.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bang.el b/bang.el index a109b1a..104ee3b 100644 --- a/bang.el +++ b/bang.el @@ -26,7 +26,7 @@ ;; Most of the internal code of `bang' has been rewritten for this sake. ;; ;; The original version can be found here: -;; http://leahneukirchen.org/dotfiles/.emacs +;; https://leahneukirchen.org/dotfiles/.emacs (require 'rx) @@ -66,7 +66,7 @@ (dolist (cmd bang--last-commands) (when (string-prefix-p prefix cmd) (throw 'found cmd))) - (error "no such command in history"))) + (error "No such command in history"))) (defun bang--get-command-number (arg rest) "Helper function to find ARG'th last command. @@ -106,7 +106,10 @@ When COMMAND starts with Without any argument, `bang' will behave like `shell-command'. Inside COMMAND, % is replaced with the current file name. To -insert a literal % quote it using a backslash." +insert a literal % quote it using a backslash. + +In case a region is active, bang will only work with the region +between BEG and END. Otherwise the whole buffer is processed." (interactive (list (read-shell-command "Bang command: ") (if mark-active (region-beginning) (point-min)) (if mark-active (region-end) (point-max))))