From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: akrl Newsgroups: gmane.emacs.help Subject: question about buffer mechanism Date: Sun, 19 Aug 2018 19:04:37 +0000 Organization: SDF Public Access UNIX System, Est. 1987 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1534706009 4327 195.159.176.226 (19 Aug 2018 19:13:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Aug 2018 19:13:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 19 21:13:25 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1frT8d-0000yq-SP for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Aug 2018 21:13:23 +0200 Original-Received: from localhost ([::1]:43870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frTAk-0000yN-4s for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Aug 2018 15:15:34 -0400 Original-Path: usenet.stanford.edu!goblin3!goblin.stu.neva.ru!odin.sdf-eu.org!.POSTED.iceland.sdf.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Injection-Info: odin.sdf-eu.org; posting-host="iceland.sdf.org:205.166.94.5"; logging-data="21532"; mail-complaints-to="usenet@odin.sdf-eu.org" Cancel-Lock: sha1:w0aKWu3AyN6unW+tK9qBFJEXsC4= Original-Xref: usenet.stanford.edu gnu.emacs.help:223572 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117697 Archived-At: Hi all, The question is the following: Say I have this function: (defun my-open-at-point (&rest _) (interactive) (org-open-at-point) (print (current-buffer))) When I call it on an org link the link at point is opened and when my-open-at-point has finished the current buffer is the one pointed by the link. What I cannot understand is why the buffer that is printed is still the original one containing the link. I would expect to see already there the buffer changed to the new one. I miss also where and how is then set the new buffer. I'm probably missing something really basic here. Bests Andrea -- akrl@sdf.org