[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/multishell 6b0bc33 12/23: Rectify code formatting, per
From: |
Stefan Monnier |
Subject: |
[elpa] externals/multishell 6b0bc33 12/23: Rectify code formatting, per gnu people's guidance. |
Date: |
Sun, 29 Nov 2020 23:19:38 -0500 (EST) |
branch: externals/multishell
commit 6b0bc3314f5871d52c295f1be686777e7c3c6b9b
Author: Ken Manheimer <ken.manheimer@gmail.com>
Commit: Ken Manheimer <ken.manheimer@gmail.com>
Rectify code formatting, per gnu people's guidance.
---
multishell.el | 27 +++++++++++++--------------
1 file changed, 13 insertions(+), 14 deletions(-)
diff --git a/multishell.el b/multishell.el
index e99c411..755f6bc 100644
--- a/multishell.el
+++ b/multishell.el
@@ -47,7 +47,7 @@
;;
;; * Manage your list of shells, current and past, as a collection.
;;
-;; See the `multishell-pop-to-shell` docstring for details.
+;; See the `multishell-pop-to-shell' docstring for details.
;;
;; Customize-group `multishell' to select and activate a keybinding and set
;; various behaviors. Customize-group `savehist' to preserve buffer
@@ -186,8 +186,8 @@ with allout-mode."
(defcustom multishell-command-key "\M- "
"The key to use if `multishell-activate-command-key' is true.
-You can instead manually bind `multishell-pop-to-shell` using emacs
-lisp, eg: (global-set-key \"\\M- \" 'multishell-pop-to-shell)."
+You can instead manually bind `multishell-pop-to-shell' using emacs
+lisp, eg: (global-set-key \"\\M- \" \\='multishell-pop-to-shell)."
:type 'key-sequence)
(defvar multishell--responsible-for-command-key nil
@@ -244,8 +244,7 @@ When set, the history entry for shells started with explicit
paths will track the shell's current working directory.
If `savehist-save-minibuffer-history' is enabled, the current
-working directory of shells will be conveyed between emacs
-sessions."
+working directory of shells will be conveyed between Emacs sessions."
:type 'boolean)
(defvar multishell-history nil
@@ -368,7 +367,7 @@ prefixing your \\[multishell-pop-to-shell] invocation with
single or double
- With a single universal argument, prompt for the buffer name
to use (without the asterisks that shell mode will put around
- the name), defaulting to 'shell'.
+ the name), defaulting to `shell'.
Completion is available.
@@ -393,21 +392,21 @@ prefixing your \\[multishell-pop-to-shell] invocation
with single or double
The shell buffer name you give to the prompt for a universal arg
can include an appended path. That will be used for the startup
directory. You can use tramp remote syntax to specify a remote
-shell. If there is an element after a final '/', that's used for
+shell. If there is an element after a final `/', that's used for
the buffer name. Otherwise, the host, domain, or path is used.
For example:
-* '#root/sudo:root@localhost:/etc' for a buffer named \"*#root*\" with a
+* `#root/sudo:root@localhost:/etc' for a buffer named \"*#root*\" with a
root shell starting in /etc.
-* '/ssh:example.net:' for a shell buffer in your homedir on example.net.
+* `/ssh:example.net:' for a shell buffer in your homedir on example.net.
The buffer will be named \"*example.net*\".
-* '#ex/ssh:example.net|sudo:root@example.net:/var/log' for a root shell
+* `#ex/ssh:example.net|sudo:root@example.net:/var/log' for a root shell
starting in /var/log on example.net named \"*#ex*\".
-* 'interior/ssh:gateway.corp.com|ssh:interior.corp.com:' to go
+* `interior/ssh:gateway.corp.com|ssh:interior.corp.com:' to go
via gateway.corp.com to your homedir on interior.corp.com. The
buffer will be named \"*interior*\". You could append a sudo
hop to the path, combining the previous example, and so on.
@@ -484,7 +483,7 @@ customize the savehist group to activate savehist."
;; Situate:
- (cond
+ (cond
((and (or curr-buff-proc from-buffer-is-shell)
(not arg)
@@ -573,7 +572,7 @@ Return the last entry deleted."
(error
(message "multishell-kill-buffer-query-function error: %s" err)))
t)
-(add-hook 'kill-buffer-query-functions 'multishell-kill-buffer-query-function)
+(add-hook 'kill-buffer-query-functions #'multishell-kill-buffer-query-function)
(defun multishell-get-visible-window-for-buffer (buffer)
"Return visible window containing buffer."
@@ -656,7 +655,7 @@ Return what's provided, if anything, else nil."
(defun multishell-resolve-target-name-and-path (shell-spec)
"Given name/tramp-style address shell spec, resolve buffer name and
directory.
-The name is the part of the string up to the first '/' slash, if
+The name is the part of the string up to the first `/' slash, if
any. Missing pieces are filled in from remote path elements, if
any, and multishell history. Given a tramp-style remote address
and no name part, either the user@host is used for the buffer
- [elpa] branch externals/multishell created (now 35a0dd3), Stefan Monnier, 2020/11/29
- [elpa] externals/multishell b314574 01/23: multishell-start-shell-in-buffer: be tolerant of absent remote dirs.xo, Stefan Monnier, 2020/11/29
- [elpa] externals/multishell 6d77e93 02/23: Increment version number., Stefan Monnier, 2020/11/29
- [elpa] externals/multishell 708bad6 03/23: Forward compatibility: cl-progv rather than progv, Stefan Monnier, 2020/11/29
- [elpa] externals/multishell c39be89 04/23: Increment version to 1.1.7 and copyright span to include current year., Stefan Monnier, 2020/11/29
- [elpa] externals/multishell bf8c445 05/23: Use appropriate interactive mode., Stefan Monnier, 2020/11/29
- [elpa] externals/multishell ee12b22 08/23: Unravel conditional tangle (and use bound-and-true-p), Stefan Monnier, 2020/11/29
- [elpa] externals/multishell 6b0bc33 12/23: Rectify code formatting, per gnu people's guidance.,
Stefan Monnier <=
- [elpa] externals/multishell aae3f1e 06/23: Use dolist instead of mapcar., Stefan Monnier, 2020/11/29
- [elpa] externals/multishell 5adbb49 09/23: Remove unused variable., Stefan Monnier, 2020/11/29
- [elpa] externals/multishell 2b4d9d7 15/23: Rectify code formatting, per gnu people's guidance., Stefan Monnier, 2020/11/29
- [elpa] externals/multishell 0d349ee 16/23: Revise in-file change log acknowledging other's work and prior unreleased, Stefan Monnier, 2020/11/29
- [elpa] externals/multishell 9d23005 17/23: Refine multishell-pop-to-shell docstring., Stefan Monnier, 2020/11/29
- [elpa] externals/multishell e26492d 18/23: Refine multishell-pop-to-shell docstring a bit more., Stefan Monnier, 2020/11/29
- [elpa] externals/multishell 84a7a57 19/23: Minor wording in acknowledgment., Stefan Monnier, 2020/11/29
- [elpa] externals/multishell 8026840 10/23: Change variable name to respect gnu conventions., Stefan Monnier, 2020/11/29
- [elpa] externals/multishell 68493fa 11/23: Include lexical binding and adjust header copyright date., Stefan Monnier, 2020/11/29
- [elpa] externals/multishell 4fee0bd 07/23: Avoid circular load by depending on load from multishell.el., Stefan Monnier, 2020/11/29