From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#12949: 24.3.50; request: use Customize to set local value (in addition to global/default) Date: Tue, 20 Nov 2012 16:09:19 -0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353456597 15945 80.91.229.3 (21 Nov 2012 00:09:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2012 00:09:57 +0000 (UTC) To: 12949@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 21 01:10:08 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TaxtF-0005GY-Mz for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Nov 2012 01:10:05 +0100 Original-Received: from localhost ([::1]:41305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Taxt5-00043i-8S for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Nov 2012 19:09:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Taxt1-00043E-Ps for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2012 19:09:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Taxt0-0007Oq-NZ for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2012 19:09:51 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Taxt0-0007Om-Js for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2012 19:09:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TaxuA-0008TH-6Q for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2012 19:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Nov 2012 00:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12949 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.135345664832540 (code B ref -1); Wed, 21 Nov 2012 00:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Nov 2012 00:10:48 +0000 Original-Received: from localhost ([127.0.0.1]:57569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Taxtv-0008Sm-MF for submit@debbugs.gnu.org; Tue, 20 Nov 2012 19:10:48 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33818) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Taxtt-0008Sf-Pn for submit@debbugs.gnu.org; Tue, 20 Nov 2012 19:10:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Taxsg-0007K0-Pg for submit@debbugs.gnu.org; Tue, 20 Nov 2012 19:09:33 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:50846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Taxsg-0007Jw-M8 for submit@debbugs.gnu.org; Tue, 20 Nov 2012 19:09:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Taxsf-000410-Lz for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2012 19:09:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Taxse-0007Jj-Fn for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2012 19:09:29 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:37743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Taxse-0007JS-8o for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2012 19:09:28 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qAL09PXF031363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 21 Nov 2012 00:09:26 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qAL09Pm0021915 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 21 Nov 2012 00:09:25 GMT Original-Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qAL09Ol8003260 for ; Tue, 20 Nov 2012 18:09:25 -0600 Original-Received: from dradamslap1 (/71.202.147.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 20 Nov 2012 16:09:24 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac3HfHNXT3Ke01BcTSmOMxKuPVe09w== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org 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 Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67255 Archived-At: Customize provides not only persistence but also (a) type-checking and (b) a fairly easy (if less than ideal) user interface for non-Lispers. It is about *setting* option values, in addition to - even independently from - *saving* them persistently. A user can want to set a value temporarily for different reasons. If an option is buffer-local (yes, nothing wrong with that), then Customize sets or saves the *default* value. That's normal. But it can also be useful in some cases to use the Customize UI not to save the default value but to set the local value for various buffers. Why? Simply because in some cases setting the value can be easier or clearer using Customize than using Lisp. This enhancement request is to add an item to the Customize State menu to set the buffer-local value, for the buffer where `customize-option' (or whatever) was invoked, to the value as edited in Customize. That lets a user invoke Customize from different buffers and set their buffer-local values using the GUI. But that requires a user to repeat `M-x customize-option' in each such buffer. An alternative possibility would be to add a dropdown menu/list to let the user choose an existing buffer (or even multiple such), to set its local value to the edited value. This could be combined with the State menu: add a `Set Local for XYZ' menu item for each existing buffer (XYZ, in this example). If there are more than some small number of existing buffers then these menu items could be placed in a submenu: Set Local Value > XZY etc. When the option is buffer-local, the current menu item `Set for Current Session' would be changed to something like `Set Default Value'. Here is one example where this might be helpful: Library highlight-chars.el lets you highlight any set of characters. You can specify the characters in the set using any of these methods, any number of times: * Specify a string of chars, to include the chars in the string. * Specify the start and end chars, to include the chars in the range. * Specify a character class, to include the chars in the class. * Specify a charset, to include its chars. Now suppose you want to highlight Lao chars in Gnus buffers and [:xdigit] in .css buffers. In that case, you want to make the option buffer-local. And it would be handy to be able to use the GUI of Customize to set the option in each buffer. In this case, you could use (setq hc-other-chars '(lao)) for one and (setq hc-other-chars '([:xdigit:])) for the other. But to do that you would need to know the required Lisp. More complex values (and more complex options) would require more complex Lisp sexps. The point is that the Customize GUI can be leveraged for non-Lisp users to set option values, including local values, regardless of whether saving the values makes any sense (it does not, for a local value). In GNU Emacs 24.3.50.1 (i386-mingw-nt5.1.2600) of 2012-11-05 on MS-W7-DANI Bzr revision: 110809 lekktu@gmail.com-20121105172930-a5gn0bwi4lndchhw Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.7) --no-opt --enable-checking --cflags -I../../libs/libXpm-3.5.10/include -I../../libs/libXpm-3.5.10/src -I../../libs/libpng-1.2.37-lib/include -I../../libs/zlib-1.2.5 -I../../libs/giflib-4.1.4-1-lib/include -I../../libs/jpeg-6b-4-lib/include -I../../libs/tiff-3.8.2-1-lib/include -I../../libs/libxml2-2.7.8-w32-bin/include/libxml2 -I../../libs/gnutls-3.0.9-w32-bin/include -I../../libs/libiconv-1.9.2-1-lib/include'