From 0d4303a888fc8da52d6d9f92ae8748dd5b6b865f Mon Sep 17 00:00:00 2001 From: defanor Date: Sun, 31 Dec 2017 10:23:32 +0300 Subject: Adjust a docstring The `pancake' function actually accepts any pancake command, not necessarily an URL. --- pancake.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pancake.el') 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) -- cgit v1.2.3