From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#9159: 24.0.50; `undo' is not as good as it should be wrt property changes Date: Tue, 02 Aug 2011 23:13:10 +0200 Message-ID: References: <2770D343D58A43A6A97AC158A2C6B677@us.oracle.com> <7FC41925A39D4B16A7F1CB3CCF4A4371@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312319684 29586 80.91.229.12 (2 Aug 2011 21:14:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 2 Aug 2011 21:14:44 +0000 (UTC) Cc: 9159@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 02 23:14:40 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QoMIR-0000TK-Kk for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Aug 2011 23:14:39 +0200 Original-Received: from localhost ([::1]:36642 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoMIR-0005Bn-5F for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Aug 2011 17:14:39 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoMIM-0005BE-6c for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2011 17:14:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QoMIK-0001WP-Pg for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2011 17:14:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoMIK-0001WL-O4 for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2011 17:14:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QoMIo-0005E2-Dl; Tue, 02 Aug 2011 17:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Aug 2011 21:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9159 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9159-submit@debbugs.gnu.org id=B9159.131231965420018 (code B ref 9159); Tue, 02 Aug 2011 21:15:02 +0000 Original-Received: (at 9159) by debbugs.gnu.org; 2 Aug 2011 21:14:14 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QoMI2-0005Cp-1y for submit@debbugs.gnu.org; Tue, 02 Aug 2011 17:14:14 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QoMI0-0005Ci-Eb for 9159@debbugs.gnu.org; Tue, 02 Aug 2011 17:14:13 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QoMHP-0001Cc-0f; Tue, 02 Aug 2011 23:13:35 +0200 In-Reply-To: (Drew Adams's message of "Tue, 2 Aug 2011 13:48:03 -0700") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEVYNFmUjKrH2d+QWpuN Z52MdZ+BTZGrscfgqOqoAAACaUlEQVQ4jVXTQXeiMBAHcHxP2esmilxLtm2utYN4rYvgtRSCV1gl Xku2mq+/M0HdmgPh8eM/M/DAe/PnPPImdtZ/+u/et4VgomZig/5z8vM75BNMENjP0T10lBhbZh8u 0HRuq9sBenmBpvEalxjNjWzGxsoH6uHjxXcHb+2cS+0jPI9fELzhfoQjgTZGPngvd+Mea4S9g7v1 1r5TwnL57NVYqbmNO0DI5bkVjNmeMaYYCxBqbhMdGnleiDKWv5Zhf/gGOyHPK5EuBILdYOgKXIjz luARITNP4Om164EwX4ipAzkAJbT+QFgRREsuMvMI11KvwtzAKPOFkDn4g/Aq4Ap/Ey9FEEBQ/hYQ XwG8UiGkCcGHATAIPCDIVY6gj0JMMRkbueAmGHo4aIUocV8gGMMuYMQ0aY0suUxX/6HuaoIOwUjA xIrghM07KpXsjUxNNIUL9AhYSkKytwgSBggIamxuU4CQEgC8RzjxfphKOtgQhP3CiFPoAN8sQVRR KQJM0LjrPBRTgJ2kyrDtYy5OOxpXaQehZIah94CJHTWvBthZy3HbfkF4BzECDbdycKTmuQ5ZRQmm NhvYzgh+OPAVU+myCBSufD2DnXgaMQTtZ4Uq44yuq7qdwdpEF1AqSwkOlaq6GSx41CLUWuMnW0Gn lOcpNYDCHrrWmNgQ6AOezWBpejWb0lRYJQU8aCxVINg7oJEyl4hDqyqExs8UPgcC3pFmFUFRlQRr liY6K1gdA2TBPez3WXsDZtkhvYLedEUJCFiqQMhvkE+KegAobHCBvtQ6HxfTARIVBn5O/+eSlYnO Dw7iKkWY+9k/ERUHOqfWAEYAAAAASUVORK5CYII= X-Now-Playing: Lush's _Scar_: "Baby Talk" X-MailScanner-ID: 1QoMHP-0001Cc-0f MailScanner-NULL-Check: 1312924415.74659@VJAYasHHwwMRVkC+gCYMHw X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 02 Aug 2011 17:15:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49851 Archived-At: "Drew Adams" writes: > I already said in the OP that "while correct" (N.B.) "it would be > better for the property `foo' to simply be removed." I don't think this is a bug (or should be fixed), but I wonder whether it would make sense for Fput_text_property to just delete the property instead of adding/setting `prop nil' to the property list in general? That is, if I say (put-text-property (point-min) (1+ (point-min)) 'foo nil) today, `foo nil' is added. Perhaps it should just be ignored if not already there, and if it's already set, then it should be removed? If we have established that there is no semantic difference between nil properties and missing properties, then this sounds like there could be (very minor) memory and redisplay efficiencies to be won here. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/