GNU logs - #5320, boring messages


Message sent to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:


X-Loop: bug-gnu-emacs@HIDDEN
Subject: bug#5320: yank-pop does not work in table mode
Reply-To: harven <harven@HIDDEN>, 5320 <at> debbugs.gnu.org
Mail-Followup-To: harven <harven@HIDDEN>, 5320 <at> debbugs.gnu.org
Resent-From: harven <harven@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 05 Jan 2010 19:53:04 +0000
Resent-Message-ID: <handler.5320.B.126272116025727 <at> debbugs.gnu.org>
Resent-Sender: bug-gnu-emacs@HIDDEN
X-Emacs-PR-Message: report 5320
X-Emacs-PR-Package: emacs
X-Emacs-PR-Keywords: 
Received: via spool by submit <at> debbugs.gnu.org id=B.126272116025727
          (code B ref -1); Tue, 05 Jan 2010 19:53:04 +0000
Received: (at submit) by debbugs.gnu.org; 5 Jan 2010 19:52:40 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1NSFS7-0006gk-Tc
	for submit <at> debbugs.gnu.org; Tue, 05 Jan 2010 14:52:40 -0500
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <yves.coudene@HIDDEN>) id 1NSD3P-0005cD-3I
	for submit <at> debbugs.gnu.org; Tue, 05 Jan 2010 12:18:59 -0500
Received: from mx10.gnu.org ([199.232.76.166]:38520)
	by fencepost.gnu.org with esmtp (Exim 4.69)
	(envelope-from <yves.coudene@HIDDEN>) id 1NSD3K-0006aU-LP
	for submit <at> debbugs.gnu.org; Tue, 05 Jan 2010 12:18:42 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.60) (envelope-from <yves.coudene@HIDDEN>)
	id 1NSD3I-00023G-Sd
	for submit <at> debbugs.gnu.org; Tue, 05 Jan 2010 12:18:42 -0500
X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,
	UNPARSEABLE_RELAY autolearn=ham version=3.1.0
Received: from lists.gnu.org ([199.232.76.165]:56662)
	by monty-python.gnu.org with esmtps
	(TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60)
	(envelope-from <yves.coudene@HIDDEN>) id 1NSD3I-00022f-Kq
	for submit <at> debbugs.gnu.org; Tue, 05 Jan 2010 12:18:40 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NSD3I-0006Zv-28
	for bug-gnu-emacs@HIDDEN; Tue, 05 Jan 2010 12:18:40 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1NSD3D-0006Tu-2r
	for bug-gnu-emacs@HIDDEN; Tue, 05 Jan 2010 12:18:39 -0500
Received: from [199.232.76.173] (port=35552 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NSD3C-0006TS-Lz
	for bug-gnu-emacs@HIDDEN; Tue, 05 Jan 2010 12:18:34 -0500
Received: from smtp4-g21.free.fr ([212.27.42.4]:55447)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <yves.coudene@HIDDEN>) id 1NSD3B-0001xB-S9
	for bug-gnu-emacs@HIDDEN; Tue, 05 Jan 2010 12:18:34 -0500
Received: from smtp4-g21.free.fr (localhost [127.0.0.1])
	by smtp4-g21.free.fr (Postfix) with ESMTP id 8A00D4C819F
	for <bug-gnu-emacs@HIDDEN>; Tue,  5 Jan 2010 18:18:27 +0100 (CET)
Received: from wapiti.local (unknown [78.233.232.132])
	by smtp4-g21.free.fr (Postfix) with ESMTP id 6930A4C8242
	for <bug-gnu-emacs@HIDDEN>; Tue,  5 Jan 2010 18:18:25 +0100 (CET)
To: bug-gnu-emacs@HIDDEN
From: harven <harven@HIDDEN>
Date: Tue, 05 Jan 2010 18:18:25 +0100
Message-ID: <m2iqbgtqqm.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6,
	seldom 2.4 (older, 4)
X-Spam-Score: -6.6 (------)
X-Mailman-Approved-At: Tue, 05 Jan 2010 14:52:22 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/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: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.6 (------)

Yank-pop does not work when the cursor is in a cell of a table created
with table mode.

Starting with emacs -Q, create a table (default 3x3)

M-x table-insert RET RET RET RET RET

Then put the cursor in some cell, write a word, kill it, write another word,
kill it again.

word1 M-b C-k word2 M-b C-k

Then try to yank-pop to retrieve the first word

C-y M-y

I get in the minibuffer

Wrong type argument: number-or-marker-p, nil

yank-pop works if the cursor is not in a cell. If I come back in a cell
after yanking outside the table, and try to yank-pop in the cell, no error
is reported but the table is messed up, all cells after the cursor are
destroyed.

In GNU Emacs 22.1.1 (i386-apple-darwin8.10.1, X toolkit)
Also tested in GNU Emacs 23.1 under Debian gnu/linux.






Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: bug-gnu-emacs@HIDDEN
From: bug-gnu-emacs@HIDDEN (Emacs bug Tracking System)
To: harven <harven@HIDDEN>
Subject: bug#5320: Acknowledgement (yank-pop does not work in table mode)
Message-ID: <handler.5320.B.126272116025727.ack <at> debbugs.gnu.org>
References: <m2iqbgtqqm.fsf@HIDDEN>
X-Emacs-PR-Message: ack 5320
X-Emacs-PR-Package: emacs
Reply-To: 5320 <at> debbugs.gnu.org
Date: Tue, 05 Jan 2010 19:53:05 +0000

Thank you for filing a new bug report with Emacs.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 5320 <at> debbugs.gnu.org.

Please do not send mail to bug-gnu-emacs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
5320: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5320
Emacs Bug Tracking System
Contact bug-gnu-emacs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#5320: yank-pop does not work in table mode
Resent-From: npostavs@HIDDEN
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 06 Jul 2016 23:47:01 +0000
Resent-Message-ID: <handler.5320.B5320.14678488208481 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 5320
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: harven <harven@HIDDEN>
Cc: 5320 <at> debbugs.gnu.org
Received: via spool by 5320-submit <at> debbugs.gnu.org id=B5320.14678488208481
          (code B ref 5320); Wed, 06 Jul 2016 23:47:01 +0000
Received: (at 5320) by debbugs.gnu.org; 6 Jul 2016 23:47:00 +0000
Received: from localhost ([127.0.0.1]:39998 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bKwWx-0002Cd-Se
	for submit <at> debbugs.gnu.org; Wed, 06 Jul 2016 19:47:00 -0400
Received: from mail-it0-f48.google.com ([209.85.214.48]:36058)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1bKwWw-0002CL-10; Wed, 06 Jul 2016 19:46:58 -0400
Received: by mail-it0-f48.google.com with SMTP id g4so79144112ith.1;
 Wed, 06 Jul 2016 16:46:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=oYeegEDflduiClNHvqFeeDHxhVF5kNTIg9RbkhESJcU=;
 b=bCrSznJIzhvBxfjy680LInHLS1RZls+kWmwk3ZmVGygm8QDMmbVLJuoUmUgGumFRcr
 3qF9LK9Yza7+kN3vzegZ/I8caLHSjsqd5PHWBdsJrwijapG8K73x6oQAhiBzhFGVDsIw
 Pc0J8HHpwuWpbvHMVWDxSLPQze4WMb69slMuF0dFu53vy6Xnq+uM4REMucFQsYO57py/
 sWt4u4Q8uuATQOoUrQrkFNRTGkk+xbj91IzUc6nR18QRwgOFNmaxDchWEmQP+4VTs4ZE
 P/KIG7foB9B95MXGrLv83lDchuw9HDb9dRhI7Vvdt+faicpjxkFmIzAY0+Cii1myLBQH
 lyRA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:from:to:cc:subject:references:date
 :in-reply-to:message-id:user-agent:mime-version;
 bh=oYeegEDflduiClNHvqFeeDHxhVF5kNTIg9RbkhESJcU=;
 b=gy9CWK87bQ6D4BdiZvdTuC5vypJgPvoFLAOXi5YF8PqhL+rvfBP4cBZdKzy+Egd8tO
 Xiwk08i9GzkryJL5PR/e9XU/FcU52yP1EcFxR06SBeN/GSyzfwWpjuoZtaPOdFh3+C2O
 ARjwdXu8h0/qKrUshfKkhkn/OKwLtWSg4mN4xSFBrsmr/0GmpHxmpZMDfJkUE4teu5Zl
 AsbOqyuGI7ySxaU1SLT33k6gexNHb8BhqAJLO1H7242Kd1TFLIQycpMnRUioCOLXYC1f
 h0MPPoff4KL5RFfG1Q6az1rccFgtHu/6eHGghme2a4lTzzTBHNU1YMVlQxOgIAJlZF+x
 3XAg==
X-Gm-Message-State: ALyK8tLwj8EQ790tbwxVuIUP9/mUzL/ylBLcTycKyeDq3FVKqo6DgnLDSaDoW4gfU9TTcw==
X-Received: by 10.36.74.137 with SMTP id k131mr22347142itb.85.1467848812530;
 Wed, 06 Jul 2016 16:46:52 -0700 (PDT)
Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44])
 by smtp.googlemail.com with ESMTPSA id j134sm1661853ioe.38.2016.07.06.16.46.51
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 06 Jul 2016 16:46:51 -0700 (PDT)
From: npostavs@HIDDEN
References: <m2iqbgtqqm.fsf@HIDDEN>
Date: Wed, 06 Jul 2016 19:47:00 -0400
In-Reply-To: <m2iqbgtqqm.fsf@HIDDEN> (harven@HIDDEN's message of "Tue, 
 05 Jan 2010 18:18:25 +0100")
Message-ID: <87mvlucosr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
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: -0.7 (/)

found 5320 25.0.95
tags 5320 confirmed
quit

Problem seems to be that the mark ends up in the table cache buffer instead of the main one.

Adding yank-pop as one of the specially handles sort of helps a bit, but
even with that it's still broken: yank-pop doesn't throw error, but
previously yanked text is not removed.  I think correct solution would
involve using after-change-functions rather trying to wrap each command
individually.

diff --git i/lisp/textmodes/table.el w/lisp/textmodes/table.el
index 653db83..2e4dd6d 100644
--- i/lisp/textmodes/table.el
+++ w/lisp/textmodes/table.el
@@ -1395,5 +1395,5 @@ (dolist (command
 ;; Pasting Group
 (dolist (command
-         '(yank
+         '(yank yank-pop ; <-- this doesn't quite work
            clipboard-yank
            yank-clipboard-selection




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


Received: (at control) by debbugs.gnu.org; 6 Jul 2016 23:47:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 06 19:46:59 2016
Received: from localhost ([127.0.0.1]:39996 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bKwWx-0002Cb-Lo
	for submit <at> debbugs.gnu.org; Wed, 06 Jul 2016 19:46:59 -0400
Received: from mail-it0-f48.google.com ([209.85.214.48]:36058)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1bKwWw-0002CL-10; Wed, 06 Jul 2016 19:46:58 -0400
Received: by mail-it0-f48.google.com with SMTP id g4so79144112ith.1;
 Wed, 06 Jul 2016 16:46:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=oYeegEDflduiClNHvqFeeDHxhVF5kNTIg9RbkhESJcU=;
 b=bCrSznJIzhvBxfjy680LInHLS1RZls+kWmwk3ZmVGygm8QDMmbVLJuoUmUgGumFRcr
 3qF9LK9Yza7+kN3vzegZ/I8caLHSjsqd5PHWBdsJrwijapG8K73x6oQAhiBzhFGVDsIw
 Pc0J8HHpwuWpbvHMVWDxSLPQze4WMb69slMuF0dFu53vy6Xnq+uM4REMucFQsYO57py/
 sWt4u4Q8uuATQOoUrQrkFNRTGkk+xbj91IzUc6nR18QRwgOFNmaxDchWEmQP+4VTs4ZE
 P/KIG7foB9B95MXGrLv83lDchuw9HDb9dRhI7Vvdt+faicpjxkFmIzAY0+Cii1myLBQH
 lyRA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:from:to:cc:subject:references:date
 :in-reply-to:message-id:user-agent:mime-version;
 bh=oYeegEDflduiClNHvqFeeDHxhVF5kNTIg9RbkhESJcU=;
 b=gy9CWK87bQ6D4BdiZvdTuC5vypJgPvoFLAOXi5YF8PqhL+rvfBP4cBZdKzy+Egd8tO
 Xiwk08i9GzkryJL5PR/e9XU/FcU52yP1EcFxR06SBeN/GSyzfwWpjuoZtaPOdFh3+C2O
 ARjwdXu8h0/qKrUshfKkhkn/OKwLtWSg4mN4xSFBrsmr/0GmpHxmpZMDfJkUE4teu5Zl
 AsbOqyuGI7ySxaU1SLT33k6gexNHb8BhqAJLO1H7242Kd1TFLIQycpMnRUioCOLXYC1f
 h0MPPoff4KL5RFfG1Q6az1rccFgtHu/6eHGghme2a4lTzzTBHNU1YMVlQxOgIAJlZF+x
 3XAg==
X-Gm-Message-State: ALyK8tLwj8EQ790tbwxVuIUP9/mUzL/ylBLcTycKyeDq3FVKqo6DgnLDSaDoW4gfU9TTcw==
X-Received: by 10.36.74.137 with SMTP id k131mr22347142itb.85.1467848812530;
 Wed, 06 Jul 2016 16:46:52 -0700 (PDT)
Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44])
 by smtp.googlemail.com with ESMTPSA id j134sm1661853ioe.38.2016.07.06.16.46.51
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 06 Jul 2016 16:46:51 -0700 (PDT)
From: npostavs@HIDDEN
To: harven <harven@HIDDEN>
Subject: Re: bug#5320: yank-pop does not work in table mode
References: <m2iqbgtqqm.fsf@HIDDEN>
Date: Wed, 06 Jul 2016 19:47:00 -0400
In-Reply-To: <m2iqbgtqqm.fsf@HIDDEN> (harven@HIDDEN's message of "Tue, 
 05 Jan 2010 18:18:25 +0100")
Message-ID: <87mvlucosr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: control
Cc: 5320 <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: -0.7 (/)

found 5320 25.0.95
tags 5320 confirmed
quit

Problem seems to be that the mark ends up in the table cache buffer instead of the main one.

Adding yank-pop as one of the specially handles sort of helps a bit, but
even with that it's still broken: yank-pop doesn't throw error, but
previously yanked text is not removed.  I think correct solution would
involve using after-change-functions rather trying to wrap each command
individually.

diff --git i/lisp/textmodes/table.el w/lisp/textmodes/table.el
index 653db83..2e4dd6d 100644
--- i/lisp/textmodes/table.el
+++ w/lisp/textmodes/table.el
@@ -1395,5 +1395,5 @@ (dolist (command
 ;; Pasting Group
 (dolist (command
-         '(yank
+         '(yank yank-pop ; <-- this doesn't quite work
            clipboard-yank
            yank-clipboard-selection




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


Received: (at control) by debbugs.gnu.org; 6 Jul 2016 23:47:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 06 19:46:59 2016
Received: from localhost ([127.0.0.1]:39996 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bKwWx-0002Cb-Lo
	for submit <at> debbugs.gnu.org; Wed, 06 Jul 2016 19:46:59 -0400
Received: from mail-it0-f48.google.com ([209.85.214.48]:36058)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1bKwWw-0002CL-10; Wed, 06 Jul 2016 19:46:58 -0400
Received: by mail-it0-f48.google.com with SMTP id g4so79144112ith.1;
 Wed, 06 Jul 2016 16:46:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=oYeegEDflduiClNHvqFeeDHxhVF5kNTIg9RbkhESJcU=;
 b=bCrSznJIzhvBxfjy680LInHLS1RZls+kWmwk3ZmVGygm8QDMmbVLJuoUmUgGumFRcr
 3qF9LK9Yza7+kN3vzegZ/I8caLHSjsqd5PHWBdsJrwijapG8K73x6oQAhiBzhFGVDsIw
 Pc0J8HHpwuWpbvHMVWDxSLPQze4WMb69slMuF0dFu53vy6Xnq+uM4REMucFQsYO57py/
 sWt4u4Q8uuATQOoUrQrkFNRTGkk+xbj91IzUc6nR18QRwgOFNmaxDchWEmQP+4VTs4ZE
 P/KIG7foB9B95MXGrLv83lDchuw9HDb9dRhI7Vvdt+faicpjxkFmIzAY0+Cii1myLBQH
 lyRA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:from:to:cc:subject:references:date
 :in-reply-to:message-id:user-agent:mime-version;
 bh=oYeegEDflduiClNHvqFeeDHxhVF5kNTIg9RbkhESJcU=;
 b=gy9CWK87bQ6D4BdiZvdTuC5vypJgPvoFLAOXi5YF8PqhL+rvfBP4cBZdKzy+Egd8tO
 Xiwk08i9GzkryJL5PR/e9XU/FcU52yP1EcFxR06SBeN/GSyzfwWpjuoZtaPOdFh3+C2O
 ARjwdXu8h0/qKrUshfKkhkn/OKwLtWSg4mN4xSFBrsmr/0GmpHxmpZMDfJkUE4teu5Zl
 AsbOqyuGI7ySxaU1SLT33k6gexNHb8BhqAJLO1H7242Kd1TFLIQycpMnRUioCOLXYC1f
 h0MPPoff4KL5RFfG1Q6az1rccFgtHu/6eHGghme2a4lTzzTBHNU1YMVlQxOgIAJlZF+x
 3XAg==
X-Gm-Message-State: ALyK8tLwj8EQ790tbwxVuIUP9/mUzL/ylBLcTycKyeDq3FVKqo6DgnLDSaDoW4gfU9TTcw==
X-Received: by 10.36.74.137 with SMTP id k131mr22347142itb.85.1467848812530;
 Wed, 06 Jul 2016 16:46:52 -0700 (PDT)
Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44])
 by smtp.googlemail.com with ESMTPSA id j134sm1661853ioe.38.2016.07.06.16.46.51
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 06 Jul 2016 16:46:51 -0700 (PDT)
From: npostavs@HIDDEN
To: harven <harven@HIDDEN>
Subject: Re: bug#5320: yank-pop does not work in table mode
References: <m2iqbgtqqm.fsf@HIDDEN>
Date: Wed, 06 Jul 2016 19:47:00 -0400
In-Reply-To: <m2iqbgtqqm.fsf@HIDDEN> (harven@HIDDEN's message of "Tue, 
 05 Jan 2010 18:18:25 +0100")
Message-ID: <87mvlucosr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: control
Cc: 5320 <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: -0.7 (/)

found 5320 25.0.95
tags 5320 confirmed
quit

Problem seems to be that the mark ends up in the table cache buffer instead of the main one.

Adding yank-pop as one of the specially handles sort of helps a bit, but
even with that it's still broken: yank-pop doesn't throw error, but
previously yanked text is not removed.  I think correct solution would
involve using after-change-functions rather trying to wrap each command
individually.

diff --git i/lisp/textmodes/table.el w/lisp/textmodes/table.el
index 653db83..2e4dd6d 100644
--- i/lisp/textmodes/table.el
+++ w/lisp/textmodes/table.el
@@ -1395,5 +1395,5 @@ (dolist (command
 ;; Pasting Group
 (dolist (command
-         '(yank
+         '(yank yank-pop ; <-- this doesn't quite work
            clipboard-yank
            yank-clipboard-selection





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.