From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: [patch] `org-pop-to-buffer-same-window' working with Emacs24 Date: Sun, 04 Sep 2011 10:16:47 -0600 Message-ID: <87k49o8eq8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0FNP-0006Fh-H8 for emacs-orgmode@gnu.org; Sun, 04 Sep 2011 12:16:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0FNN-0002mM-Rc for emacs-orgmode@gnu.org; Sun, 04 Sep 2011 12:16:55 -0400 Received: from mail-pz0-f44.google.com ([209.85.210.44]:63072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0FNN-0002m9-Mr for emacs-orgmode@gnu.org; Sun, 04 Sep 2011 12:16:53 -0400 Received: by pzk36 with SMTP id 36so8007281pzk.17 for ; Sun, 04 Sep 2011 09:16:52 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode --=-=-= Content-Type: text/plain Hi, I assume this change was required due to changes in Emacs24, but I had to remove an argument to pop-to-buffer-same-window in org-pop-to-buffer-same-window to fix editing of source code snippets. The patch is attached, although I'm not sure if it would break this function for all other versions of Emacs. Best -- Eric --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-remove-extra-argument-in-call-to-pop-to-buffer-same-.patch >From 6ed9419b73450d6b72392bb040a7ffeacd41f542 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sat, 3 Sep 2011 14:01:49 -0600 Subject: [PATCH] remove extra argument in call to pop-to-buffer-same-window * lisp/org-compat.el (org-pop-to-buffer-same-window): Remove extra argument in call to pop-to-buffer-same-window. --- lisp/org-compat.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-compat.el b/lisp/org-compat.el index 3e9c202..3577db6 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -438,7 +438,7 @@ With two arguments, return floor and remainder of their quotient." "Pop to buffer specified by BUFFER-OR-NAME in the selected window." (if (fboundp 'pop-to-buffer-same-window) (funcall - 'pop-to-buffer-same-window buffer-or-name norecord label) + 'pop-to-buffer-same-window buffer-or-name norecord) (funcall 'switch-to-buffer buffer-or-name norecord))) (provide 'org-compat) -- 1.7.4.1 --=-=-= Content-Type: text/plain -- Eric Schulte http://cs.unm.edu/~eschulte/ --=-=-=--