From 82b30634fdde1e5d77515624be97b900777a9be2 Mon Sep 17 00:00:00 2001 From: Joost Kremers Date: Mon, 22 Oct 2007 19:50:27 +0200 Subject: [PATCH] make the buffer ebib was called from the default push buffer * ebib.el (ebib): modified to store the buffer from which ebib is called in ebib-push-buffer, so that it becomes the default for pushing entries. Thanks to Sinisa Pajevic for the suggestion. --- src/ChangeLog | 6 ++++++ src/ebib.el | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 6cee599..5d57bea 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2007-10-22 Joost Kremers + + * ebib.el (ebib): modified to store the buffer from which ebib is + called in ebib-push-buffer, so that it becomes the default for + pushing entries. Thanks to Sinisa Pajevic for the suggestion. + 2007-10-20 Joost Kremers * ebib.el (ebib-redisplay-current-field): modified. now redisplays diff --git a/src/ebib.el b/src/ebib.el index 91733e3..e48ceac 100644 --- a/src/ebib.el +++ b/src/ebib.el @@ -1055,6 +1055,8 @@ is a list of fields that are considered in order for the sort value." (if (or (equal (window-buffer) ebib-index-buffer) (equal (window-buffer) ebib-entry-buffer)) (error "Ebib already active") + ;; we save the buffer from which ebib is called + (setq ebib-push-buffer (current-buffer)) (unless ebib-initialized (ebib-init) (if ebib-preload-bib-files -- 2.11.4.GIT