all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Brady Trainor <algebrat@uw.edu>
To: emacs-orgmode@gnu.org
Subject: Insignificant typo re: `C-c / T' coded cases?
Date: Sun, 20 Apr 2014 16:31:12 -0700	[thread overview]
Message-ID: <lj1lc3$aqj$1@ger.gmane.org> (raw)


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	other threads:[~2014-04-20 23:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-20 23:31 Brady Trainor [this message]
2014-04-21  7:26 ` Insignificant typo re: `C-c / T' coded cases? Nicolas Goaziou

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='lj1lc3$aqj$1@ger.gmane.org' \
    --to=algebrat@uw.edu \
    --cc=emacs-orgmode@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.