From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Native line numbers landed on master Date: Mon, 07 Oct 2019 19:30:34 +0300 Message-ID: <83pnj8zff9.fsf@gnu.org> References: <834l4xbfmp.fsf@gnu.org> <87muekj0i9.fsf@wavexx.thregr.org> <87d0fgagjl.fsf@gnus.org> <20191001225254.mwjnxlynjdc3mz7y@Ergus> <83lfu389vn.fsf@gnu.org> <87ftk9v4kx.fsf@wavexx.thregr.org> <83wodl54yt.fsf@gnu.org> <87pnjchm7p.fsf@wavexx.thregr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="57588"; mail-complaints-to="usenet@blaine.gmane.org" Cc: spacibba@aol.com, lekktu@gmail.com, stefan@marxist.se, emacs-devel@gnu.org, wavexx@thregr.org, larsi@gnus.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 07 18:39:13 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iHW2R-000EnD-Cb for ged-emacs-devel@m.gmane.org; Mon, 07 Oct 2019 18:39:11 +0200 Original-Received: from localhost ([::1]:47670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHW2P-0003rx-Qv for ged-emacs-devel@m.gmane.org; Mon, 07 Oct 2019 12:39:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60107) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHVuF-00058C-21 for emacs-devel@gnu.org; Mon, 07 Oct 2019 12:30:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iHVuE-0001yS-5m; Mon, 07 Oct 2019 12:30:42 -0400 Original-Received: from [176.228.60.248] (port=2008 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iHVuD-00076I-E5; Mon, 07 Oct 2019 12:30:42 -0400 In-reply-to: (message from Robert Pluim on Mon, 07 Oct 2019 10:09:43 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.org gmane.emacs.devel:240709 Archived-At: > From: Robert Pluim > Cc: "Yuri D'Elia" , Eli Zaretskii , > stefan@marxist.se, Lars Magne Ingebrigtsen , > spacibba@aol.com, Emacs developers > Date: Mon, 07 Oct 2019 10:09:43 +0200 > > >>>>> On Mon, 7 Oct 2019 09:39:08 +0200, Juanma Barranquero said: > > Juanma> On Mon, Oct 7, 2019 at 8:54 AM Robert Pluim wrote: > >> I thought the convention for C-level variables for Lisp variables was > >> to stick a 'V' on the front, but I see Eli didnʼt do that for > >> display-line-numbers-widen, so now Iʼm wondering. > > Juanma> I think it's usually not done for native type variables: integer, boolean. That's right. Only general Lisp objects get called Vsomething. > I canʼt find any documentation stating that We have a node about writing Emacs Lisp primitives; a node about Lisp variables implemented in C still awaits its author. Patches are welcome. > I was thinking of the case where people want a particular value in > most of their buffers, in which case they'd want a default, which > they'd then override for a few cases with a mode-hook. I canʼt judge > how common that would be though. I tend to think that this will be rare, so I think a simple variable is good enough at this stage.