From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Undo-limit default Date: Mon, 08 Dec 2008 14:59:18 -0500 Message-ID: References: <873ah0n4xc.fsf@cyd.mit.edu> <493BC963.3000907@gmx.at> <493BCDB2.1010001@gmx.at> <87vdtwf43c.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228766379 21643 80.91.229.12 (8 Dec 2008 19:59:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2008 19:59:39 +0000 (UTC) Cc: rudalics@gmx.at, cyd@stupidchicken.com, lennart.borgman@gmail.com, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 08 21:00:42 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L9mHZ-0004XD-CI for ged-emacs-devel@m.gmane.org; Mon, 08 Dec 2008 21:00:41 +0100 Original-Received: from localhost ([127.0.0.1]:48145 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9mGO-0000kh-8O for ged-emacs-devel@m.gmane.org; Mon, 08 Dec 2008 14:59:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9mGJ-0000kV-BM for emacs-devel@gnu.org; Mon, 08 Dec 2008 14:59:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9mGH-0000kA-U1 for emacs-devel@gnu.org; Mon, 08 Dec 2008 14:59:23 -0500 Original-Received: from [199.232.76.173] (port=57433 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9mGH-0000k7-Nv for emacs-devel@gnu.org; Mon, 08 Dec 2008 14:59:21 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:62165 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L9mGF-0007q4-Jz; Mon, 08 Dec 2008 14:59:19 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAIQLPUlLd+Db/2dsb2JhbACBbM0sgwWBJg X-IronPort-AV: E=Sophos;i="4.33,736,1220241600"; d="scan'208";a="30798073" Original-Received: from 75-119-224-219.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.219]) by ironport2-out.teksavvy.com with ESMTP; 08 Dec 2008 14:59:18 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 1598D8219; Mon, 8 Dec 2008 14:59:18 -0500 (EST) In-Reply-To: (Richard M. Stallman's message of "Mon, 08 Dec 2008 13:26:36 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:106694 Archived-At: > - Why use an alist rather than a list. > I think Joe Arceneaux did it that way just to have parallel calling > conventions for several functions. I meant in the new code, not in remove-text-properties. > It would be possible to implement `remove-list-of-text-properties' by > consing up an alist and calling `remove-text-properties', but that > would be wasteful consing. The inverse would also be wasteful > consing. The current duplication of code (worse yet: it's not actually identical) is a problem. I'd rather have some extra consing (and just mark the consing one as obsolete). And I'm pretty sure we can also remove the duplication without adding extra consing. Stefan