emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: patch for locate.el when called with prefix arg


From: Luc Teirlinck
Subject: Re: patch for locate.el when called with prefix arg
Date: Sun, 22 Apr 2007 15:05:48 -0500 (CDT)

   That is indeed a bug.  All use of `current-prefix-arg' should be
   in the interactive spec.

There seem to be many places in the Lisp code that violate this.  For
instance, both Calc and org mode seem to violate this systematically.

In as far as org is concerned, the docstring of
`org-execute-file-search-functions' contains the following cryptic remark:

    Each function can access the current prefix argument through the
    variable `current-prefix-argument'.  Note that a single prefix is
    used to force opening a link in Emacs, so it may be good to only
    use a numeric or double prefix to guide the search function.

The _only_ mention of the variable `current-prefix-argument' in the
entire source code is in that docstring.  I would guess that
`current-prefix-arg' is what is meant.  I do not use org and hence can
not look further into this.

Sincerely,

Luc.





reply via email to

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