From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Re: [elpa] master 9173a44 1/2: [Fix #12] Don't autodisable beacon on hl-line-mode Date: Mon, 19 Oct 2015 10:00:50 -0400 Message-ID: References: <20151017213254.5317.59042@vcs.savannah.gnu.org> <877fmjflkk.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1445263307 23487 80.91.229.3 (19 Oct 2015 14:01:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2015 14:01:47 +0000 (UTC) Cc: Artur Malabarba , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 19 16:01:43 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZoB0Q-0000ZS-RF for ged-emacs-devel@m.gmane.org; Mon, 19 Oct 2015 16:01:42 +0200 Original-Received: from localhost ([::1]:39654 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoB0P-0003Vj-69 for ged-emacs-devel@m.gmane.org; Mon, 19 Oct 2015 10:01:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoB0L-0003VX-FE for emacs-devel@gnu.org; Mon, 19 Oct 2015 10:01:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoB0E-0007Nv-Co for emacs-devel@gnu.org; Mon, 19 Oct 2015 10:01:34 -0400 Original-Received: from mail-ob0-x230.google.com ([2607:f8b0:4003:c01::230]:34820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoB0E-0007Nk-8i for emacs-devel@gnu.org; Mon, 19 Oct 2015 10:01:30 -0400 Original-Received: by obbzf10 with SMTP id zf10so139021306obb.2 for ; Mon, 19 Oct 2015 07:01:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=wwhRu0r79tYQKJ/foq9nbaEMdCO6KDxR4IM5Kg56x1g=; b=WCqOVgz7T6jVznDSiHqjHewtngXD/nPwJsB62f1AqS/ujmQ0b3jdms2Ize/D0Ao0XD WgU/89uPY/cbwtafhsN6aclUL1zqnqi5tdFwpJZI/Zhde9VzMJh883xRUlxnj/QgyQXE uyGGBgxPNnr2eFBxMslAx8OG+IHt4avl0CWRUmgii2TYbQ2YD9jKFltiIQDk9tHerYDa nurwuY++MJdBDp/ZwnkTpKNQ3WBQOb2Y6BOzxYqyESa3ZBOZEORSbQYACYy8cGnU4C5u 75XolLWVTfDbVSF0JI9KzBpM10mV1fs/tpKw1gsUJMZqLRJAN9tg+6V1DMgbZ8jjYETk z2Zg== X-Received: by 10.182.65.138 with SMTP id x10mr18149655obs.39.1445263289685; Mon, 19 Oct 2015 07:01:29 -0700 (PDT) Original-Received: by 10.202.44.8 with HTTP; Mon, 19 Oct 2015 07:00:50 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:192101 Archived-At: I was looking for more info on defcustom vs setq and I was surprised to find subjective text written in first person (like a personal blog) in the GNU Emacs manual. I have yet to check if the same is in the Info manual too. https://www.gnu.org/software/emacs/manual/html_node/eintr/defcustom.html "The custom-set-variables function works somewhat differently than a setq. While I have never learned the differences, I modify the custom-set-variables expressions in my .emacs file by hand: I make the changes in what appears to me to be a reasonable manner and have not had any problems." "Over time, I have set a considerable number of faces. Some of the time, I re-set them using customize; other times, I simply edit the custom-set-faces expression in my.emacs file itself." "I myself use customize for hardly anything. Mostly, I write expressions myself." Who is that "I"? I think all that personal opinion text should be removed. Correct? -- Kaushal Modi On Mon, Oct 19, 2015 at 9:31 AM, Stefan Monnier wrote: >>> A custom var shouldn't be modified programmatically. >> Out of curiosity: why? > > Because Custom then can't change those chunks of code in order to get > the desired value. > > E.g. there's a (setq foo 4) somewhere and the user uses Custom to set > `foo' to 3. How is customize-save going to make sure that next time > Emacs starts, `foo' will be set to 3 rather than 4? > >> I setq all my defcustoms, since I don't use Customize. > > As a user you're free not to (setq foo 4) in your ~/.emacs, of course, > and since you don't use Custom, Custom won't have to try and set `foo', > so everything's fine. And if you do try and set `foo' via Custom, then > Custom will rightfully complain and you'll just get what you deserve. > > But as a package author, such a decision is very different: using (setq > foo 4) or add-hook in your package means that all your users will have > problems if they try to set this var via Custom. > > > Stefan >