summaryrefslogtreecommitdiff
path: root/pancake.el
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2017-12-31 10:23:32 +0300
committerdefanor <defanor@uberspace.net>2017-12-31 10:23:32 +0300
commit0d4303a888fc8da52d6d9f92ae8748dd5b6b865f (patch)
tree1fee8a67c12282da9bd5f8b149316fd7dd65a37e /pancake.el
parent45efb7970d776cde25a8ba2848c6bed539fc1810 (diff)
Adjust a docstring
The `pancake' function actually accepts any pancake command, not necessarily an URL.
Diffstat (limited to 'pancake.el')
-rw-r--r--pancake.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/pancake.el b/pancake.el
index a509a0a..9ebf369 100644
--- a/pancake.el
+++ b/pancake.el
@@ -169,10 +169,10 @@
(read-only-mode 1))))
;;;###autoload
-(defun pancake (&optional url new-session)
- "Browse an URL with pancake, suitable for setting as
-`browse-url-browser-function'. Or simply display a pancake buffer
-if no URL is provided."
+(defun pancake (&optional command new-session)
+ "Execute a pancake COMMAND (which may be an URL), suitable for
+setting as `browse-url-browser-function'. Or simply display a
+pancake buffer if no command is provided."
(interactive)
(when (or new-session (not (consp pancake-buffers)))
(pancake-new))
@@ -181,7 +181,7 @@ if no URL is provided."
(current-buffer)
(car pancake-buffers))))
(with-current-buffer buffer
- (when url (pancake-process-send url))
+ (when command (pancake-process-send command))
(display-buffer (current-buffer)))))
(defun pancake-goto-line (&optional line)