all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: 27609@debbugs.gnu.org
Subject: bug#27609: 26.0.50; Todo-mode bugs with hidden headers, etc.
Date: Fri, 07 Jul 2017 15:29:57 +0200	[thread overview]
Message-ID: <87d19cjrxm.fsf@rosalinde> (raw)

I found several bugs involving todo-mode hidden item date-time headers,
and in the course of debugging these found several other unrelated bugs.
I've fixed all of these and, being the maintainer of todo-mode.el, I
will push the fixes to master, together with accompanying tests I've
written.  This bug report is for reference, so I'll just list the bugs
without providing recipes to reproduce them (the tests more or less
embody recipes).

These are the bugs related to hidden headers:

- With date-time headers hidden (by typing `h' todo-toggle-item-header),
  relocating an item by changing its priority (`r', `l', `#'), moving it
  to another category (`m'), the done items section (`d') or archive (`A
  d'), undoing or unarchiving it (`u')) results in its date-time header
  being shown.
  
- With date-time headers hidden, if a new item is inserted, its
  date-time header is not hidden.
  
- With date-time headers hidden, `h' in an empty category fails to show
  the headers (but when the headers are shown, `h' in an empty category
  hides them).
  
- When date-time headers are hidden, typing `p' (todo-previous-item)
  moves point to the end of the item two items higher; it should move to
  the beginning of the next higher item.  And with item highlighting
  also enabled (by typing `H'), after `p' the item below point is
  highlighted: that's the correct item but it appears to be incorrect,
  since point is incorrectly not on that item.

These are the unrelated bugs:

- Typing `C *' (todo-mark-category) corrupts an internal data structure,
  resulting in incorrect item counts (shown by typing `F c' to display
  the table of categories in the file).  Also, when there are no todo
  items in the category and the done items are shown, typing `C *'
  raises a wrong-type-argument error.

- Typing `*' to mark an item and then `m' to move it to a preceding
  category results in an infinite loop.
  
- Typing `r' (todo-raise-item-priority) or `l' (todo-lower-item-priority)
  on a done item or an empty line raises a wrong-type-argument error;
  they should be noops.

- Typing `u' (todo-unarchive-items) on an archived item to restore it as
  a done item in its category puts point on the done items separator
  instead of on the restored item.

- Typing `g' (todo-revert-buffer) puts point at (point-max) and makes
  the category buffer writable; point should stay put and the category
  should be read-only.

Steve Berman

In GNU Emacs 26.0.50 (build 10, x86_64-pc-linux-gnu, GTK+ Version 3.22.8)
 of 2017-07-07 built on rosalinde
Repository revision: 579a9ee22e0decf7bed8aff1751c5b3d147b921f





             reply	other threads:[~2017-07-07 13:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-07 13:29 Stephen Berman [this message]
2017-07-07 21:28 ` bug#27609: 26.0.50; Todo-mode bugs with hidden headers, etc Stephen Berman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d19cjrxm.fsf@rosalinde \
    --to=stephen.berman@gmx.net \
    --cc=27609@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.