From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: doc-view support for bookmark.el Date: Tue, 25 Dec 2007 18:54:48 +0100 Message-ID: <477143E8.1090508@gmx.at> References: <8763yn3v07.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1198605313 20494 80.91.229.12 (25 Dec 2007 17:55:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Dec 2007 17:55:13 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 25 18:55:26 2007 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 1J7Dzx-0002mH-PI for ged-emacs-devel@m.gmane.org; Tue, 25 Dec 2007 18:55:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7Dzd-0003mW-6a for ged-emacs-devel@m.gmane.org; Tue, 25 Dec 2007 12:55:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J7DzZ-0003kF-6x for emacs-devel@gnu.org; Tue, 25 Dec 2007 12:55:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J7DzU-0003hw-Rw for emacs-devel@gnu.org; Tue, 25 Dec 2007 12:54:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7DzU-0003ht-Kf for emacs-devel@gnu.org; Tue, 25 Dec 2007 12:54:56 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1J7DzU-0003mD-2A for emacs-devel@gnu.org; Tue, 25 Dec 2007 12:54:56 -0500 Original-Received: (qmail invoked by alias); 25 Dec 2007 17:54:54 -0000 Original-Received: from N840P012.adsl.highway.telekom.at (EHLO [62.47.48.236]) [62.47.48.236] by mail.gmx.net (mp008) with SMTP; 25 Dec 2007 18:54:54 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18xKwNgJfcxg14R9gHRJZHyc3KKlnWMFd6AiUBuDD HhztKg/LRJgpsd User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <8763yn3v07.fsf@member.fsf.org> X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:85450 Archived-At: > When I was doing that I found some strange code: bookmark-jump-noselect > opened the bookmarked file, set point at the correct position and > returned a cons (BUFFER . POSITION). All calling functions did set the > position once again. I suspect that was a relict of the past, so I > removed it and now bookmark-jump-noselect only returns the buffer. (defun bookmark-jump-noselect (str) ... (save-excursion ... (cons (current-buffer) (point)))) The position might be in the same buffer where the excursion occurred, hence this is needed.