emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tony E. Bennett <tony.e.bennett@gmail.com>
To: emacs-orgmode@gnu.org
Subject: XEmacs complains about a few define-key sequences in org-mouse.el
Date: Mon, 30 Mar 2009 16:45:54 -0400	[thread overview]
Message-ID: <m27i2620zh.fsf@gmail.com> (raw)

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


XEmacs complains about a few define-key sequences in org-mouse.el.
For example:

  (define-key org-agenda-keymap [C-mouse-4] 'org-agenda-earlier)

These sequences are using a GNU emacs form that XEmacs does not support.
I've patched it like this, which stopped the errors at least:

  (define-key org-agenda-keymap (if (featurep 'xemacs) [(control mouse-4)] [C-mouse-4]) 'org-agenda-earlier)

Here is full set:



[-- Attachment #2: org-mouse.pat --]
[-- Type: application/octet-stream, Size: 2634 bytes --]

*** org-mouse.el	2009/03/30 18:15:28	1.1
--- org-mouse.el	2009/03/30 18:19:03
***************
*** 909,918 ****
         (define-key org-mode-map [mouse-3] 'org-mouse-show-context-menu))
       (define-key org-mode-map [down-mouse-1] 'org-mouse-down-mouse)
       (when (memq 'context-menu org-mouse-features)
!        (define-key org-mouse-map [C-drag-mouse-1] 'org-mouse-move-tree)
!        (define-key org-mouse-map [C-down-mouse-1] 'org-mouse-move-tree-start))
       (when (memq 'yank-link org-mouse-features)
!        (define-key org-mode-map [S-mouse-2] 'org-mouse-yank-link)
         (define-key org-mode-map [drag-mouse-3] 'org-mouse-yank-link))
       (when (memq 'move-tree org-mouse-features)
         (define-key org-mouse-map [drag-mouse-3] 'org-mouse-move-tree)
--- 909,918 ----
         (define-key org-mode-map [mouse-3] 'org-mouse-show-context-menu))
       (define-key org-mode-map [down-mouse-1] 'org-mouse-down-mouse)
       (when (memq 'context-menu org-mouse-features)
!        (define-key org-mouse-map (if (featurep 'xemacs) [(control drag-mouse-1)] [C-drag-mouse-1]) 'org-mouse-move-tree)
!        (define-key org-mouse-map (if (featurep 'xemacs) [(control down-mouse-1)] [C-down-mouse-1]) 'org-mouse-move-tree-start))
       (when (memq 'yank-link org-mouse-features)
!        (define-key org-mode-map (if (featurep 'xemacs) [(shift mouse-2)] [S-mouse-2]) 'org-mouse-yank-link)
         (define-key org-mode-map [drag-mouse-3] 'org-mouse-yank-link))
       (when (memq 'move-tree org-mouse-features)
         (define-key org-mouse-map [drag-mouse-3] 'org-mouse-move-tree)
***************
*** 1132,1139 ****
         (if (featurep 'xemacs) [button3] [mouse-3])
         'org-mouse-show-context-menu)
       (define-key org-agenda-keymap [down-mouse-3] 'org-mouse-move-tree-start)
!      (define-key org-agenda-keymap [C-mouse-4] 'org-agenda-earlier)
!      (define-key org-agenda-keymap [C-mouse-5] 'org-agenda-later)
       (define-key org-agenda-keymap [drag-mouse-3]
         '(lambda (event) (interactive "e")
  	  (case (org-mouse-get-gesture event)
--- 1132,1139 ----
         (if (featurep 'xemacs) [button3] [mouse-3])
         'org-mouse-show-context-menu)
       (define-key org-agenda-keymap [down-mouse-3] 'org-mouse-move-tree-start)
!      (define-key org-agenda-keymap (if (featurep 'xemacs) [(control mouse-4)] [C-mouse-4]) 'org-agenda-earlier)
!      (define-key org-agenda-keymap (if (featurep 'xemacs) [(control mouse-5)] [C-mouse-5]) 'org-agenda-later)
       (define-key org-agenda-keymap [drag-mouse-3]
         '(lambda (event) (interactive "e")
  	  (case (org-mouse-get-gesture event)

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



thanks

--tony

[-- Attachment #4: 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:[~2009-03-30 21:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-30 20:45 Tony E. Bennett [this message]
2009-03-31 16:28 ` XEmacs complains about a few define-key sequences in org-mouse.el Carsten Dominik
2009-04-03 18:52 ` Andreas Röhler

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=m27i2620zh.fsf@gmail.com \
    --to=tony.e.bennett@gmail.com \
    --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 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).