emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Robert Goldman <rpgoldman@sift.info>
To: emacs-orgmode@gnu.org, Carsten Dominik <dominik@science.uva.nl>
Cc: David Reitter <david.reitter@gmail.com>,
	"aquamacs-bugs@aquamacs.org Bugs" <aquamacs-bugs@aquamacs.org>,
	emacs-pretest-bug@gnu.org
Subject: Re: Org-menu "Set Items" not bound
Date: Thu, 18 Dec 2008 12:24:35 -0600	[thread overview]
Message-ID: <494A9563.4010103@sift.info> (raw)
In-Reply-To: <811717A9-751A-4D17-B1A9-25EB74F606B5@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1821 bytes --]

Backgrond:  I have been finding that the Set Tags menu command didn't
work for me (on aquamacs).  I reported that to aquamacs-bugs, but David
Reitter there found that it was an org-mode bug.  I don't believe he
reported it to orgmode list --- went to emacs-pretest-bug instead.
Here's the analysis and a proposed patch.

I just looked at the output of help-variable on org-org-menu
and I see:

	(TAGS\ and\ Properties menu-item "TAGS and Properties"
			       (keymap "TAGS and Properties"
				       (Set\ Tags menu-item "Set Tags" menu-function-16
:key-sequence nil)
				       (Change\ tag\ in\ region menu-item "Change tag in region"
menu-function-17 :key-sequence nil :enable
								(org-region-active-p))
				       (nil menu-item "--")
				       (Set\ property menu-item "Set property" menu-function-18
:key-sequence nil)
				       (Column\ view\ of\ properties menu-item "Column view of
properties" org-columns)
				       (Insert\ Column\ View\ DBlock menu-item "Insert Column View
DBlock" org-insert-columns-dblock)))

So I confirm what David reports, if you look about you'll see that the
keymap entries for "Set Tags" and "Set Property" aren't properly
initialized.

I find that the following are also not initialized:

Sparse\ trees\ open\ ARCHIVE\ trees
Cycling\ opens\ ARCHIVE\ trees
Set\ property
Record\ DONE\ time
Edit\ File\ List
Descriptive\ Links
Literal\ Links
Export\ LaTeX\ fragments\ as\ images

and all of the entries for my org agenda files.

Looking at the org.el code, I see that these correspond to entries in
the org-org-mode menu that are quoted.  For example, I see:

["Set Tags" 'org-set-tags-command t]

which doesn't work, but we also see

["Priority Down" org-shiftdown t]

which does work.

When I cut out these quotes, the menu items work for me.  I'm attaching
a patch file.




[-- Attachment #2: menu.patch --]
[-- Type: text/plain, Size: 769 bytes --]

diff --git a/lisp/org.el b/lisp/org.el
index 3df04e2..2461267 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -13342,10 +13342,10 @@ See the individual commands for more information."
      ["Priority Up" org-shiftup t]
      ["Priority Down" org-shiftdown t])
     ("TAGS and Properties"
-     ["Set Tags" 'org-set-tags-command t]
-     ["Change tag in region" 'org-change-tag-in-region (org-region-active-p)]
+     ["Set Tags" org-set-tags-command t]
+     ["Change tag in region" org-change-tag-in-region (org-region-active-p)]
      "--"
-     ["Set property" 'org-set-property t]
+     ["Set property" org-set-property t]
      ["Column view of properties" org-columns t]
      ["Insert Column View DBlock" org-insert-columns-dblock t])
     ("Dates and Scheduling"

[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

           reply	other threads:[~2008-12-18 18:28 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <811717A9-751A-4D17-B1A9-25EB74F606B5@gmail.com>]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=494A9563.4010103@sift.info \
    --to=rpgoldman@sift.info \
    --cc=aquamacs-bugs@aquamacs.org \
    --cc=david.reitter@gmail.com \
    --cc=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=emacs-pretest-bug@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).