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: [PATCH] delete-trailing-whitespace on active region Date: Fri, 11 Feb 2011 09:30:29 -0500 Message-ID: References: <87pqqza86f.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298105362 25486 80.91.229.12 (19 Feb 2011 08:49:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Feb 2011 08:49:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Deniz Dogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 11 15:32:09 2011 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.69) (envelope-from ) id 1Pnu2B-0005BS-Jw for ged-emacs-devel@m.gmane.org; Fri, 11 Feb 2011 15:31:43 +0100 Original-Received: from localhost ([127.0.0.1]:60428 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pnu2B-0007zO-9k for ged-emacs-devel@m.gmane.org; Fri, 11 Feb 2011 09:31:43 -0500 Original-Received: from [140.186.70.92] (port=46705 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pnu12-0007Q6-0a for emacs-devel@gnu.org; Fri, 11 Feb 2011 09:30:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pnu10-0005lP-LY for emacs-devel@gnu.org; Fri, 11 Feb 2011 09:30:31 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:17428 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pnu10-0005lL-F2 for emacs-devel@gnu.org; Fri, 11 Feb 2011 09:30:30 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAIbWVE1FxIyy/2dsb2JhbAClc3S6fYVdBIUBjzk X-IronPort-AV: E=Sophos;i="4.60,455,1291611600"; d="scan'208";a="91324501" Original-Received: from 69-196-140-178.dsl.teksavvy.com (HELO ceviche.home) ([69.196.140.178]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 11 Feb 2011 09:30:30 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id B38C2660C9; Fri, 11 Feb 2011 09:30:29 -0500 (EST) In-Reply-To: (Deniz Dogan's message of "Fri, 11 Feb 2011 07:33:49 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:136220 Archived-At: > Attached is a last attempt, if it's not good then I give up and hope > that someone else will take care of it. Looks good, please install. > + (let ((end-marker (set-marker (make-marker) (or end (point-max)))) I'd use (copy-marker (or end (point-max))). Stefan "Actually, I'm tempted to mark make-marker as obsolete"