all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Cross <theophilusx@gmail.com>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: Emacs-devel@gnu.org, Ben Key <bkey76@gmail.com>
Subject: Re: Modify menu-bar help
Date: Sun, 27 Feb 2011 09:27:08 +1100	[thread overview]
Message-ID: <AANLkTing_RUGV=nozyVy0sSjg-8qGww83AfQLZR7FN6W@mail.gmail.com> (raw)
In-Reply-To: <4D68D483.7010401@swipnet.se>

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

On Sat, Feb 26, 2011 at 9:22 PM, Jan Djärv <jan.h.d@swipnet.se> wrote:

>
>
> Tim Cross skrev 2011-02-26 00.58:
>
>
>> I'm a bit surprised that the same problem seems to occur under the
>> NextStep OS
>> - while I'm not expert here and could have things confused, it looked to
>> me
>> like the ns version added menu 'buttons' when I scanned the menu-bar.el
>> file.
>>
>>
> Menu-bar.el has nothing to do with how things are implemented at the
> toolkit level.  Looking at it gives no clue what so ever.
>
>        Jan D.
>
> This was my mis-reading/remembering of the code in menu-bar.el. I thought
there was code in menu-bar.el that was adding 'action' menus 'buttons' at
the top level in the ns port, but looking at it again, I realise this is for
the GNUStep version. My (flawed) logic was that if menu-bar.el is adding top
level action buttons for a version, then the tookit used for that version
must allow it. I think my logic is OK, it was my scanning of the code that
led to the wrong conclusion! The code in quesiton was
(if (not (featurep 'ns))
    ;; Force Help item to come last, after the major mode's own items.
    ;; The symbol used to be called `help', but that gets confused with the
    ;; help key.
    (setq menu-bar-final-items '(help-menu))
  (if (eq system-type 'darwin)
      (setq menu-bar-final-items '(buffer services help-menu))
    (setq menu-bar-final-items '(buffer services hide-app quit))
    ;; Add standard top-level items to GNUstep menu.
    (define-key global-map [menu-bar quit]
      `(menu-item ,(purecopy "Quit") save-buffers-kill-emacs
                  :help ,(purecopy "Save unsaved buffers, then exit")))
    (define-key global-map [menu-bar hide-app]
      `(menu-item ,(purecopy "Hide") ns-do-hide-emacs
                  :help ,(purecopy "Hide Emacs"))))
  (define-key global-map [menu-bar services] ; set-up in ns-win
    (cons (purecopy "Services") (make-sparse-keymap "Services"))))

Tim

[-- Attachment #2: Type: text/html, Size: 2720 bytes --]

  reply	other threads:[~2011-02-26 22:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-25 20:33 Modify menu-bar help Ben Key
2011-02-25 23:58 ` Tim Cross
2011-02-26  1:04   ` Tim Cross
2011-02-26 10:21     ` Jan Djärv
2011-02-26 10:22   ` Jan Djärv
2011-02-26 22:27     ` Tim Cross [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-02-24 23:16 Tim Cross
2011-02-25  0:52 ` Drew Adams
2011-02-25  5:14   ` Tim Cross
2011-02-25  7:15     ` Drew Adams
2011-02-25  9:31       ` Eli Zaretskii
2011-02-25  9:30     ` Eli Zaretskii
2011-02-25 10:03     ` Jan Djärv
2011-02-25 14:49       ` Tim Cross
2011-02-25 15:29         ` Drew Adams
2011-02-25 15:31         ` Eli Zaretskii
2011-02-25 15:38           ` Drew Adams
2011-02-25 15:54             ` Eli Zaretskii
2011-02-25 17:08               ` Jan Djärv
2011-02-25 17:22                 ` Drew Adams
2011-02-25  9:27   ` Eli Zaretskii

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='AANLkTing_RUGV=nozyVy0sSjg-8qGww83AfQLZR7FN6W@mail.gmail.com' \
    --to=theophilusx@gmail.com \
    --cc=Emacs-devel@gnu.org \
    --cc=bkey76@gmail.com \
    --cc=jan.h.d@swipnet.se \
    /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.