help-gnu-emacs
[Top][All Lists]
Advanced

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

Menu functionality


From: lisa-asket
Subject: Menu functionality
Date: Sat, 10 Jul 2021 07:59:21 +0200 (CEST)

>From: Jean Louis <bugs@gnu.support>
>To: lisa-asket@perso.be
>Subject: Re: Menu functionality
>Date: 10/07/2021 07:41:38 Europe/Paris
>Cc: help-gnu-emacs@gnu.org

>* lisa-asket@perso.be <lisa-asket@perso.be> [2021-07-10 08:07]:
>> All help questions are personalised, don't you think?

> Have done as follows.  In the last one I used `menu-item`.  I am new
> to this and only been playing with menus a couple of days. Criticism
> could do some good.

>I am also new to this. Your criticism need to provide some help to
>reader or lacks usefulness, it should not tend to blaming.



Who did I blame exactly? Never said my code was great.



Have been trying to make a submenu.  To start I used your easy-menu way



(defun my-easy-menu ()
  ""
  (easy-menu-define rupal global-map "Rupal"
    (list "Rupal"
      ["Entry Sweep" entry-sweep t]
      ["Hide Entry"  hide-entry t]
      ["Show Entry"  show-entry t]
      ["Hide Body"   hide-body t]
      ("Sub Menu"
       ["Texinfo Pdf" texinfo-pdf t]
       ["Texinfo Htm" texinfo-htm t]) )) )



Have been able to add some help when using the mouse using



(define-key global-map [menu-bar diamer diammer-htm]
  '(menu-item "Hide Body" outline-hide-body
          :help "Hide all body lines in buffer"))



rather than keeping with the following



(define-key global-map [menu-bar diamer diamer-hide-body]
  '("Hide Body" . hide-body))




>Learning will go slow through Emacs Lisp manual only and people need
>to interact with others to get more or better, mailing list is
>attended by helpful people.



I think many could learn from this as information en making working menus

is scant.







reply via email to

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