[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pdf-tools 154e31dc3c 4/8: Display a header line when editi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pdf-tools 154e31dc3c 4/8: Display a header line when editing annotation contents |
Date: |
Sat, 10 Jun 2023 16:02:07 -0400 (EDT) |
branch: elpa/pdf-tools
commit 154e31dc3cee2cfdd62e5ff11f17b5addee18f93
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Vedang Manerikar <ved.manerikar@gmail.com>
Display a header line when editing annotation contents
---
lisp/pdf-annot.el | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/lisp/pdf-annot.el b/lisp/pdf-annot.el
index 3b6359342e..abd9814c05 100644
--- a/lisp/pdf-annot.el
+++ b/lisp/pdf-annot.el
@@ -1453,9 +1453,9 @@ annotation's contents and otherwise `org-mode'."
"Active when editing the contents of annotations."
:group 'pdf-annot
(when pdf-annot-edit-contents-minor-mode
- (message "%s"
- (substitute-command-keys
- "Press \\[pdf-annot-edit-contents-commit] to commit your
changes, \\[pdf-annot-edit-contents-abort] to abandon them."))))
+ (setq-local header-line-format
+ (substitute-command-keys "\
+Press \\[pdf-annot-edit-contents-commit] to commit your changes,
\\[pdf-annot-edit-contents-abort] to abandon them."))))
(put 'pdf-annot-edit-contents-minor-mode 'permanent-local t)
@@ -1510,11 +1510,8 @@ At any given point of time, only one annotation can be
in edit mode."
(pdf-annot-edit-contents-finalize 'ask)))
(unless (buffer-live-p pdf-annot-edit-contents--buffer)
(setq pdf-annot-edit-contents--buffer
- (with-current-buffer (get-buffer-create
- (format "*Edit Annotation %s*"
- (buffer-name)))
- (pdf-annot-edit-contents-minor-mode 1)
- (current-buffer))))
+ (get-buffer-create
+ (format "*Edit Annotation %s*" (buffer-name)))))
(with-current-buffer pdf-annot-edit-contents--buffer
(let ((inhibit-read-only t))
(erase-buffer)
@@ -1522,6 +1519,7 @@ At any given point of time, only one annotation can be in
edit mode."
(set-buffer-modified-p nil))
(setq pdf-annot-edit-contents--annotation a)
(funcall pdf-annot-edit-contents-setup-function a)
+ (pdf-annot-edit-contents-minor-mode 1)
(current-buffer))))
(defun pdf-annot-edit-contents (a)
- [nongnu] elpa/pdf-tools updated (a9c9a12c3e -> 70865fb38d), ELPA Syncer, 2023/06/10
- [nongnu] elpa/pdf-tools 70865fb38d 8/8: Fix: Keep cursor on the same line when reopening list of annots, ELPA Syncer, 2023/06/10
- [nongnu] elpa/pdf-tools fb6616c15e 2/8: Add an FAQ on re-compiling epdfinfo, ELPA Syncer, 2023/06/10
- [nongnu] elpa/pdf-tools c451c0e3db 1/8: Auto enable pdf-view-dark-minor-mode if the theme is dark, ELPA Syncer, 2023/06/10
- [nongnu] elpa/pdf-tools 154e31dc3c 4/8: Display a header line when editing annotation contents,
ELPA Syncer <=
- [nongnu] elpa/pdf-tools 0822f438de 7/8: Update NEWS with recent contributions, ELPA Syncer, 2023/06/10
- [nongnu] elpa/pdf-tools 5b58c6bcc3 3/8: Add command and submenu to switch between selection styles, ELPA Syncer, 2023/06/10
- [nongnu] elpa/pdf-tools 6a86b29140 5/8: Use 'C-c C-k' to abandon edits of annotation contents, ELPA Syncer, 2023/06/10
- [nongnu] elpa/pdf-tools 97cffdd1b2 6/8: Allow creation of markup annotations without a text selection, ELPA Syncer, 2023/06/10