From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#20253: 24.4; Document `region' face behavior changes, overlay, priority Date: Mon, 12 Sep 2016 10:19:42 -0700 (PDT) Message-ID: References: <<0ad651bb-89bc-4e86-9354-063db1c400a2@default>> <<87inu2vx36.fsf@gmail.com>> <<83k2eh9ic9.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1473700893 14456 195.159.176.226 (12 Sep 2016 17:21:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2016 17:21:33 +0000 (UTC) Cc: 20253@debbugs.gnu.org To: Eli Zaretskii , Alex Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 12 19:21:29 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjUv4-000277-Pm for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Sep 2016 19:21:22 +0200 Original-Received: from localhost ([::1]:44307 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjUux-00044y-DZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Sep 2016 13:21:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjUuq-00044d-12 for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2016 13:21:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjUuj-0008Ti-UO for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2016 13:21:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjUuj-0008TY-Qi for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2016 13:21:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bjUuj-0007UJ-Ju for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2016 13:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Sep 2016 17:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20253 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20253-submit@debbugs.gnu.org id=B20253.147370080428705 (code B ref 20253); Mon, 12 Sep 2016 17:21:01 +0000 Original-Received: (at 20253) by debbugs.gnu.org; 12 Sep 2016 17:20:04 +0000 Original-Received: from localhost ([127.0.0.1]:57882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjUto-0007Sv-Jq for submit@debbugs.gnu.org; Mon, 12 Sep 2016 13:20:04 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:38900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjUtm-0007SM-8d for 20253@debbugs.gnu.org; Mon, 12 Sep 2016 13:20:02 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u8CHJtdN015144 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Sep 2016 17:19:55 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id u8CHJsb6022156 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 12 Sep 2016 17:19:55 GMT Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u8CHJmdM021874; Mon, 12 Sep 2016 17:19:54 GMT In-Reply-To: <<83k2eh9ic9.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6753.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123226 Archived-At: > > The Elisp manual does mention that "Emacs sometimes uses non-numeric > > priority values for some of its internal overlays", but it would be nic= e > > if it documented what those were and what they mean. > > > > The comments in simple.el mention that a cons cell value represents > > primary/secondary priorities, but it's not clear what the difference is= . >=20 > See compare_overlays in buffer.c. >=20 > The ELisp manual is not supposed to be a comprehensive documentation > of the Emacs internals, it's supposed to provide information for users > who write Lisp programs. People who develop Emacs itself will need to > read the sources anyway. So it's not a big deal if some obscure > feature is not described in the manual, it just means it is not > supposed to be used by Lisp programs that are not part of Emacs. I disagree that THIS is an "internal" and "obscure" feature, and that "it is not supposed to be used by Lisp programs that are not part of Emacs". It cannot be, if users want to control the behavior of the `region' overlay and similar. Questions about this arise from end users. The change in behavior to not have highlighting of the selected text (region) take precedence over other highlighting has provoked some users to ask how they can get the previous behavior again, etc. More generally, it is a fairly common question how to juggle overlay priorities to get the effect of what (nil . NUMBER) provides. Such questions, and their answers, immediately lead users to this feature (after someone digs it out for them). They ask about understanding and controlling the _behavior_. They end up needing to know about (nil . NUMBER) - but it is not something that they started out wondering about. This is not about some curious user wanting to delve into "Emacs internals". And the question of this bug report is not only about documenting (nil . NUMBER). It is about documenting the user-visible _behavior_ change for region highlighting, and how to accommodate and control it. >> IOW, please communicate with your users about such changes: what >> they mean for users (what behavior differences they can expect), >> and how they can manipulate/customize the behavior. It's the least that users can expect from the extensible, customizable, self-documenting editor.