From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: confusing info in C-u C-x = Date: Thu, 08 Dec 2005 10:49:04 +0900 Message-ID: References: <20051120.105550.163003414.wl@gnu.org> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1134006668 5510 80.91.229.2 (8 Dec 2005 01:51:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Dec 2005 01:51:08 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 08 02:51:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EkAuR-0002OR-BL for ged-emacs-devel@m.gmane.org; Thu, 08 Dec 2005 02:49:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EkAuh-00074s-NC for ged-emacs-devel@m.gmane.org; Wed, 07 Dec 2005 20:49:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EkAuY-00074m-3g for emacs-devel@gnu.org; Wed, 07 Dec 2005 20:49:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EkAuW-00074a-L1 for emacs-devel@gnu.org; Wed, 07 Dec 2005 20:49:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EkAuW-00074X-I6 for emacs-devel@gnu.org; Wed, 07 Dec 2005 20:49:28 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EkAvQ-0004OA-R8; Wed, 07 Dec 2005 20:50:25 -0500 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id jB81n69P027735; Thu, 8 Dec 2005 10:49:06 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id jB81n6dK028016; Thu, 8 Dec 2005 10:49:06 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1EkAu8-0004QI-00; Thu, 08 Dec 2005 10:49:04 +0900 Original-To: Andreas Schwab In-reply-to: (message from Andreas Schwab on Sun, 20 Nov 2005 16:16:22 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:47191 Archived-At: In article , Andreas Schwab writes: [...] >> There is an overlay here: >> From 14 to 15 [...] >> What does the `From 14 to 15' mean? > It is supposed to be the overlay start and end, but uses the overlay that > has been put at the character in the help buffer instead of the original > overlay. This was apparently a deliberate choice so that you can do C-u > C-x = on a character in the *Help* buffer and still get information on the > text properties and overlays: > 2004-05-05 Kenichi Handa > * descr-text.el (describe-char): Copy the character with text > properties and overlays into the first line, and call > describe-text-properties on it. > Unfortunately that has the side effect of losing the original overlay > position. I've just installed two changes to fix it. (1) Use *Help-2* buffer if the current buffer is *Help*. The function describe-text-properties already does it. (2) Don't change the value of arg POS in describe-char, and call describe-text-properties while temporarily setting the original buffer. martin rudalics writes: > You could try the following patch: [...] > ;;;###autoload > ! (defun describe-text-properties (pos &optional output-buffer overlay-bounds) [...] I think that adding the arg OVERLAY-BOUNDS is too adhoc. To make this function more convenient, isn't it better to add arg OBJECT (buffer of string POS is pointing to) just like the other text property related functions ... after the release? --- Kenichi Handa handa@m17n.org