From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: FW: pop-tag-mark - shouldn't it use pop-to-buffer instead ofswitch-to-buffer? Date: Wed, 20 Feb 2008 21:41:05 -0800 Message-ID: <001801c8744c$5ad45320$0600a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1203572553 4254 80.91.229.12 (21 Feb 2008 05:42:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Feb 2008 05:42:33 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 21 06:42:57 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 1JS4Ct-0008Ct-6n for ged-emacs-devel@m.gmane.org; Thu, 21 Feb 2008 06:42:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JS4CN-0003gq-GE for ged-emacs-devel@m.gmane.org; Thu, 21 Feb 2008 00:42:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JS4CG-0003gc-HQ for emacs-devel@gnu.org; Thu, 21 Feb 2008 00:42:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JS4CF-0003g0-CN for emacs-devel@gnu.org; Thu, 21 Feb 2008 00:42:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JS4CF-0003fv-4g for emacs-devel@gnu.org; Thu, 21 Feb 2008 00:42:15 -0500 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JS4CE-0002yE-Pz for emacs-devel@gnu.org; Thu, 21 Feb 2008 00:42:15 -0500 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m1L5g4YY010803 for ; Wed, 20 Feb 2008 22:42:05 -0700 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m1L4L003012781 for ; Wed, 20 Feb 2008 22:42:04 -0700 Original-Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3584101231203572469; Wed, 20 Feb 2008 21:41:09 -0800 Original-Received: from dradamslap1 (/141.144.81.25) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 20 Feb 2008 21:41:08 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AchuEJF2K4XQMztoSy+2IqhSHHb7ngGO46aw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:89782 Archived-At: Resending. ---- From: Drew Adams Sent: Tuesday, February 12, 2008 11:18 PM A propos, shouldn't `pop-tag-mark' use `pop-to-buffer' here, instead of `switch-to-buffer'? Otherwise, if you already have a window/frame open to the marker's buffer, it doesn't reuse it. (defun pop-tag-mark () "Pop back to where \\[find-tag] was last invoked. This is distinct from invoking \\[find-tag] with a negative argument since that pops a stack of markers at which tags were found, not from where they were found." (interactive) (if (ring-empty-p find-tag-marker-ring) (error "No previous locations for find-tag invocation")) (let ((marker (ring-remove find-tag-marker-ring 0))) (switch-to-buffer (or (marker-buffer marker) (error "The marked buffer has been deleted"))) (goto-char (marker-position marker)) (set-marker marker nil nil)))