Stefan Kangas <stefankangas@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 77022) by debbugs.gnu.org; 15 Mar 2025 09:20:09 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 15 05:20:09 2025 Received: from localhost ([127.0.0.1]:38815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ttNgf-0008Dr-2h for submit <at> debbugs.gnu.org; Sat, 15 Mar 2025 05:20:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40586) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ttNgc-00088u-1v for 77022 <at> debbugs.gnu.org; Sat, 15 Mar 2025 05:20:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1ttNgU-0008JY-Ea; Sat, 15 Mar 2025 05:19:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=KIcFa4KSGE3zXCkeVwqRLZGRwhW+JVH5VX73Q92ubvo=; b=O9isMt/Xewzb7/QPKtHL 8S4Ka7lO+oJ9Z147Figp0sht9DgcKuRHSrHY8ut1em3fwDiLZ5mwtT+3IjNyslqTKAtsILnctlIJ0 c53T/KFzdtUe1Z/3xGgKDVvWSmKS9yxk/SKAgokGr/pxOMGzuxS+1/rHGHqLkI/y/hn6hvg4ur6eQ Yh3/nn1jkT8D4lsF1XXKVChxRzJl/3nJEhBN+hTygkaJBokeT3+H2E72QPR9LFcqZ5asD/sTmpWtZ mZ50jPEGX4hHMHMn1I180rq3ldNPgXmatBa0aA7BpVV5Qnpqy8vlqmcTHrJth78sRWpujHC8spLoF LWIErb5UWzJwzg==; Date: Sat, 15 Mar 2025 11:19:54 +0200 Message-Id: <86pliiy7k5.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Elijah Gabe =?utf-8?Q?P=C3=A9rez?= <eg642616@HIDDEN> In-Reply-To: <CACnP4NJ2GTBoiHEOiAW8BocBMf35O-kZnmqKdy-hV7dDf4wGAw@HIDDEN> (message from Elijah Gabe =?utf-8?Q?P=C3=A9rez?= on Fri, 14 Mar 2025 19:26:36 -0600) Subject: Re: bug#77022: [PATCH] Allow specify in which major modes global-hl-line-mode must be enabled. References: <874izv3x5y.fsf@HIDDEN> <CACnP4NJ2GTBoiHEOiAW8BocBMf35O-kZnmqKdy-hV7dDf4wGAw@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77022 Cc: 77022 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Elijah Gabe Pérez <eg642616@HIDDEN> > Date: Fri, 14 Mar 2025 19:26:36 -0600 > > El vie., 14 de marzo de 2025 7:22 p. m., Elijah Gabe Pérez <eg642616@HIDDEN> escribió: > > Hello, this patch add a user option for specify in which major modes should global-hl-line-mode be > switched on. > > Originally i wanted to replace global-hl-line define-minor-mode definition with > define-globalized-minor-mode, however i found that this was already done and was reverted in > a34afbf2aea2fdaf691f4bf250a18991b21301d7 commit, so I decided to bring this feature, since i find > this better than using add-hook. Thanks. > +*** New variable 'global-hl-line-modes'. > +This specifies in which major modes should the global-hl-line-mode be ^^^^^^^^^^^^^^^^^^^ The mode should be quoted 'like this'. > +(defcustom global-hl-line-modes t > + "Which major modes `hl-line-mode' is switched on in. > +This variable can be either t (all major modes), nil (no major modes), > +or a list of modes and (not modes) to switch use this minor mode or > +not. For instance > + > + (c-mode (not message-mode mail-mode) text-mode) > + > +means \"use this mode in all modes derived from `c-mode', don't use in > +modes derived from `message-mode' or `mail-mode', but do use in other > +modes derived from `text-mode'\". An element with value t means \"use\" > +and nil means \"don't use\". There's an implicit nil at the end of the > +list." > + :type > + '(choice (const :tag "Enable in all major modes" t) > + (const :tag "Don't enable in any major mode" nil) Why is it useful to have a value of nil here? Why would anyone activate this mode when the variable has the value nil? > @@ -224,7 +254,8 @@ global-hl-line-mode > on `post-command-hook'." > :global t > :group 'hl-line > - (if global-hl-line-mode > + (if (and global-hl-line-mode > + (easy-mmode--globalized-predicate-p global-hl-line-modes)) > (progn > ;; In case `kill-all-local-variables' is called. > (add-hook 'change-major-mode-hook #'global-hl-line-unhighlight) Maybe I'm missing something, but don't you need to consult this new variable in global-hl-line-highlight-all?
bug-gnu-emacs@HIDDEN
:bug#77022
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 15 Mar 2025 01:26:59 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 14 21:26:58 2025 Received: from localhost ([127.0.0.1]:36928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ttGIk-0002n7-Io for submit <at> debbugs.gnu.org; Fri, 14 Mar 2025 21:26:58 -0400 Received: from lists.gnu.org ([2001:470:142::17]:39742) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eg642616@HIDDEN>) id 1ttGIi-0002mv-Pv for submit <at> debbugs.gnu.org; Fri, 14 Mar 2025 21:26:57 -0400 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 <eg642616@HIDDEN>) id 1ttGId-0005ZR-0W for bug-gnu-emacs@HIDDEN; Fri, 14 Mar 2025 21:26:51 -0400 Received: from mail-qv1-xf44.google.com ([2607:f8b0:4864:20::f44]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <eg642616@HIDDEN>) id 1ttGIb-0004pU-LU for bug-gnu-emacs@HIDDEN; Fri, 14 Mar 2025 21:26:50 -0400 Received: by mail-qv1-xf44.google.com with SMTP id 6a1803df08f44-6e91d323346so28933196d6.1 for <bug-gnu-emacs@HIDDEN>; Fri, 14 Mar 2025 18:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742002008; x=1742606808; darn=gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=fSvhlZZ3JtQi+t3U7aTegR75eyGyetlxa1+s2Vv0Crs=; b=Bog9W4PsBMahtHHEllnXMDih+r77l+LburgN0JS0IztNpEcZGKGB+eeah3xRPnlX0g 1rkrqIuOUCRmHEDnrOCs/d1KyjfddElYzj7jzd9HiCVOBbB6BeV1eP/vHPWdDy1qwM5o tBUa9LjlxCEPIsZGfLuUPbiCw3p3QxyLgZ7IbnhnBdECuqH3V7RhlKX+33thDbEvB4Ow ma4TCb0/6Z/lUgdLnWi8GEl9Z8eeE9b0swf0N1MQH6aHobcLpRrkq1HlT6SWFj0GQq1D IaPnUj7NWC5s+R69sEVu6EFYpSlBy4npVzbxfaO0qmpVIeihuufqSV6MtdVh1jt7Gmqs rvyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742002008; x=1742606808; h=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=fSvhlZZ3JtQi+t3U7aTegR75eyGyetlxa1+s2Vv0Crs=; b=VqHG7D719iTJJuu36z/oZKPv5OewMEPyxz3goO79t8+zQsrMcCrDeXu3t80cBVWhZd ZA1ewhVOgo9UMqpuNwZbu13DoqCmi0hLZWgf2C82t6sZZawK0PDQR+3QNkXqdut1djA9 MaMMUgQVnzP0V4BgraqwMcvy8fTuMF4o02ybikssqgjEIVkbAlCkywNRxFbaV3ZPaDU9 MOxpI2Gc6lgfJ5ZGCHUe1D5obU1WmPXhNzdqZX/QO2Z3QRbQ1MXjKSRpDW9ngm6xzj4c opbxgSiB4OY2EmLaxazb7pATx8sooEY/0mxrL9arAfiA1FMWLvsUSomaKmmFYkM/aOEU eRZQ== X-Gm-Message-State: AOJu0YxMHr9BI2b7wdx0Ds+ZP2kO9HgVj1porJXks/ayuXV4Eoj8Rsxv +tyxZC/KN/z1495QpmYk7DRFDW574yGFQ+hHCYtNtypchD6D5qwljBnDKCYaoozmg71SFou6Rfj 7OBmvtXOBZHB0OsycuRswJTamJz/IV36e X-Gm-Gg: ASbGncvUH07c5UwW6mU8Ok1UKZgOqs82JXvkdHh83KSnS35LDShTjeFWBUWMGbTDJNl 6W+zW0oWMANbboyihBWFfXU4VJrPgVHoK9bD/frcK5Xwa8usiyui/vx1ng/LSaVkf7dq8JQP8ec CuERjdq61gevpi+YlMlM8ig7+s3H4q X-Google-Smtp-Source: AGHT+IFH0hUcxMXRreNkm6eEBfLKwzMLE2UvD1SDUUnJ614SLKgTeZpSnjvMmdxCrPOA+H0d/4ybp2+Fpo6GtByy9zQ= X-Received: by 2002:a05:6214:f07:b0:6e4:2479:d59b with SMTP id 6a1803df08f44-6eaeacda8cbmr73797206d6.16.1742002008617; Fri, 14 Mar 2025 18:26:48 -0700 (PDT) MIME-Version: 1.0 References: <874izv3x5y.fsf@HIDDEN> In-Reply-To: <874izv3x5y.fsf@HIDDEN> From: =?UTF-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN> Date: Fri, 14 Mar 2025 19:26:36 -0600 X-Gm-Features: AQ5f1JpmeGJdcxJNw3Lhd0Brx537YR6VzJhdk3Kq_uSaF89gKKJ1W4U0vb18Mf4 Message-ID: <CACnP4NJ2GTBoiHEOiAW8BocBMf35O-kZnmqKdy-hV7dDf4wGAw@HIDDEN> Subject: Re: [PATCH] Allow specify in which major modes global-hl-line-mode must be enabled. To: "Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> Content-Type: multipart/mixed; boundary="000000000000ec0f3706305772d1" Received-SPF: pass client-ip=2607:f8b0:4864:20::f44; envelope-from=eg642616@HIDDEN; helo=mail-qv1-xf44.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: El vie., 14 de marzo de 2025 7:22 p. m., Elijah Gabe Pérez < escribió: > Hello, this patch add a user option for specify in which major modes > should global-hl-line-mode be switched on. > > Originally i wanted to replace global-hl-line define-minor-mode definition > wit [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (eg642616[at]gmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (eg642616[at]gmail.com) 0.0 HTML_MESSAGE BODY: HTML included in message X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.2 (/) --000000000000ec0f3706305772d1 Content-Type: multipart/alternative; boundary="000000000000ec0f3206305772cf" --000000000000ec0f3206305772cf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El vie., 14 de marzo de 2025 7:22 p. m., Elijah Gabe P=C3=A9rez < eg642616@HIDDEN> escribi=C3=B3: > Hello, this patch add a user option for specify in which major modes > should global-hl-line-mode be switched on. > > Originally i wanted to replace global-hl-line define-minor-mode definitio= n > with define-globalized-minor-mode, however i found that this was already > done and was reverted in *a34afbf2aea2fdaf691f4bf250a18991b21301d7* > commit, so I decided to bring this feature, since i find this better than > using add-hook. > > > -- > - E.G via GNU Emacs and Org. > --000000000000ec0f3206305772cf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" cla= ss=3D"gmail_attr">El vie., 14 de marzo de 2025 7:22 p. m., Elijah Gabe P=C3= =A9rez <<a href=3D"mailto:eg642616@HIDDEN">eg642616@HIDDEN</a>>= escribi=C3=B3:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:= 0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p> Hello, this patch add a user option for specify in which major modes should global-hl-line-mode be switched on. </p> <p> Originally i wanted to replace global-hl-line define-minor-mode definition with define-globalized-minor-mode, however i found that this was already done and was reverted in <b>a34afbf2aea2fdaf691f4bf250a18991b21301d7</b> commit, so I decided to bri= ng this feature, since i find this better than using add-hook. </p> <br> <br> -- <br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 -= E.G via GNU Emacs and Org.<br> </blockquote></div> --000000000000ec0f3206305772cf-- --000000000000ec0f3706305772d1 Content-Type: application/octet-stream; name="0001-Allow-specify-in-which-major-modes-global-hl-line-mo.patch" Content-Disposition: attachment; filename="0001-Allow-specify-in-which-major-modes-global-hl-line-mo.patch" Content-Transfer-Encoding: base64 Content-ID: <1959768f31f478eede91> X-Attachment-Id: 1959768f31f478eede91 RnJvbSAyM2FhMGUyMjAwOTI4YzNhZDlkYTIzYTJkMGVlMGVkMTFj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CJ1c2UgdGhpcyBtb2RlIGluIGFs bCBtb2RlcyBkZXJpdmVkIGZyb20gYGMtbW9kZScsIGRvbid0IHVzZSBpbgorbW9kZXMgZGVyaXZl ZCBmcm9tIGBtZXNzYWdlLW1vZGUnIG9yIGBtYWlsLW1vZGUnLCBidXQgZG8gdXNlIGluIG90aGVy Cittb2RlcyBkZXJpdmVkIGZyb20gYHRleHQtbW9kZSdcIi4gIEFuIGVsZW1lbnQgd2l0aCB2YWx1 ZSB0IG1lYW5zIFwidXNlXCIKK2FuZCBuaWwgbWVhbnMgXCJkb24ndCB1c2VcIi4gIFRoZXJlJ3Mg YW4gaW1wbGljaXQgbmlsIGF0IHRoZSBlbmQgb2YgdGhlCitsaXN0LiIKKyAgOnR5cGUKKyAgJyhj aG9pY2UgKGNvbnN0IDp0YWcgIkVuYWJsZSBpbiBhbGwgbWFqb3IgbW9kZXMiIHQpCisgICAgICAg ICAgIChjb25zdCA6dGFnICJEb24ndCBlbmFibGUgaW4gYW55IG1ham9yIG1vZGUiIG5pbCkKKyAg ICAgICAgICAgKHJlcGVhdCA6dGFnICJSdWxlcyAoZWFybGllciB0YWtlcyBwcmVjZWRlbmNlKS4u LiIKKyAgICAgICAgICAgICAgICAgICAoY2hvaWNlCisgICAgICAgICAgICAgICAgICAgIChjb25z dCA6dGFnICJFbmFibGUgaW4gYWxsIChvdGhlcikgbW9kZXMiIHQpCisgICAgICAgICAgICAgICAg ICAgIChjb25zdCA6dGFnICJEb24ndCBlbmFibGUgaW4gYW55IChvdGhlcikgbW9kZSIKKyAgICAg ICAgICAgICAgICAgICAgICAgICAgIG5pbCkKKyAgICAgICAgICAgICAgICAgICAgKHN5bWJvbCA6 dmFsdWUgZnVuZGFtZW50YWwtbW9kZSA6dGFnCisgICAgICAgICAgICAgICAgICAgICAgICAgICAg IkVuYWJsZSBpbiBtYWpvciBtb2RlIikKKyAgICAgICAgICAgICAgICAgICAgKGNvbnMgOnRhZyAi RG9uJ3QgZW5hYmxlIGluIG1ham9yIG1vZGVzIgorICAgICAgICAgICAgICAgICAgICAgICAgICAo Y29uc3QgOnRhZyAiRG9uJ3QgZW5hYmxlIGluLi4uIiBub3QpCisgICAgICAgICAgICAgICAgICAg ICAgICAgIChyZXBlYXQKKyAgICAgICAgICAgICAgICAgICAgICAgICAgIChzeW1ib2wgOnZhbHVl IGZ1bmRhbWVudGFsLW1vZGUgOnRhZworICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAiTWFqb3IgbW9kZSIpKSkpKSkKKyAgOnZlcnNpb24gIjMxLjEiKQorCiAoZGVmdmFyIGhsLWxp bmUtcmFuZ2UtZnVuY3Rpb24gbmlsCiAgICJJZiBub24tbmlsLCBmdW5jdGlvbiB0byBjYWxsIHRv IHJldHVybiBoaWdobGlnaHQgcmFuZ2UuCiBUaGUgZnVuY3Rpb24gb2Ygbm8gYXJncyBzaG91bGQg cmV0dXJuIGEgY29ucyBjZWxsOyBpdHMgY2FyIHZhbHVlCkBAIC0yMjQsNyArMjU0LDggQEAgZ2xv YmFsLWhsLWxpbmUtbW9kZQogb24gYHBvc3QtY29tbWFuZC1ob29rJy4iCiAgIDpnbG9iYWwgdAog ICA6Z3JvdXAgJ2hsLWxpbmUKLSAgKGlmIGdsb2JhbC1obC1saW5lLW1vZGUKKyAgKGlmIChhbmQg Z2xvYmFsLWhsLWxpbmUtbW9kZQorICAgICAgICAgICAoZWFzeS1tbW9kZS0tZ2xvYmFsaXplZC1w cmVkaWNhdGUtcCBnbG9iYWwtaGwtbGluZS1tb2RlcykpCiAgICAgICAocHJvZ24KICAgICAgICAg OzsgSW4gY2FzZSBga2lsbC1hbGwtbG9jYWwtdmFyaWFibGVzJyBpcyBjYWxsZWQuCiAgICAgICAg IChhZGQtaG9vayAnY2hhbmdlLW1ham9yLW1vZGUtaG9vayAjJ2dsb2JhbC1obC1saW5lLXVuaGln aGxpZ2h0KQotLSAKMi40Ny4wCgo= --000000000000ec0f3706305772d1--
bug-gnu-emacs@HIDDEN
:bug#77022
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 15 Mar 2025 01:22:46 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 14 21:22:46 2025 Received: from localhost ([127.0.0.1]:36915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ttGEg-0002YU-6x for submit <at> debbugs.gnu.org; Fri, 14 Mar 2025 21:22:46 -0400 Received: from lists.gnu.org ([2001:470:142::17]:58864) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eg642616@HIDDEN>) id 1ttGEe-0002YE-Fc for submit <at> debbugs.gnu.org; Fri, 14 Mar 2025 21:22:45 -0400 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 <eg642616@HIDDEN>) id 1ttGEY-0004w7-LT for bug-gnu-emacs@HIDDEN; Fri, 14 Mar 2025 21:22:38 -0400 Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <eg642616@HIDDEN>) id 1ttGEX-0004KW-3u for bug-gnu-emacs@HIDDEN; Fri, 14 Mar 2025 21:22:38 -0400 Received: by mail-oi1-x243.google.com with SMTP id 5614622812f47-3f1c94936c5so1561781b6e.1 for <bug-gnu-emacs@HIDDEN>; Fri, 14 Mar 2025 18:22:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742001755; x=1742606555; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=LC854sUwGKZU205gUaEmijBpmH8VxSfFIBs5gzGoxng=; b=fbfy7HdVk2mZlNHAPyE+pb3/cK3eJf1FUjtWA/CQ/yr161L0lWgeFWIWUm2i8kX1Bm Pf3/tuowCoDTxD4jmIEq92L87o3LYJMX4XL3UZexFM+Qfhfw92qyhwwBaAhe6KwoDcWt xdi6UHkgf5tBwGPDJqnMmPaYEpGozSf0BHsWJMnXYkm4Hhnw2VnSFZru6QinQ4WbUjj7 2ZjkwV77qqeTO3rQ/T7QHB0WaErz8AcgS3+baxv5z+G2Z82dNrIxtJS74ceHU4LW0KXg b00eCJiG/2tYdssu9K89W/qGRrGK77BC999FI1Wqow93GdTQxKc4ngPClQMGrWjPfjZ7 25pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742001755; x=1742606555; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=LC854sUwGKZU205gUaEmijBpmH8VxSfFIBs5gzGoxng=; b=XwfV4NnWkx2C45jfPkrMu3Z6PyhOVWGIWtIcGU4UhywAYjWJIB+qC4rLlzrGjymiu0 trg6QU36VG+Yj2fWxOs5V/YaQ43zOThSDmoNWVesiFsM20WDm5qu8gWDNiDi9CGzh3ji x9/07c/Jgf7EvFSSeAVJaNMwFjMx6v2t9KLPGDORh+UgNXZqaKF7woV7/4ZMq7f7MHmL djJ6Ew8nZSpJt5nEtXspRtDG2XxG6GzFGOeKTEL7bEGWxu74AX3cGwe3C4qWQ0NuvOOT xdPif1fGin8WyMVAMJL3HhXaT5Gm1IcsZ9mUAGtQoQwRek/kRbQ01wFHw73DtPZDr51O z2qQ== X-Gm-Message-State: AOJu0Yzse2AgicHZEwWzIWC5aIOGXpIuSohq6yGSvUYR+/jtLZPpvh8T Pg5KH9cWWb79aYZGhtPnq9CM4bb48EY94i1lydjquM9JHqAumAVxO29JrJyB X-Gm-Gg: ASbGnctWtW+XaBmFOKSlLNR+OEQw6U5W7QpGzy8RA9ZSc4PrkM7eJktcR4gjpQPVOCd 4ZWie4Psc4y++iAO2XlgzrnbLs0d+vuGB4JMKiA1D3Z71Kk7vOvFJpi3nVQcu4TU/HCBSeacEIY Rr9EK8BbIgCtwjumwiSRBKfTjavCFMD4K6Clka8zNtV6h4Tdnf1N7JJFQ0IeFOAk7TbZqez1rgZ EUFqdbCoQOy3p3PmcvAWcuQpsZpv8Xu/xY1YYvotr8av3OM0u2WjLyYszfPmXLOP2vuO+oZbbqw 294JQMI5GHqZ X-Google-Smtp-Source: AGHT+IEg5ZeMa2yzfyWVQOzMJMc1QFRWdJk0E4d9bpnIDcS4+fVDGAfgFS9xjL0NwF1sXUOWwJB47w== X-Received: by 2002:a05:6808:2017:b0:3fa:10b4:6986 with SMTP id 5614622812f47-3fcbb6bedc0mr3909252b6e.15.1742001755456; Fri, 14 Mar 2025 18:22:35 -0700 (PDT) Received: from fedora ([2806:10ae:e:8def::a]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3fcd481f52esm912194b6e.23.2025.03.14.18.22.34 for <bug-gnu-emacs@HIDDEN> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 18:22:35 -0700 (PDT) From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: [PATCH] Allow specify in which major modes global-hl-line-mode must be enabled. Date: Fri, 14 Mar 2025 19:22:33 -0600 Message-ID: <874izv3x5y.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::243; envelope-from=eg642616@HIDDEN; helo=mail-oi1-x243.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello, this patch add a user option for specify in which major modes should global-hl-line-mode be switched on. Originally i wanted to replace global-hl-line define-minor-mode definition with define-globalized-minor-mode, however i found that this was already done and was reverted in *a34afbf2aea2fdaf691f4bf250 [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (eg642616[at]gmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (eg642616[at]gmail.com) 0.0 HTML_MESSAGE BODY: HTML included in message X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.2 (/) --=-=-= Content-Type: multipart/alternative; boundary="==-=-=" --==-=-= Content-Type: text/plain Hello, this patch add a user option for specify in which major modes should global-hl-line-mode be switched on. Originally i wanted to replace global-hl-line define-minor-mode definition with define-globalized-minor-mode, however i found that this was already done and was reverted in *a34afbf2aea2fdaf691f4bf250a18991b21301d7* commit, so I decided to bring this feature, since i find this better than using add-hook. --==-=-= Content-Type: text/html <p> Hello, this patch add a user option for specify in which major modes should global-hl-line-mode be switched on. </p> <p> Originally i wanted to replace global-hl-line define-minor-mode definition with define-globalized-minor-mode, however i found that this was already done and was reverted in <b>a34afbf2aea2fdaf691f4bf250a18991b21301d7</b> commit, so I decided to bring this feature, since i find this better than using add-hook. </p> --==-=-=-- --=-=-= Content-Type: text/plain -- - E.G via GNU Emacs and Org. --=-=-=--
Elijah Gabe Pérez <eg642616@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#77022
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.