[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/devhelp ac3c9e9563 03/13: Change the behavior of devhelp f
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/devhelp ac3c9e9563 03/13: Change the behavior of devhelp function to be a bit more like info |
Date: |
Sun, 27 Nov 2022 15:59:11 -0500 (EST) |
branch: elpa/devhelp
commit ac3c9e9563d88a1237f44164cb102062be279fa8
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>
Change the behavior of devhelp function to be a bit more like info
---
devhelp.el | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/devhelp.el b/devhelp.el
index 3fb1cddb73..c624849d50 100644
--- a/devhelp.el
+++ b/devhelp.el
@@ -514,7 +514,9 @@ EVENT is a mouse event, if any."
Interactively, when a non-numeric prefix argument is given, the Devhelp
file name is read interactively from the minibuffer. When a numeric
-argument N is given, a buffer named \"*devhelp*<N>\" is selected.
+argument N is given, a buffer named `*devhelp*<N>' is selected. When no
+prefix argument is given and `*devhelp*' buffer already exists, just
+display it.
Optional argument BUFFER specifies the BUFFER to use, it can be a live
buffer or a buffer name. If BUFFER is a buffer name and the buffer doesn't
@@ -529,12 +531,14 @@ the conbined table of contents of all available Devhelp
books."
(format "*devhelp*<%s>" current-prefix-arg))))
(unless (fboundp 'libxml-parse-html-region)
(error "This function requires Emacs to be compiled with libxml2"))
- (with-current-buffer (get-buffer-create (or buffer "*devhelp*"))
- (devhelp-mode)
- (display-buffer (current-buffer))
- (if (not file)
- (devhelp--directory)
- (devhelp--open-file file))))
+ (if (and (not buffer) (get-buffer "*devhelp*"))
+ (display-buffer "*devhelp*")
+ (with-current-buffer (get-buffer-create (or buffer "*devhelp*"))
+ (devhelp-mode)
+ (display-buffer (current-buffer))
+ (if (not file)
+ (devhelp--directory)
+ (devhelp--open-file file)))))
(defun devhelp--make-bookmark-record ()
"Make a bookmark record."
- [nongnu] branch elpa/devhelp created (now 3a31a672f4), ELPA Syncer, 2022/11/27
- [nongnu] elpa/devhelp ac3c9e9563 03/13: Change the behavior of devhelp function to be a bit more like info,
ELPA Syncer <=
- [nongnu] elpa/devhelp cb97d3d05d 05/13: Fix parent customization group, ELPA Syncer, 2022/11/27
- [nongnu] elpa/devhelp a694a5f1db 06/13: Show off with a GIF, ELPA Syncer, 2022/11/27
- [nongnu] elpa/devhelp 682dcb637f 08/13: Some cleanup and fix wrong-type-argument error, ELPA Syncer, 2022/11/27
- [nongnu] elpa/devhelp d0c781c865 09/13: Make lines less long than 75 characters, ELPA Syncer, 2022/11/27
- [nongnu] elpa/devhelp 01dc4222bf 10/13: Generate SXML instead of HTML while render special pages, ELPA Syncer, 2022/11/27
- [nongnu] elpa/devhelp 54538cd01c 11/13: Add .dir-locals.el, ELPA Syncer, 2022/11/27
- [nongnu] elpa/devhelp 3a31a672f4 13/13: Add Guix-specific search directories by default, ELPA Syncer, 2022/11/27
- [nongnu] elpa/devhelp 66e23a6339 02/13: Don't allow to bookmark history page, ELPA Syncer, 2022/11/27
- [nongnu] elpa/devhelp 139715e6b1 04/13: Reuse existing buffers for bookmark jump, ELPA Syncer, 2022/11/27
- [nongnu] elpa/devhelp e8dfb03110 07/13: Fix file name extension of demo, ELPA Syncer, 2022/11/27