From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hrvoje Niksic Newsgroups: gmane.emacs.devel Subject: Re: Saving minibuffer history Date: Tue, 25 Oct 2005 21:07:43 +0200 Message-ID: <87irvlxvnk.fsf@xemacs.org> References: <87u0fkfc8c.fsf@xemacs.org> <873bn2s9cz.fsf@xemacs.org> <87zmp9sd0o.fsf-monnier+emacs@gnu.org> <87d5lunbsm.fsf@xemacs.org> <87acgy7e5k.fsf-monnier+emacs@gnu.org> <87ll0i7y28.fsf@xemacs.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130268110 6492 80.91.229.2 (25 Oct 2005 19:21:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Oct 2005 19:21:50 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 25 21:21:48 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EUUKC-0002bQ-S2 for ged-emacs-devel@m.gmane.org; Tue, 25 Oct 2005 21:19:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUUK9-0000bJ-W1 for ged-emacs-devel@m.gmane.org; Tue, 25 Oct 2005 15:19:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EUUCL-00076B-4t for emacs-devel@gnu.org; Tue, 25 Oct 2005 15:11:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EUUBi-00071F-Ji for emacs-devel@gnu.org; Tue, 25 Oct 2005 15:10:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUUBh-00070s-L5 for emacs-devel@gnu.org; Tue, 25 Oct 2005 15:10:21 -0400 Original-Received: from [195.29.150.97] (helo=ls405.htnet.hr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EUUBe-0002vm-Lv for emacs-devel@gnu.org; Tue, 25 Oct 2005 15:10:20 -0400 Original-Received: from ls422.t-com.hr (ls422.t-com.hr [195.29.150.237]) by ls405.htnet.hr (0.0.0/8.12.10) with ESMTP id j9PJ7jWt028584; Tue, 25 Oct 2005 21:07:46 +0200 Original-Received: from ls422.t-com.hr (localhost.localdomain [127.0.0.1]) by ls422.t-com.hr (Qmlai) with ESMTP id B7A9B988043; Tue, 25 Oct 2005 21:07:46 +0200 (CEST) X-Envelope-Sender: hniksic@xemacs.org X-Envelope-Sender: hniksic@xemacs.org Original-Received: from ls422.t-com.hr (localhost.localdomain [127.0.0.1]) by ls422.t-com.hr (Qmlai) with ESMTP id B4587988042; Tue, 25 Oct 2005 21:07:46 +0200 (CEST) Original-Received: from localhost.localdomain (83-131-15-239.adsl.net.t-com.hr [83.131.15.239]) by ls422.t-com.hr (Qmlai) with ESMTP id C4DE78B8082; Tue, 25 Oct 2005 21:07:45 +0200 (CEST) Original-Received: by localhost.localdomain (Postfix, from userid 1000) id EF60543409A; Tue, 25 Oct 2005 21:07:43 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Tue, 25 Oct 2005 10:39:31 -0400") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) 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:44843 Archived-At: Stefan Monnier writes: >> I also don't understand why you removed the "*" markers from the >> beginning of docstrings. Those variables *are* intended to be "set >> and modified by users". > > All defcustom vars can be set via M-x set-variable: the * has no > effect on them. That is because in Emacs user-variable-p also returns t on custom variables. That is not the case in XEmacs, which still expects *. > It's a risk, but the same risk exists with savehist-load. So the > same "solution" should work as well: warn that it should only be > used in your .emacs. I believe you're on to something with the minor mode thing. It definitely looks better than the savehist-install/savehist-uninstall pair (which I just introduced anyway, so it's not like we must support them for compatibility). >> savehist is IMO not a good candidate for a minor mode because >> turning it on and off during an Emacs session does not make much >> sense. > > Yet you provided savehist-uninstall. Only now, and only to complement savehist-install, which I introduced to clean up savehist-load. I think I'll give the mode idea a shot. I'll try to make it compatible with XEmacs.