all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How could I modify list element?
@ 2008-12-09 14:15 richardeng
  2008-12-09 15:37 ` Alan Mackenzie
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: richardeng @ 2008-12-09 14:15 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,
     setcar/setcdr is not convenient.
     In a long list, ex.
     (setq a '(a b c d e f g))
     I want to change 'e to 'E.
     I need a function: (set-list-elt list old-elt new-elt)

     How? translate list to vector, modify, then turn it back???









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

end of thread, other threads:[~2008-12-09 20:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2319.1228836378.26697.help-gnu-emacs@gnu.org>
2008-12-09 16:36 ` How could I modify list element? Andreas Politz
2008-12-09 20:46 ` Niels Giesen
2008-12-09 14:15 richardeng
2008-12-09 15:37 ` Alan Mackenzie
2008-12-09 17:43   ` richardeng
     [not found]   ` <mailman.2345.1228845668.26697.help-gnu-emacs@gnu.org>
2008-12-09 20:30     ` Andreas Politz
2008-12-09 17:21 ` Thierry Volpiatto
2008-12-09 17:26 ` Thierry Volpiatto

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.