[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] scratch/rfc-mode f766c141ac 22/52: introduce a custom variable
From: |
Stefan Monnier |
Subject: |
[nongnu] scratch/rfc-mode f766c141ac 22/52: introduce a custom variable to use original buffer names |
Date: |
Wed, 12 Oct 2022 16:29:19 -0400 (EDT) |
branch: scratch/rfc-mode
commit f766c141ac1101bff9c74ea961b8e5347358ff66
Author: Nicolas Martyanoff <khaelin@gmail.com>
Commit: Nicolas Martyanoff <khaelin@gmail.com>
introduce a custom variable to use original buffer names
Based on a suggestion from Stefan Monnier.
---
rfc-mode.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/rfc-mode.el b/rfc-mode.el
index 37e00c2166..b9fef024cd 100644
--- a/rfc-mode.el
+++ b/rfc-mode.el
@@ -73,6 +73,10 @@
Assume RFC documents are named as e.g. rfc21.txt, rfc-index.txt."
:type 'string)
+(defcustom rfc-mode-use-original-buffer-names nil
+ "Whether RFC document buffers should keep their original name or not."
+ :type 'boolean)
+
(defcustom rfc-mode-browser-entry-title-width 60
"The width of the column containing RFC titles in the browser."
:type 'integer)
@@ -329,7 +333,8 @@ The buffer is created if it does not exist."
(document-path (rfc-mode--document-path number)))
(rfc-mode--fetch-document number document-path)
(find-file document-path)
- (rename-buffer buffer-name)
+ (unless rfc-mode-use-original-buffer-names
+ (rename-buffer buffer-name))
(rfc-mode)
(current-buffer)))
- [nongnu] scratch/rfc-mode 4454af644e 13/52: update version tag, (continued)
- [nongnu] scratch/rfc-mode 4454af644e 13/52: update version tag, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode 088d81002e 04/52: make checkdoc happy, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode 88e6577a0e 27/52: update the readme regarding document download, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode 234890d3a8 23/52: Use expand-file-name instead of concat, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode 8aff885877 07/52: fix formatting escape sequence, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode 9ec648cdf7 14/52: cosmetic, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode 622ce988a8 06/52: add missing requires, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode 5cdf7172e3 11/52: Merge pull request #1 from riscy/master, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode e1a255fb59 32/52: Explain the meaning of rfc-mode-use-original-buffer-names better, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode 5a8a3a238e 29/52: Make the rfc-mode-map inherit from special-mode-map, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode f766c141ac 22/52: introduce a custom variable to use original buffer names,
Stefan Monnier <=
- [nongnu] scratch/rfc-mode 476bff817d 42/52: Don't turn the beginning of every page into a button, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode 6e41dcd82f 43/52: Autoload rfc-mode-browse, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode e21fb7e134 05/52: fix comment, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode c550aa0530 03/52: v1.0.0, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode ff7a36b810 44/52: Offer number at point as default in rfc-mode-read, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode 3a7afa19e7 08/52: make some functions private, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode ea349f3441 41/52: Improve doc-strings, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode 0f95e3f79b 21/52: fix mode detection regexp, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode 8587416c21 40/52: Add prefix argument support to rfc-mode-read, Stefan Monnier, 2022/10/12
- [nongnu] scratch/rfc-mode 3ef663203b 51/52: Consistently use spaces for indentation, Stefan Monnier, 2022/10/12