From b4f2b1d7d18f9246b06baf1e573b2cd990af83c8 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 10 May 2026 03:13:39 -0500 Subject: chore(vterm): fix docstring quoting and drop unused alias MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Quote the symbol name `below' in three F12 toggle docstrings so the byte-compiler stops flagging the unescaped single quotes. Same change in each: `'below` becomes `\`below'` so Emacs renders it as a code reference. Also drop the unused `cj/vterm-history` alias — no callers in the tree. --- modules/eshell-vterm-config.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'modules') diff --git a/modules/eshell-vterm-config.el b/modules/eshell-vterm-config.el index c305b5c8..dff31e4d 100644 --- a/modules/eshell-vterm-config.el +++ b/modules/eshell-vterm-config.el @@ -314,8 +314,6 @@ to the vterm buffer that launched it." (goto-char (point-max))) (pop-to-buffer buffer))) -(defalias 'cj/vterm-history #'cj/vterm-tmux-history) - (defun cj/vterm-copy-mode-cancel () "Exit `vterm-copy-mode' without copying." (interactive) @@ -409,7 +407,7 @@ Used as the size fallback when `cj/--vterm-toggle-last-size' is nil (defvar cj/--vterm-toggle-last-direction nil "Last user-chosen direction for the F12 vterm display. Symbol: right, left, below, above. nil means use the default -'below for F12's traditional bottom split.") +`below' for F12's traditional bottom split.") (defvar cj/--vterm-toggle-last-size nil "Last user-chosen body size for the F12 vterm display. @@ -446,7 +444,7 @@ FRAME defaults to the selected frame. Minibuffer is excluded." (defun cj/--vterm-toggle-capture-state (window) "Capture WINDOW's direction + body size into module-level state. -Default direction is 'below to match F12's traditional bottom +Default direction is `below' to match F12's traditional bottom split when WINDOW fills the frame's root area." (when (window-live-p window) (let* ((dir (cj/window-direction window 'below)) @@ -458,7 +456,7 @@ split when WINDOW fills the frame's root area." "Display-buffer action: split per saved direction and body size. Reads `cj/--vterm-toggle-last-direction' and -`cj/--vterm-toggle-last-size', falling back to 'below and +`cj/--vterm-toggle-last-size', falling back to `below' and `cj/vterm-toggle-window-height' when nil. The cardinal direction is mapped to its frame-edge variant (`right' -> `rightmost', etc.) so the new vterm always lands at the same frame edge it came from -- cgit v1.2.3