unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Basic emacs lisp question
@ 2014-09-09 19:35 Ken
  2014-09-09 19:52 ` Thorsten Jolitz
                   ` (2 more replies)
  0 siblings, 3 replies; 29+ messages in thread
From: Ken @ 2014-09-09 19:35 UTC (permalink / raw)
  To: help-gnu-emacs


I want to capture whatever is at point in a file into a variable
something like the following, but it doesn't seem to work. Can any one
suggest what I an doing wrong. It is probably a silly mistake I am
unable to see. I am just learning Emacs lisp.

(defun process-diary-file ()
  "Perform some manipulation of the diary file"
  (interactive)
  (find-file "~/diary")
  (goto-char 1)
  (set a (thing-at-point))
  (message a))

Thanks in advance for your assistance,
Ken


--
Q:	What do you call a WASP who doesn't work for his father, isn't a
	lawyer, and believes in social causes?
A:	A failure.



^ permalink raw reply	[flat|nested] 29+ messages in thread
* Basic Emacs Lisp question
@ 2008-04-29 15:49 Matthias Pfeifer
  2008-04-29 17:56 ` Giorgos Keramidas
  2008-04-29 21:14 ` tyler
  0 siblings, 2 replies; 29+ messages in thread
From: Matthias Pfeifer @ 2008-04-29 15:49 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

What is the difference between

(list 0 nil -1)

and

'(0 nil -1)

?

Matthias Pfeifer


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2014-09-11 11:10 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-09 19:35 Basic emacs lisp question Ken
2014-09-09 19:52 ` Thorsten Jolitz
2014-09-09 21:05   ` Thorsten Jolitz
     [not found]   ` <mailman.8562.1410296811.1147.help-gnu-emacs@gnu.org>
2014-09-09 23:02     ` Emanuel Berg
     [not found] ` <mailman.8561.1410292382.1147.help-gnu-emacs@gnu.org>
2014-09-09 20:07   ` Emanuel Berg
     [not found]     ` <874mwgv93m.fsf@gmail.com>
2014-09-09 20:44       ` Emanuel Berg
     [not found]         ` <87y4tsts4t.fsf@gmail.com>
2014-09-09 22:31           ` Emanuel Berg
2014-09-10  0:49             ` Robert Thorpe
2014-09-10  1:21             ` Ken
2014-09-10  6:00               ` Glyn Millington
2014-09-10 14:31                 ` Ken
2014-09-10 13:12 ` Phillip Lord
2014-09-10 14:06   ` Thien-Thi Nguyen
2014-09-10 14:26   ` Stefan Monnier
2014-09-10 15:45     ` Phillip Lord
2014-09-10 16:59       ` Stefan Monnier
2014-09-11 11:10         ` Phillip Lord
2014-09-11 11:10         ` Phillip Lord
     [not found]   ` <mailman.8619.1410357764.1147.help-gnu-emacs@gnu.org>
2014-09-10 21:39     ` Emanuel Berg
  -- strict thread matches above, loose matches on Subject: below --
2008-04-29 15:49 Basic Emacs Lisp question Matthias Pfeifer
2008-04-29 17:56 ` Giorgos Keramidas
2008-04-30  1:21   ` Giorgos Keramidas
2008-04-30  8:37     ` Tim X
2008-04-30 15:26   ` David Kastrup
2008-04-30 18:36     ` Giorgos Keramidas
2008-05-01  9:25       ` Johan Bockgård
2008-04-29 21:14 ` tyler
2008-04-30  8:31   ` Tim X
2008-05-05 13:38     ` tyler

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