[Top][All Lists]

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

Re: Minibuffer default values list

From: Richard Stallman
Subject: Re: Minibuffer default values list
Date: Sat, 24 Nov 2007 22:43:13 -0500

        (interactive "p")
    +   (run-hooks 'goto-history-element-pre-hook)
        (let ((minimum (if minibuffer-default
                         (- (if (listp minibuffer-default)

How about running this hook only when moving
into the "future"?

    !     (goto-history-element-pre-hook
    !      (cons (lambda ()
    !              (when (and (null minibuffer-default-set) (< nabs -1))
    !                (setq minibuffer-default
    !                      (cons filename (dired-read-shell-command-default
    !                                      (list filename))))
    !                (setq minibuffer-default-set t)))
    !            goto-history-element-pre-hook)))

Why preserve any ambient binding?  I think it should bbe completely

For that reason, maybe it should be `goto-history-element-pre-function'
and its value should be just one function.

A better name would be `goto-history-defaults-function'.

reply via email to

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