From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Using overlay in register Date: Mon, 22 Mar 2004 00:24:52 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040318.193346.21592706.jet@gyve.org> <20040321.230322.85700391.jet@gyve.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1079933650 19179 80.91.224.253 (22 Mar 2004 05:34:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Mar 2004 05:34:10 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Mar 22 06:34:06 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B5I4c-0001t9-00 for ; Mon, 22 Mar 2004 06:34:06 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B5I4b-0002Fx-00 for ; Mon, 22 Mar 2004 06:34:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B5I4a-0002i2-SO for emacs-devel@quimby.gnus.org; Mon, 22 Mar 2004 00:34:04 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B5I0V-0000nH-6z for emacs-devel@gnu.org; Mon, 22 Mar 2004 00:29:51 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B5Hzw-0000TL-PI for emacs-devel@gnu.org; Mon, 22 Mar 2004 00:29:49 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B5Hzw-0000Sp-A2 for emacs-devel@gnu.org; Mon, 22 Mar 2004 00:29:16 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1B5Hvg-00078X-K5; Mon, 22 Mar 2004 00:24:52 -0500 Original-To: Masatake YAMATO In-reply-to: <20040321.230322.85700391.jet@gyve.org> (message from Masatake YAMATO on Sun, 21 Mar 2004 23:03:22 +0900 (JST)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20703 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20703 Thank you for reviwing and suggestion. I have used after-string. If the point is at the end of line, set a space to an overlay's `after-string' property. That may give inconsistent results. What if I delete the following newline? Then it will no longer be at the end of the line, but the overlay will still have a space in the `after-string' property. +(defun register-clear-overlay-at-point (event) + "Clear the register associated with an overlay pointed by EVENT." + (interactive "e") + (save-excursion Why is this feature useful?