help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: timestamp in emacs


From: Marco Parrone
Subject: Re: timestamp in emacs
Date: Wed, 05 May 2004 19:47:38 GMT
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Marco Parrone on Wed, 05 May 2004 19:35:54 GMT writes:

> (defun substitute-keywords ()
>   (interactive)
>   (save-excursion
>     (beginning-of-buffer)
>     (mapcar
>      (lambda (keyw/exp)
>        (replace-regexp (car keyw/exp)
>                      (eval (cdr keyw/exp))))
>      substitute-keywords-keywords/expressions-alist)
>     nil))

Sorry, the previous was wrong, this one should work.

(defun substitute-keywords ()
  (interactive)
  (save-excursion
    (mapcar
     (lambda (keyw/exp)
       (beginning-of-buffer)
       (replace-regexp (car keyw/exp)
                       (eval (cdr keyw/exp))))
     substitute-keywords-keywords/expressions-alist)
    nil))

-- 
Marco Parrone (marc0) <marc0@autistici.org> [0x45070AD6]

Attachment: pgpFr9d1IALEI.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]