GNU bug report logs -
#27133
26.0.50; Todo-mode multiline item highlighting is broken
Previous Next
Reported by: Stephen Berman <stephen.berman <at> gmx.net>
Date: Mon, 29 May 2017 18:21:01 UTC
Severity: normal
Found in version 26.0.50
Done: Stephen Berman <stephen.berman <at> gmx.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 27133 in the body.
You can then email your comments to 27133 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#27133
; Package
emacs
.
(Mon, 29 May 2017 18:21:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stephen Berman <stephen.berman <at> gmx.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 29 May 2017 18:21:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
If a todo-mode item contains more than one line (hard newline), then
typing `H' (`todo-toggle-item-highlighting') only highlights the first
line instead of the entire item.
[Message part 2 (text/plain, inline)]
2017-05-29 Stephen Berman <stephen.berman <at> gmx.net>
Make `todo-toggle-item-highlighting' work on multiline items
* lisp/calendar/todo-mode.el (todo-hl-line-range): New named
function, replacing an anonymous function for the sake of
`describe-variable'.
(todo-modes-set-2): Use it as buffer-local value of
hl-line-range-function and remove boundp test of this
variable, so its value is available on invoking
`todo-toggle-item-highlighting'.
[Message part 3 (text/x-patch, inline)]
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el
index 8155a4241a..7b27e7049d 100644
--- a/lisp/calendar/todo-mode.el
+++ b/lisp/calendar/todo-mode.el
@@ -6583,17 +6583,19 @@ todo-modes-set-1
(visual-line-mode)
(setq wrap-prefix (make-string todo-indent-to-here 32))))
+(defun todo-hl-line-range ()
+ "Make `todo-toggle-item-highlighting' highlight entire item."
+ (save-excursion
+ (when (todo-item-end)
+ (cons (todo-item-start)
+ (todo-item-end)))))
+
(defun todo-modes-set-2 ()
"Make some settings that apply to multiple Todo modes."
(add-to-invisibility-spec 'todo)
(setq buffer-read-only t)
(setq-local desktop-save-buffer 'todo-desktop-save-buffer)
- (when (boundp 'hl-line-range-function)
- (setq-local hl-line-range-function
- (lambda() (save-excursion
- (when (todo-item-end)
- (cons (todo-item-start)
- (todo-item-end))))))))
+ (setq-local hl-line-range-function 'todo-hl-line-range))
(defun todo-modes-set-3 ()
"Make some settings that apply to multiple Todo modes."
[Message part 4 (text/plain, inline)]
In GNU Emacs 26.0.50 (build 29, x86_64-pc-linux-gnu, GTK+ Version 3.22.8)
of 2017-05-28 built on rosalinde
Repository revision: 288b3ca2e519903653b9bc88d281ecd9f6b162a4
Windowing system distributor 'The X.Org Foundation', version 11.0.11901000
Reply sent
to
Stephen Berman <stephen.berman <at> gmx.net>
:
You have taken responsibility.
(Mon, 29 May 2017 18:33:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Stephen Berman <stephen.berman <at> gmx.net>
:
bug acknowledged by developer.
(Mon, 29 May 2017 18:33:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 27133-done <at> debbugs.gnu.org (full text, mbox):
On Mon, 29 May 2017 20:19:57 +0200 Stephen Berman <stephen.berman <at> gmx.net> wrote:
> If a todo-mode item contains more than one line (hard newline), then
> typing `H' (`todo-toggle-item-highlighting') only highlights the first
> line instead of the entire item.
Fixed in commit ed222c502b.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 27 Jun 2017 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 54 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.