[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] scratch/rfc-mode 476bff817d 42/52: Don't turn the beginning of
From: |
Stefan Monnier |
Subject: |
[nongnu] scratch/rfc-mode 476bff817d 42/52: Don't turn the beginning of every page into a button |
Date: |
Wed, 12 Oct 2022 16:29:21 -0400 (EDT) |
branch: scratch/rfc-mode
commit 476bff817db374f9b02b0ae6813442efbf506fb1
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Nicolas Martyanoff <khaelin@gmail.com>
Don't turn the beginning of every page into a button
---
rfc-mode.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/rfc-mode.el b/rfc-mode.el
index d6b4e77573..8710c66187 100644
--- a/rfc-mode.el
+++ b/rfc-mode.el
@@ -264,11 +264,12 @@ Returns t if section is found, nil otherwise."
(let ((start (match-beginning 0))
(end (match-end 0))
(number (string-to-number (match-string 1))))
- (make-text-button start end
- 'action `(lambda (button)
- (rfc-mode-read ,number))
- 'help-echo (format "Read RFC %d" number)
- 'follow-link t)
+ (unless (= start (line-beginning-position))
+ (make-text-button start end
+ 'action `(lambda (button)
+ (rfc-mode-read ,number))
+ 'help-echo (format "Read RFC %d" number)
+ 'follow-link t))
(goto-char end)))))))
(defun rfc-mode-header-start ()
- [nongnu] scratch/rfc-mode 088d81002e 04/52: make checkdoc happy, (continued)
- [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, 2022/10/12
- [nongnu] scratch/rfc-mode 476bff817d 42/52: Don't turn the beginning of every page into a button,
Stefan Monnier <=
- [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
- [nongnu] scratch/rfc-mode b885d6bd2b 50/52: Fix completing-read default argument, Stefan Monnier, 2022/10/12