emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Insignificant typo re: `C-c / T' coded cases?


From: Brady Trainor
Subject: [O] Insignificant typo re: `C-c / T' coded cases?
Date: Sun, 20 Apr 2014 16:31:12 -0700
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0


Org-mode version 8.2.5h (8.2.5h-106-gfaa170-elpa @ c:/Users/user-name/AppData/Roaming/.emacs.d/elpa/org-20140414/)

TLDR version: Should `?T' not appear twice?

 ____________
/

(defun org-sparse-tree (&optional arg type)
...
(cond
...
 ((equal ans ?T)
  (org-show-todo-tree '(4)))
 ((member ans '(?T ?m))
  (call-interactively 'org-match-sparse-tree))
 ((member ans '(?p ?P))
...

\____________


Longer version: (if my confusion was not clear yet.)

In the above code from org.el, I don't understand what the (?T ?m) pair are doing, as there is a ?T in the previous block.

Wouldn't the second appearance of T never be checked for? If I press T, I should just get
    "Show entries with a specific TODO keyword."
and not
    "Show entries selected by a tags/property match."
which the m would give. (Sentences from describe function.)

Am I reading the code correctly?



Brady




reply via email to

[Prev in Thread] Current Thread [Next in Thread]