From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#5974: 23.1.95; enabling disabled cmd & saving doesn't respect `custom-file' Date: Fri, 29 Apr 2016 00:57:46 +0200 Message-ID: <874mal2vf9.fsf@gnus.org> References: <88CA29C22E7A4FA88C1900F16C25CD5C@us.oracle.com> <87k2jisoqq.fsf@gnus.org> <87k2jiuibb.fsf@ulb.ac.be> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1461884372 9590 80.91.229.3 (28 Apr 2016 22:59:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2016 22:59:32 +0000 (UTC) Cc: Stefan Monnier , 5974@debbugs.gnu.org To: Nicolas Richard Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 29 00:59:19 2016 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 1avuty-0007rm-AO for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 00:59:18 +0200 Original-Received: from localhost ([::1]:51497 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avutx-0006V3-E2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Apr 2016 18:59:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avutm-0006JN-Kn for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 18:59:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avuti-00024E-BZ for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 18:59:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avuti-00024A-5M for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 18:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1avuti-0000pC-0g for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 18:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Apr 2016 22:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5974 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5974-submit@debbugs.gnu.org id=B5974.14618842833100 (code B ref 5974); Thu, 28 Apr 2016 22:59:01 +0000 Original-Received: (at 5974) by debbugs.gnu.org; 28 Apr 2016 22:58:03 +0000 Original-Received: from localhost ([127.0.0.1]:53702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avush-0000nc-Cb for submit@debbugs.gnu.org; Thu, 28 Apr 2016 18:58:02 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:38808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avusc-0000nQ-76 for 5974@debbugs.gnu.org; Thu, 28 Apr 2016 18:57:57 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1avusV-0001R4-DT; Fri, 29 Apr 2016 00:57:51 +0200 In-Reply-To: <87k2jiuibb.fsf@ulb.ac.be> (Nicolas Richard's message of "Thu, 28 Apr 2016 12:41:12 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:117131 Archived-At: Nicolas Richard writes: > Lars Ingebrigtsen writes: >> That's the code that puts >> >> (put 'narrow-to-region 'disabled nil) >> >> into our .emacs files, right? Yes, it would be better if that was >> handled by Custom. But how? Custom works by setting (variable) values, >> not adjusting symbol properties... > > We could add a defcustom like > (defcustom enabled-commands nil > "List of commands to enable" > :set (lambda (sym val) > (dolist (cmd val) > (put cmd 'disabled nil)) > (set-default sym val))) Hm... the `set-default' wouldn't be necessary, would it? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no