emacs-wiki-discuss
[Top][All Lists]
Advanced

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

[emacs-wiki-discuss] Re: emacs-wiki 2.70 released


From: drkm
Subject: [emacs-wiki-discuss] Re: emacs-wiki 2.70 released
Date: Tue, 26 Jul 2005 04:22:49 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (windows-nt)

Michael Olson writes:

>  - If you have custom code that relies on the value of
>    buffer-file-name at publish time (in header and footer code, for
>    example), you must use `emacs-wiki-current-file' instead.  If the
>    code can be called at publish time or while displaying the file,
>    use a construct like (or emacs-wiki-current-file buffer-file-name).

  As 'buffer-file-name' being a function, what about:

    (defun emacs-wiki-current-file ()
      "..."
      (or emacs-wiki-current-file
          (buffer-file-name)))

which is more clear in the public API, IMHO, than "maybe use
'emacs-wiki-current-file', or maybe use 'buffer-file-name'"?

--drkm





reply via email to

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