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: keymap in yank-excluded-properties Date: Sun, 01 Sep 2002 09:15:21 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: References: <20020822.173129.01368056.Takaaki.Ota@am.sony.com> <200208250525.g7P5PfH11882@wijiji.santafe.edu> <5x3ct2y2nr.fsf@kfs2.cua.dk> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1030886286 7241 127.0.0.1 (1 Sep 2002 13:18:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 1 Sep 2002 13:18:06 +0000 (UTC) Cc: Takaaki.Ota@am.sony.com, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17lUc8-0001sf-00 for ; Sun, 01 Sep 2002 15:18:04 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17lV9s-0006jP-00 for ; Sun, 01 Sep 2002 15:52:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17lUda-0004go-00; Sun, 01 Sep 2002 09:19:34 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17lUZa-0003vZ-00 for emacs-devel@gnu.org; Sun, 01 Sep 2002 09:15:26 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17lUZW-0003uS-00 for emacs-devel@gnu.org; Sun, 01 Sep 2002 09:15:25 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17lUZV-0003u6-00 for emacs-devel@gnu.org; Sun, 01 Sep 2002 09:15:21 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 17lUZV-0006NP-00; Sun, 01 Sep 2002 09:15:21 -0400 Original-To: storm@cua.dk In-Reply-To: <5x3ct2y2nr.fsf@kfs2.cua.dk> (storm@cua.dk) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7253 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7253 `yank' will look for that property on kill-ring elements and call the function with one argument: the string (or rectangle?) to yank. The function is then responsible for inserting the string in the buffer and remove any unwanted properties [i.e. it is expected to do the actual insertion]. A table could have this property set to a function which check that the string to insert is really a complete table -- and keep the properties in that case [using insert] -- or remove the properties otherwise [using insert-for-yank]. That solution could work. Does anyone see a more narrowly targeted solution to suggest?