GNU bug report logs - #36361
'hl-line-range-function' as list of choice

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Sebastian Urban <mrsebastianurban@HIDDEN>; dated Mon, 24 Jun 2019 16:31:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 36361 <at> debbugs.gnu.org:


Received: (at 36361) by debbugs.gnu.org; 8 Jul 2019 23:51:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 08 19:51:47 2019
Received: from localhost ([127.0.0.1]:59989 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hkdQB-0008RA-Es
	for submit <at> debbugs.gnu.org; Mon, 08 Jul 2019 19:51:47 -0400
Received: from quimby.gnus.org ([80.91.231.51]:35940)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1hkdQA-0008R1-5p
 for 36361 <at> debbugs.gnu.org; Mon, 08 Jul 2019 19:51:46 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1hkdQ4-0006aY-Kc; Tue, 09 Jul 2019 01:51:42 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Sebastian Urban <mrsebastianurban@HIDDEN>
Subject: Re: bug#36361: 'hl-line-range-function' as list of choice
References: <57613049-fca3-ba0e-82b1-3ff2e1995da8@HIDDEN>
Date: Tue, 09 Jul 2019 01:51:40 +0200
In-Reply-To: <57613049-fca3-ba0e-82b1-3ff2e1995da8@HIDDEN> (Sebastian
 Urban's message of "Mon, 24 Jun 2019 18:30:18 +0200")
Message-ID: <871rz0gk4z.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Sebastian Urban <mrsebastianurban@HIDDEN> writes: >
 Because
 'hl-line-mode' highlight logical line instead of screen line > when
 'visual-line-mode'
 is active, and for example 'C-a' and 'C-e' > change behaviour, some people
 want 'hl-line-mode' to chang [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36361
Cc: 36361 <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: -1.0 (-)

Sebastian Urban <mrsebastianurban@HIDDEN> writes:

> Because 'hl-line-mode' highlight logical line instead of screen line
> when 'visual-line-mode' is active, and for example 'C-a' and 'C-e'
> change behaviour, some people want 'hl-line-mode' to change the
> behaviour as well.  They usually use 'hl-line-range-function' to
> define how it should highlight, but... cannot it be made simpler?
> Like by making 'hl-line-range-function' a list of choice:
> - nil for default behaviour,
> - "Screen line" to change to screen line,
> - "Function" for user to write what he wants.

I think that makes sense, and I think `visual-line-mode' should adjust
`hl-line-range-function' automatically to do the visual line highlight.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#36361; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Jun 2019 16:30:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 24 12:30:28 2019
Received: from localhost ([127.0.0.1]:57791 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hfRrP-0007Bx-RQ
	for submit <at> debbugs.gnu.org; Mon, 24 Jun 2019 12:30:28 -0400
Received: from lists.gnu.org ([209.51.188.17]:46372)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mrsebastianurban@HIDDEN>) id 1hfRrO-0007Ai-PN
 for submit <at> debbugs.gnu.org; Mon, 24 Jun 2019 12:30:27 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:60921)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <mrsebastianurban@HIDDEN>) id 1hfRrN-0008AW-Rp
 for bug-gnu-emacs@HIDDEN; Mon, 24 Jun 2019 12:30:26 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mrsebastianurban@HIDDEN>) id 1hfRrM-0001gc-VO
 for bug-gnu-emacs@HIDDEN; Mon, 24 Jun 2019 12:30:25 -0400
Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:50953)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <mrsebastianurban@HIDDEN>)
 id 1hfRrM-0001f1-JN
 for bug-gnu-emacs@HIDDEN; Mon, 24 Jun 2019 12:30:24 -0400
Received: by mail-wm1-x32d.google.com with SMTP id c66so14510wmf.0
 for <bug-gnu-emacs@HIDDEN>; Mon, 24 Jun 2019 09:30:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=to:from:subject:message-id:date:user-agent:mime-version
 :content-language:content-transfer-encoding;
 bh=hjnjsSd8zaoAryN+Jqx6PZ0Flq/V51oimGqcmtnlTQE=;
 b=PJTALFKVE59Kd4n0/9JS4bUMFu+55t47dr/AcYgzmdOrhBDFvgp3QfEargACL2IA+g
 hm/Qp88o1TUPcbtXxssUwNfbKYN6LoN4/ZvsKUVMY18M8eirhbOO0RFERz+GvvEtcPtH
 HJeRa22ix4aLrDgDRyfRcdsSsDGPTlrZaMQW+JYMp8GY05DyUfSyzcZ+eUqvVQkCdPOq
 9froPvXY3YdgGKvEPIJNw3+ON+22l6JsJHIX52GWG6z5vypAVe0roRD625phFai1UuCX
 ZbMoqYcQMd2OgF4tdTLSYSfqwVu74UupjbudrtVJEY/xw+W4ZB9uNtqVAPL2V/y8y+wx
 4kiA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:to:from:subject:message-id:date:user-agent
 :mime-version:content-language:content-transfer-encoding;
 bh=hjnjsSd8zaoAryN+Jqx6PZ0Flq/V51oimGqcmtnlTQE=;
 b=QqksTrvpMBdsI0Ehi6ADO/SxKRZpCoC6mfdtg1EiU2N09yo017OC1FWhNNDRG2ix6r
 G6RABWEesNMdyzs587kgMaQZGZtCz1OsVeKe4tXOTsOLyPVRRBDh5ZfOb/UR75zlvxlw
 efeqIeyhB2+AUymlMagFjc5m2ZiF1t5T0j9TQegP8esDnJ9qtH8e3w12roBNb07TWlAl
 Vo2MyEM5Oz6yF7LBZMFQasLtYw4O/BCfHLIR4Odc/KvtL2D2DOzYspxbH0KhLLskJFR4
 uGdjQIsY8Q8XRgpb9jMQpseawZ7CqZeleyKo0kQPH6Juse2syIDlT+/TZ7MtWbkqJO77
 hUzQ==
X-Gm-Message-State: APjAAAUjRwepbrdO4JMKB5kZ3PZaDQn2lGhzI6xOrrfcCDlJXXA7KuO6
 IbPvBUNFCEkXkYwKW2gymrXTL2mC
X-Google-Smtp-Source: APXvYqyjduJ+tjUzHaIOw/pdeOc8nkF7RDe8gsVnrm5mJ+OZaQC5QwUhbQgVa2mJKjEkYMK0KJ43GQ==
X-Received: by 2002:a1c:e28b:: with SMTP id
 z133mr15403664wmg.136.1561393822966; 
 Mon, 24 Jun 2019 09:30:22 -0700 (PDT)
Received: from ?IPv6:2a00:f41:1870:f1b8:ed6d:9890:85f5:2b6d?
 ([2a00:f41:1870:f1b8:ed6d:9890:85f5:2b6d])
 by smtp.gmail.com with ESMTPSA id 32sm23279357wra.35.2019.06.24.09.30.21
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 24 Jun 2019 09:30:22 -0700 (PDT)
To: Bug GNU Emacs <bug-gnu-emacs@HIDDEN>
From: Sebastian Urban <mrsebastianurban@HIDDEN>
Subject: 'hl-line-range-function' as list of choice
Message-ID: <57613049-fca3-ba0e-82b1-3ff2e1995da8@HIDDEN>
Date: Mon, 24 Jun 2019 18:30:18 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101
 Thunderbird/60.7.2
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-GB
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:1450:4864:20::32d
X-Spam-Score: -1.3 (-)
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: -2.3 (--)

Because 'hl-line-mode' highlight logical line instead of screen line
when 'visual-line-mode' is active, and for example 'C-a' and 'C-e'
change behaviour, some people want 'hl-line-mode' to change the
behaviour as well.  They usually use 'hl-line-range-function' to
define how it should highlight, but... cannot it be made simpler?
Like by making 'hl-line-range-function' a list of choice:
- nil for default behaviour,
- "Screen line" to change to screen line,
- "Function" for user to write what he wants.
I'm writing this from perspective of "Customize" menu.


S. U.


In GNU Emacs 26.2 (build 1, i686-w64-mingw32)
  of 2019-04-13 built on CIRROCUMULUS
Repository revision: fd1b34bfba8f3f6298df47c8e10b61530426f749
Windowing system distributor 'Microsoft Corp.', version 6.1.7601




Acknowledgement sent to Sebastian Urban <mrsebastianurban@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#36361; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.