Adding items to easymenus
flag
Messages 1 - 10 of 911 - Collapse all
/groups/adfetch?adid=x_dsMhIAAACvmfG_xlsZeqTD-bnZKhCAA-seRgWUrY1Re68AkUbKNw
Adding items to easymenus  
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
1.  Martin Boyer  
View profile  
 More options Oct 1 1994, 8:04 am
Newsgroups: gnu.emacs.help
From: ga...@ireq-robot.hydro.qc.ca (Martin Boyer)
Date: Fri, 30 Sep 1994 18:25:40 GMT
Local: Fri, Sep 30 1994 6:25 pm
Subject: Adding items to easymenus
In Emacs 19.27, how can I add an item to the top of a menu defined
with easy-menu-define?

In other words, given a menu defined as:

(easy-menu-define 'ignored Some-Map "Documentation"
   '("Test"
     ["Beep" keyboard-quit t]))

How can I get the proper keymap out of "Some-Map" and "Test"?

My goal is to add an item using (approximately) the following syntax:

(define-key (F Some-Map Test) [symbol-1] '("Before Beep" . keyboard-quit))

I am actually trying to add an item to the AUC TeX menu.  I do not
want to modify or rewrite the AUC TeX elisp code.

Thank you.

--
Martin Boyer                            mbo...@ireq-robot.hydro.qc.ca
Division Robotique                      mbo...@ireq-robot.uucp
Institut de recherche d'Hydro-Quebec    +1 514 652-8412
Varennes, QC, Canada   J3X 1S1


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
2.  Martin Boyer  
View profile  
 More options Oct 1 1994, 11:22 pm
Newsgroups: gnu.emacs.help
From: ga...@ireq-robot.hydro.qc.ca (Martin Boyer)
Date: Sat, 1 Oct 1994 13:45:04 GMT
Local: Sat, Oct 1 1994 1:45 pm
Subject: Re: Adding items to easymenus

>>>>> I wrote:
>In Emacs 19.27, how can I add an item to the top of a menu defined
>with easy-menu-define?

I found a solution, which works provided the code is executed while
the menu to be changed (in this example, the AUC TeX menu) is
displayed on the menubar:

(define-key
  (key-binding (apply 'vector
                      'menu-bar
                      (mapcar 'intern '("AUC TeX"))))
  [beep-for-nothing]
  '("Beep" . keyboard-quit))

--
Martin Boyer                            mbo...@ireq-robot.hydro.qc.ca
Division Robotique                      mbo...@ireq-robot.uucp
Institut de recherche d'Hydro-Quebec    +1 514 652-8412
Varennes, QC, Canada   J3X 1S1


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Help with menu in emacs 19  
1.  TJ Phan  
View profile  
 More options Oct 1 1994, 8:45 am
Newsgroups: comp.emacs, gnu.emacs.help
Followup-To: comp.emacs
From: p...@aur.alcatel.com (TJ Phan)
Date: 30 Sep 1994 21:17:40 GMT
Local: Fri, Sep 30 1994 9:17 pm
Subject: Help with menu in emacs 19

I'm looking for some code that would display files in a directory in a
pull down menu. When the menu item is selected, a certain function is
called to operate on the selected file. Any pointer to such piece of
code or example of how to write such code is greatly appreciated.

--
                             _\\|//_
                             ( O-O )
--------------------------o00--(_)--00o------------------------------
* T J Phan                                     p...@aur.alcatel.com *
* Member Technical Staff,                                           *
* R&D Core Hardware Design Engineering                              *
* Alcatel Network Systems                                           *
*                                                                   *
* My opinions are not Alcatel's.                                    *
--------------------------o00--(_)--00o------------------------------
                            _( O-O )_
                              //|\\


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rmail inbox mystery  
1.  Allan Gottlieb  
View profile  
 More options Oct 1 1994, 8:53 am
Newsgroups: gnu.emacs.help
From: gottl...@allan.ultra.nyu.edu (Allan Gottlieb)
Date: 30 Sep 1994 17:11:51 GMT
Local: Fri, Sep 30 1994 5:11 pm
Subject: Re: Rmail inbox mystery
You want to execute

M-x set-rmail-inbox-list

allan gottlieb

In article <36h2r0E...@uni-erlangen.de> te...@cip.informatik.uni-erlangen.de (Terry Stroup) writes:

   The Emacs manual for version 19.25 informs me:

   `FCC'
        This field contains the name of one file (in system mail file
        format) to which a copy of the message should be appended when the
        message is sent.  Do not output directly into an Rmail file with
        FCC; instead, output to an inbox file and "get new mail" from that
        inbox file into the Rmail file.  *Note Rmail Inbox::.

   The page on Rmail Inbox helps with terminology, but it doesn't say how
   to "get new mail" from the file named in mail-archive-file-name, which
   I shall call the FCC repository below.  (It isn't explained either,
   why things are set up this roundabout way, but that's another
   question.)  Using C-h k g in an Rmail buffer got me the following
   information:

      rmail-get-new-mail:
      Move any new mail from this RMAIL file's inbox files.
      The inbox files can be specified with the file's Mail: option.  The
      variable `rmail-primary-inbox-list' specifies the inboxes for your
      primary RMAIL file if it has no Mail: option.  By default, this is
      your /usr/spool/mail/$USER.

      You can also specify the file to get new mail from.  In this case, the
      file of new mail is not changed or deleted.  Noninteractively, you can
      pass the inbox file name as an argument.  Interactively, a prefix
      argument causes us to read a file name and use that file as the inbox.

   I have two (multi-part) questions:

   1) Is there an easy, recommended way automatically to "get new mail"
   from the FCC repository into an Rmail file?  Automatically means -- I
   think -- each time it is visited.  Or is there some good reason why I
   should want to do that by hand?  How do I then empty the FCC
   repository?  Just remove it?  Do I have to be careful somehow not to
   loose all my FCC'ed mail if the system crashes?

   2) I have not been able to discover from the Emacs manual -- nor from
   staring at the code for rmail-get-new-mail -- what it means for a file
   to have a Mail: option.  What does that mean?  How does a file get
   such a thing?

   Please respond by mail.

   Many thanks,
   Terry Stroup


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
2.  Jack Vinson  
View profile  
 More options Oct 1 1994, 4:15 pm
Newsgroups: gnu.emacs.help
From: Jack Vinson <vin...@unagi.cis.upenn.edu>
Date: 30 Sep 1994 18:02:09 GMT
Local: Fri, Sep 30 1994 6:02 pm
Subject: Re: Rmail inbox mystery

>>>>> "TS" == Terry Stroup <te...@cip.informatik.uni-erlangen.de> writes:

 TS> 1) Is there an easy, recommended way automatically to "get new mail"
 TS> from the FCC repository into an Rmail file?  Automatically means -- I
 TS> think -- each time it is visited.  Or is there some good reason why I
 TS> should want to do that by hand?  How do I then empty the FCC
 TS> repository?  Just remove it?  Do I have to be careful somehow not to
 TS> loose all my FCC'ed mail if the system crashes?

The keystroke that the info pages talk about is simply C-ug (prefix
argument to rmail-get-new-mail) which will then prompt you for a file name.
Unfortunately, this does not remove the messages from that mail file.  One
thing you can do is to simply add the FCC repository to your
rmail-primary-inbox-list in which case Rmail will read mail from your
repository always when it gets new mail.

 TS> 2) I have not been able to discover from the Emacs manual -- nor from
 TS> staring at the code for rmail-get-new-mail -- what it means for a file
 TS> to have a Mail: option.  What does that mean?  How does a file get
 TS> such a thing?

This is a Babyl option.  I don't know where they are all described, but
basically, if you have the line "Mail: filename" in the beginning of the
babyl file (RMAIL), then it will read mail from there.  You can do this
with set-rmail-inbox-list, but I wouldn't really recommend it for you RMAIL
file.  

--
Jack Vinson                                     Off www.cern.ch...
vin...@unagi.cis.upenn.edu                      Through gopher.umn.edu
http://www.cis.upenn.edu/~vinson/home.html      Around ftp.indiana.edu
Philadelphia, PA                                Nothin' but 'Net - Pete Bretz


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ELisp question: message with kind of varargs?  
1.  Morten Welinder  
View profile  
 More options Oct 1 1994, 10:48 am
Newsgroups: gnu.emacs.help
From: te...@diku.dk (Morten Welinder)
Date: Fri, 30 Sep 1994 14:35:19 GMT
Local: Fri, Sep 30 1994 2:35 pm
Subject: Re: ELisp question: message with kind of varargs?

bouba...@cenatls.cena.dgac.fr (Heddy BOUBAKER) writes:
> hi Emacs lisp gurus,
> I'm trying to define a function which take a variable number of arguments
> (&rest) and pass these args to another function taking a variable number
> of args too. How does this can be done?

Use apply:

apply: a built-in function.

Call FUNCTION with our remaining args, using our last arg as list of args.
Thus, (apply '+ 1 2 '(3 4)) returns 10.

--

Morten

------------------------------------------------------------------------
For information on the free Republic of Macedonia, ftp to ftp.uts.edu.au
Australia and check out the /pub/MAKEDON directory.
------------------------------------------Morten Welinder, te...@diku.dk


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
OS/2 19.27 problem  
1.  Marc Auslander  
View profile  
 More options Oct 1 1994, 10:52 am
Newsgroups: gnu.emacs.help
From: m...@watson.ibm.com (Marc Auslander)
Date: 30 Sep 1994 15:43:00 GMT
Subject: OS/2 19.27 problem
Can any one tell me who did the 19.27 OS/2 port on hobbes?

--

Marc Auslander   <m...@watson.ibm.com>   914 784-6699  (Tieline 863 Fax x6306)


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Help compiling calc-2.02  
1.  Domenic Larosa  
View profile  
 More options Oct 1 1994, 11:10 am
Newsgroups: compe.emacs, gnu.emacs.help
From: lar...@xylogics.com (Domenic Larosa)
Date: 30 Sep 1994 15:03:34 GMT
Local: Fri, Sep 30 1994 3:03 pm
Subject: Help compiling calc-2.02

When trying to compile calc-2.02, I got the following error.  I am using
Emacs 19.25 I believe.  Anyone know what is going wrong?  Email
would be best.

Domenic LaRosa
lar...@xylogics.com

This is contents of the *compilation* buffer.

cd ~/bin/emacs/calc-2.02/
make -k compile
exec make -k compile
make -k compile
emacs -batch -l calc-maint.elc -f calc-compile
File calc.el is up to date.
Wrong type argument: arrayp, (keymap [nil nil nil nil nil nil nil nil nil calc-
roll-down calc-over calc-missing-key nil calc-enter nil nil nil nil nil nil nil
 nil nil calc-missing-key nil calc-missing-key nil (keymap (119 . calc-missing-
key) (107 . calc-missing-key) (13 . calc-last-args-stub) (9 . calc-roll-up) (37
 . calc-percent)) nil nil nil calc-missing-key calc-enter calc-missing-key calc
-auto-algebraic-entry calcDigit-start calc-auto-algebraic-entry calc-mod calc-i
nv calc-algebraic-entry calc-missing-key calc-missing-key calc-times calc-plus
calc-missing-key calc-minus calcDigit-start calc-divide calcDigit-start calcDig
it-start calcDigit-start calcDigit-start calcDigit-start calcDigit-start calcDi
git-start calcDigit-start calcDigit-start calcDigit-start calc-missing-key calc
-missing-key calc-missing-key calc-missing-key calc-missing-key calc-help calcD
igit-start calc-missing-key calc-missing-key calc-missing-key calc-missing-key
calc-missing-key calc-missing-key calc-missing-key calc-missing-key calc-missin
g-key calc-missing-key calc-missing-key calc-missing-key calc-missing-key calc-
missing-key undefined calc-missing-key calc-missing-key calc-missing-key calc-m
issing-key calc-missing-key calc-missing-key calc-missing-key undefined calc-mi
ssing-key (keymap (63 . calc-shift-Y-prefix-help)) calc-missing-key calc-missin
g-key calc-missing-key calc-missing-key calc-power calcDigit-start calc-missing
-key calc-missing-key calc-missing-key calc-missing-key calc-missing-key calcDi
git-start calc-missing-key calc-missing-key calc-missing-key calc-info calc-mis
sing-key calc-missing-key undefined calc-missing-key calc-change-sign calc-miss
ing-key calc-missing-key calc-quit calc-missing-key calc-missing-key calc-missi
ng-key calc-missing-key calc-missing-key calc-missing-key calc-missing-key calc
-missing-key calc-missing-key calc-missing-key calc-missing-key calc-missing-ke
y calc-missing-key nil])
--

Domenic LaRosa
lar...@xylogics.com


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
2.  Mike Karafotis  
View profile  
 More options Oct 1 1994, 11:27 am
Newsgroups: compe.emacs, gnu.emacs.help
From: karaf...@mickey.hq.ensco.com (Mike Karafotis)
Date: 30 Sep 1994 19:07:04 GMT
Local: Fri, Sep 30 1994 7:07 pm
Subject: Re: Help compiling calc-2.02

%% Domenic Larosa writes:

  domenic> When trying to compile calc-2.02, I got the following error.
  domenic> I am using Emacs 19.25 I believe.  Anyone know what is going
  domenic> wrong?

Well, I've had the same problem, and I think I've narrowed it down to a
(please forgive me, I do not know lisp) aset and aref functions applied to
the calc-mode-map keymap.  Now, it is my understanding that a keymap is
a list not an array, and aset and aref are array functions.   How do you
get around it?  I don't know, but a while ago I found calc-2.02c:
            /prep.ai.mit.edu:pub/gnu/calc-2.02.tar.Z

I'm not sure which is the most recent version though, since mine doesn't
let you use keypad mode.

-- Mike
***************************************************************************
Michael Karafotis B.S.E.E.      "I am not a number, I am a free man!"
karaf...@enet.hq.ensco.com     Ensco Inc.              - Patrick McGoohan
phone: (703) 321-4629           fax: (703) 321-7759
***************************************************************************


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
3.  Ethan Bradford  
View profile  
 More options Oct 1 1994, 5:50 pm
Newsgroups: compe.emacs, gnu.emacs.help
From: eth...@ptolemy.phys.washington.edu (Ethan Bradford)
Date: 01 Oct 1994 04:43:20 GMT
Local: Sat, Oct 1 1994 4:43 am
Subject: Re: Help compiling calc-2.02
calc-2.02 doesn't work in emacs-19.  You need calc-2.02c, which is
available on prep.ai.mit.edu.

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google