🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189293

getting word at point into a variable

#189293
From: Lynn D Newton
Date: Tue, 19 Mar 1991 11:22
29 lines
1996 bytes
After 3 years as a devoted user of emacs I've finally gotten around to
making a diligent effort to learn elisp, and in the process I'm
translating all my named macros into real defuns, and improving most
of them in the process. I started with 80-90 of them, and I'm down to
the last 4 or 5. (Yay for me.) However ...

There's something I haven't gotten to yet and haven't quite figured
out how to do: I have two functions where I need to put the word at
point into a variable because that word needs to be the argument to a
command. The functions allow me to put my cursor on a word and change
the background or foreground colors to that word. How do I put point
before the word blue (for example) and make that word the argument to
x-background-color (or x-foreground-color)?

Please don't reply that I should buy and read the manual (the usual
response I get from a lot of people), unless you can cite a page. I
have it, including in texinfo format, am reading it, and can't find
what I need to know because I don't know quite what to look for.

Thanks much.

--
=================================================================
Lynn D. Newton                | System Test
Motorola Core Engineering     | (Department of Heuristic Neology)
Tempe, AZ                     | "The bug stops here!"
(602) 438-3739                | 
lynn@jazz.phx.mcd.mot.com     |
Technical Details
Message-ID: <LYNN.91Mar19062242@jazz.phx.mcd.mot.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!asuvax!mcdphx!jazz!lynn

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,a626beddc05ac426,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-03-20 08:43:30 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!asuvax!mcdphx!jazz!lynn
From: lynn@phx.mcd.mot.com (Lynn D Newton)
Newsgroups: gnu.emacs.help
Subject: getting word at point into a variable
Message-ID: <LYNN.91Mar19062242@jazz.phx.mcd.mot.com>
Date: 19 Mar 91 11:22:42 GMT
Sender: news@mcdphx.phx.mcd.mot.com
Distribution: gnu
Organization: Motorola MCD
Lines: 29