unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* questioning let
@ 2010-02-24 10:34 Andreas Roehler
  0 siblings, 0 replies; 9+ messages in thread
From: Andreas Roehler @ 2010-02-24 10:34 UTC (permalink / raw)
  To: help-gnu-emacs


Hi,

behaviour of the example code below puzzles me. Would
expect setting of arg by external function, but inside
`let', recognised. But remains `1'.

(defun arg-setting ()
  (interactive)
  (let ((arg 1))
    (message "%s" arg)
    (arg-extern arg)
    (message "%s" arg)))

(defun arg-extern (arg)
  (setq arg (1- arg)))

Any help?

Thanks


Andreas

--
https://code.launchpad.net/~a-roehler/python-mode
https://code.launchpad.net/s-x-emacs-werkstatt/







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

end of thread, other threads:[~2010-02-24 23:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1779.1267007568.14305.help-gnu-emacs@gnu.org>
2010-02-24 11:36 ` questioning let David Kastrup
2010-02-24 17:29   ` Andreas Röhler
     [not found]   ` <mailman.1812.1267032434.14305.help-gnu-emacs@gnu.org>
2010-02-24 18:10     ` David Kastrup
2010-02-24 21:53     ` Tim X
2010-02-24 23:41     ` Pascal J. Bourguignon
2010-02-24 11:59 ` Pascal J. Bourguignon
2010-02-24 17:44   ` Andreas Röhler
2010-02-24 21:36 ` Tim X
2010-02-24 10:34 Andreas Roehler

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