From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: squash@math.ufl.edu (Jonathan LF King) Newsgroups: gmane.emacs.bugs Subject: Feature-request for Customize, delayed evaluation Date: Tue, 13 Jan 2004 17:23:10 -0500 (EST) Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200401132223.i0DMNAl15921@ottawa.math.ufl.edu> Reply-To: "Prof. Jonathan LF King" NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1074032709 24967 80.91.224.253 (13 Jan 2004 22:25:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2004 22:25:09 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 13 23:24:56 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AgWxz-00027r-01 for ; Tue, 13 Jan 2004 23:24:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AgWxP-0002SL-M4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Jan 2004 17:24:19 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AgWws-0002NJ-Qk for bug-gnu-emacs@gnu.org; Tue, 13 Jan 2004 17:23:46 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AgWwK-0002Eb-6t for bug-gnu-emacs@gnu.org; Tue, 13 Jan 2004 17:23:44 -0500 Original-Received: from [128.227.168.254] (helo=math.ufl.edu) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AgWwJ-0002EL-L4 for bug-gnu-emacs@gnu.org; Tue, 13 Jan 2004 17:23:11 -0500 X-Envelope-From: squash@ottawa.math.ufl.edu X-Envelope-To: Original-Received: from ottawa.math.ufl.edu (ottawa.math.ufl.edu [128.227.168.149]) by math.ufl.edu (8.11.7p1+Sun/8.11.7/clas1.17) with ESMTP id i0DMNAD02135 for ; Tue, 13 Jan 2004 17:23:11 -0500 (EST) Original-Received: (from squash@localhost) by ottawa.math.ufl.edu (8.11.7p1+Sun/8.11.7/clas1.9) id i0DMNAl15921; Tue, 13 Jan 2004 17:23:10 -0500 (EST) Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:6554 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6554 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Dear Emacs Often I'd like to customize a variable to a value making use of another variable, e.g to set outgoing-mail-file to (concat mail-dir (current-date) ".mail") . Currently, Customize evaluates this and sets `outgoing-mail-file' to "~squash/Missives/13Jan2004.mail" and ALSO puts that value in the .emacs file. If, in a future session, I alter mail-dir, then outgoing-mail-file will be wrong. Request: Under the STATE button of Customize is the option Save for Future Sessions Would it be possible to have *two* options: Save value for Future Sessions and Save expression for Future Sessions and evaluate now The latter creates, in .emacs, this expression: (custom-set-variables ... '(outgoing-mail-file (concat mail-dir (current-date) ".mail") ...) ... ) but immediately binds outgoing-mail-file to "~squash/Missives/13Jan2004.mail". Sincerely, -Prof. Jonathan King PS: If you post a reply, I'd appreciate your CCing me as my news-feed is unreliable. Thank you. -- Prof. Jonathan LF King Mathematics dept, Univ. of Florida ,