unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: lisa-asket@perso.be
To: "Jean Louis" <bugs@gnu.support>
Cc: help-gnu-emacs@gnu.org
Subject: Menu functionality
Date: Sat, 10 Jul 2021 07:59:21 +0200 (CEST)	[thread overview]
Message-ID: <ea-mime-60e93739-2b76-65cecb83@www-7.mailo.com> (raw)
In-Reply-To: <YOkzEr/lUiiNphKu@protected.localdomain>

>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.







  parent reply	other threads:[~2021-07-10  5:59 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-09 11:55 Menu functionality lisa-asket
2021-07-09 12:14 ` tomas
2021-07-09 23:25   ` lisa-asket
2021-07-10  2:47     ` Jean Louis
2021-07-10  3:09       ` lisa-asket
2021-07-10  3:48         ` lisa-asket
2021-07-10  4:07           ` lisa-asket
2021-07-10  4:14           ` Jean Louis
2021-07-10  4:36             ` lisa-asket
2021-07-10  4:39             ` lisa-asket
2021-07-10  4:56               ` Jean Louis
2021-07-10  5:06                 ` lisa-asket
2021-07-10  5:41                   ` Jean Louis
2021-07-10  5:52                     ` Beauty of Emacs Lisp Jean Louis
2021-07-10  6:17                       ` Christopher Dimech
2021-07-10  5:59                     ` lisa-asket [this message]
2021-07-10 17:44                       ` Menu functionality Jean Louis
2021-07-10 19:21                         ` lisa-asket

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=ea-mime-60e93739-2b76-65cecb83@www-7.mailo.com \
    --to=lisa-asket@perso.be \
    --cc=bugs@gnu.support \
    --cc=help-gnu-emacs@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.
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).