From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?6Lev5a6i?= Newsgroups: gmane.emacs.devel Subject: Re: [elpa] externals/brief 362d629671: Brief mode v5.88.22 release for various enhancements and bug fixes Date: Tue, 31 Jan 2023 01:07:38 +0800 Message-ID: References: <167500933323.27282.16366310039274039148@vcs2.savannah.gnu.org> <20230129162214.20BBEC0019D@vcs2.savannah.gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c5814905f37e4269" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26734"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 30 18:09:04 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pMXeR-0006je-No for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Jan 2023 18:09:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMXdj-0002MF-Lg; Mon, 30 Jan 2023 12:08:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMXdi-0002HS-8W for emacs-devel@gnu.org; Mon, 30 Jan 2023 12:08:18 -0500 Original-Received: from mail-oa1-x31.google.com ([2001:4860:4864:20::31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMXdg-0001xq-FB for emacs-devel@gnu.org; Mon, 30 Jan 2023 12:08:18 -0500 Original-Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-15085b8a2f7so15869946fac.2 for ; Mon, 30 Jan 2023 09:08:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=oHa4Y/Ibgr6IWf9EEXonWhKc61lTucszMqPaneSzkrI=; b=CrA+w1DWwN7vlPKHc1OFga47rB2hBSvYkptU0Boupn5zeff1ZiuHXW85q77QtjXXAD qFKljdF9DHD7iPHMZ1+mjugtrUnM6JY8pcXPuaEQ4KJcEiA+Ma9lkM1IQSCzeyvtuAwO yo2/PNv7xyKY3SH0Fj3TcYLjmMUIcTOLtJD6h3L0oN0oiVxgSNP6AK6pDBu/6va02eQt hgby/wDRdRvGgsDi+eJN1ZImAGXgH07HC8KRpsWCHkjsTjNjhCmUSPt+mVjobVBCyl/y W1lK+Oom1ACWMR/6T39quJt44LFqkmE4ytA3zInQAW1ho5pGTqFdDkk+sw0uqyaKymT8 Tt2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oHa4Y/Ibgr6IWf9EEXonWhKc61lTucszMqPaneSzkrI=; b=A/zsZrd36Ese6t0pb04k4TVfEUInsAYrSszG8/gfOgtjnjKGTDg9tB/HOh8PwUrIKB C/6RtzdJITLRDwagBZRpDMtHiuCWS/eUZ3O80PGCCj1fhhSi8wFPZK2ljJeLrCa9lcUA ZwaRhw2O2Jv+7LOQDPp0w5XrTAuJMJkUSfRVVGS7ptFeZA7rqO2N7DIRHuKsMACHu1IE rYiE1h6OGBnVi0tTRvx5raZOZDO/nYdHn1+Mc8TuO8ykxe5wo+NgxhqYmvWs1gaZPsUv oiFeOJ1HZHZ4W5VdLIr3zg3ozZ65pd+smhB0VsZH3lmkvZp/XIckn8m74bDIK+f7sf// VLSA== X-Gm-Message-State: AO0yUKXYBOXvjDDrpI/jWC33GqJkrgc38XflFLXkig4PeXQRHct159Ja uCUtKU1V5gZWJUG8eNXAeGg3/fp5alN3Qae1SQE= X-Google-Smtp-Source: AK7set8yvLfkt3pS15KCqtsULriq7v6ewD3qtzru+gFCAnEm94YUoM6uXxSyE9ziGF3k6G30GPHWDW9FtasmRgsef9A= X-Received: by 2002:a05:6870:171d:b0:163:8cc6:870 with SMTP id h29-20020a056870171d00b001638cc60870mr1056281oae.143.1675098495220; Mon, 30 Jan 2023 09:08:15 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2001:4860:4864:20::31; envelope-from=luke.yx.lee@gmail.com; helo=mail-oa1-x31.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302799 Archived-At: --000000000000c5814905f37e4269 Content-Type: text/plain; charset="UTF-8" Sorry that I missed this email. About the `scroll-bar-mode', I was just trying to disable it. Is there another way to disable it? Thanks. On Mon, 30 Jan 2023 at 10:58, Stefan Monnier wrote: > > branch: externals/brief > > commit 362d6296717af611be20cb56592d495c01ea7a00 > > Author: Luke Lee > > Commit: Luke Lee > > Please try and use a valid email as commit identifier. > > > @@ -457,8 +461,9 @@ > > ;; backward compatibility issues. > > ;;(require 'replace) > > > > -(defconst brief-version "5.87" > > - "The version of this Brief emulator.") > > +;;;###autoload > > +(defconst brief-version "5.88.22" > > + "Current version of this Brief editor mode/emulator.") > > Why autoload? > > > - (not (fboundp 'save-mark-and-excursion))) > > + (not (fboundp #'save-mark-and-excursion))) > > The arg to `fboundp` is a symbol not a function (e.g. it can't be > a (lambda ...) for example), so I think #' is ill-advised. > It works fine, in practice, so it's somewhat of a philosophical issue. > > > + (when (and (version<= "27.0" emacs-version) > > I understand efficiency is not a major issue here, but > > (<= 27 emacs-major-version) > > works just as well :-) > > > - (scroll-bar-mode -1) ;; small border without scroll bar > > + (when (and brief-turn-off-scroll-bar-mode > > + (fboundp #'scroll-bar-mode)) > > In which circumstance could `scroll-bar-mode` not be defined? > > > + (scroll-bar-mode -1) ;; small border without scroll bar > > + (setq-default scroll-bar-mode -1)) > > According to its doc, the `scroll-bar-mode` variable can take values > `nil`, `left`, and `right`. What do you intend to get by setting it to -1? > > > Stefan > > -- Best regards, Luke Lee --000000000000c5814905f37e4269 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry that I missed this email.=C2=A0 About the `scro= ll-bar-mode', I was just trying to disable it.
Is there = another way to disable it?
Thanks.


On Mo= n, 30 Jan 2023 at 10:58, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> branch: externals/brief
> commit 362d6296717af611be20cb56592d495c01ea7a00
> Author: Luke Lee <luke@gauss>
> Commit: Luke Lee <luke@gauss>

Please try and use a valid email as commit identifier.

> @@ -457,8 +461,9 @@
>=C2=A0 ;; backward compatibility issues.
>=C2=A0 ;;(require 'replace)
>=C2=A0
> -(defconst brief-version "5.87"
> -=C2=A0 "The version of this Brief emulator.")
> +;;;###autoload
> +(defconst brief-version "5.88.22"
> +=C2=A0 "Current version of this Brief editor mode/emulator."= ;)

Why autoload?

> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(not (fboundp 'save-mark= -and-excursion)))
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(not (fboundp #'save-mar= k-and-excursion)))

The arg to `fboundp` is a symbol not a function (e.g. it can't be
a (lambda ...) for example), so I think #' is ill-advised.
It works fine, in practice, so it's somewhat of a philosophical issue.<= br>
> +=C2=A0 (when (and (version<=3D "27.0" emacs-version)

I understand efficiency is not a major issue here, but

=C2=A0 =C2=A0 (<=3D 27 emacs-major-version)

works just as well :-)

> -=C2=A0 (scroll-bar-mode -1)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0;; small border without scroll bar
> +=C2=A0 (when (and brief-turn-off-scroll-bar-mode
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(fboundp #'scroll= -bar-mode))

In which circumstance could `scroll-bar-mode` not be defined?

> +=C2=A0 =C2=A0 (scroll-bar-mode -1)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0;; small border without scroll bar
> +=C2=A0 =C2=A0 (setq-default scroll-bar-mode -1))

According to its doc, the `scroll-bar-mode` variable can take values
`nil`, `left`, and `right`.=C2=A0 What do you intend to get by setting it t= o -1?


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan



--
Best regards,
Luke Lee

--000000000000c5814905f37e4269--