From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Minibuffer default values list Date: Sat, 24 Nov 2007 22:43:13 -0500 Message-ID: References: <87zlycuhrd.fsf@jurta.org> <87hckbecc0.fsf@jurta.org> <87prygxtot.fsf@jurta.org> <87hcjjkrgy.fsf@jurta.org> <87ir3u9r5s.fsf@jurta.org> <87myt3zk65.fsf@jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1195962337 10556 80.91.229.12 (25 Nov 2007 03:45:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2007 03:45:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 25 04:45:44 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iw8RB-0003Km-Mh for ged-emacs-devel@m.gmane.org; Sun, 25 Nov 2007 04:45:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iw8Qx-0002qJ-38 for ged-emacs-devel@m.gmane.org; Sat, 24 Nov 2007 22:45:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iw8Oq-0000oy-D2 for emacs-devel@gnu.org; Sat, 24 Nov 2007 22:43:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iw8Oo-0000nc-NN for emacs-devel@gnu.org; Sat, 24 Nov 2007 22:43:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iw8Oo-0000nR-JI for emacs-devel@gnu.org; Sat, 24 Nov 2007 22:43:14 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iw8Oo-0004SW-Bq for emacs-devel@gnu.org; Sat, 24 Nov 2007 22:43:14 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Iw8On-0000XS-VR; Sat, 24 Nov 2007 22:43:13 -0500 In-reply-to: <87myt3zk65.fsf@jurta.org> (message from Juri Linkov on Sat, 24 Nov 2007 19:54:45 +0200) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84103 Archived-At: (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 superseded. 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'.