[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/shell-command+ 795f4598d1 07/13: Only require diff and
From: |
ELPA Syncer |
Subject: |
[elpa] externals/shell-command+ 795f4598d1 07/13: Only require diff and info if necessary |
Date: |
Thu, 25 Aug 2022 09:57:59 -0400 (EDT) |
branch: externals/shell-command+
commit 795f4598d13306fec1d991fb9eb38a87b4ec8687
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Only require diff and info if necessary
---
shell-command+.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/shell-command+.el b/shell-command+.el
index 3df843c8b6..ef5b487863 100644
--- a/shell-command+.el
+++ b/shell-command+.el
@@ -86,8 +86,6 @@
(eval-when-compile (require 'rx))
(eval-when-compile (require 'pcase))
-(require 'diff)
-(require 'info)
(require 'thingatpt)
(defgroup shell-command+ nil
@@ -244,15 +242,19 @@ For PARSE, FORM and CONTEXT see
`shell-command+-features'."
(pcase-let ((`(,_ . ,args) (shell-command+-tokenize command)))
(man (mapconcat #'identity args " "))))
+(declare-function Info-menu "info" (menu-item &optional fork))
(defun shell-command+-cmd-info (command)
"Convert COMMAND into a `info' call."
+ (require 'info)
(pcase-let ((`(,_ . ,args) (shell-command+-tokenize command)))
(Info-directory)
(dolist (menu args)
(Info-menu menu))))
+(declare-function diff-no-select "diff" (old new &optional switches no-async
buf))
(defun shell-command+-cmd-diff (command)
"Convert COMMAND into `diff' call."
+ (require 'diff)
(pcase-let ((`(,_ . ,args) (shell-command+-tokenize command t)))
(let (files flags)
(dolist (arg args)
- [elpa] externals/shell-command+ 4cab97e97b 02/13: Note why shell-command+-features is rebound, (continued)
- [elpa] externals/shell-command+ 4cab97e97b 02/13: Note why shell-command+-features is rebound, ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 7b47ed86ed 05/13: Add a FIXME comment to 'shell-command+-command-substitution', ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 191435e6c5 04/13: Fix bug in 'shell-command+-command-substitution', ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 8b9d2b20bc 11/13: Bump minimal version to 24.3, ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ f16fe34ce3 13/13: Add .elpaignore, ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 83f9c3d0a6 01/13: Remove obsolete CHANGEME comment, ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 3fffa5c13d 08/13: Fall back to point-min/max if BEG and END are nil, ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 604c0915a2 03/13: Update 'shell-command+-features' docstring, ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 595f9724ab 06/13: Remove a stray quote, ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 1c32e73e4f 12/13: Add a FIXME comment to re-enable the disabled tests, ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 795f4598d1 07/13: Only require diff and info if necessary,
ELPA Syncer <=
- [elpa] externals/shell-command+ 3c9016b630 09/13: Dynamically generate the documentation string for 'shell-command+', ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 39b753f5a4 10/13: Thank Visuwesh in the NEWS section, ELPA Syncer, 2022/08/25