emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] Re: remember-buffer


From: Sacha Chua
Subject: [emacs-wiki-discuss] Re: remember-buffer
Date: Wed, 19 Jan 2005 22:57:06 +0900
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

address@hidden writes:

> The remember-buffer function creates a note in the plan page, but the
> note ends up being empty, without the contents of the buffer being 
> transferred.
> Is this a glitch, or do I need to configure something?

Right, this is a glitch. Sorry about it. The following patch fixes it, or
you can just get the one in the dev archive... =)

--- orig/remember-planner.el
+++ mod/remember-planner.el
@@ -72,9 +72,6 @@
             (when (or (not planner-use-day-pages)
                       remember-planner-xref-p)
               (planner-read-name (planner-file-alist))))))
-  (set-buffer (get-buffer-create remember-buffer))
-  (goto-char (point-max))
-  (unless (bolp) (insert "\n")) ; Trailing newline
   (let ((text (buffer-string))
         start)
     (save-window-excursion
@@ -83,6 +80,7 @@
         (planner-create-note page))
       (setq start (line-beginning-position))
       (insert text)
+      (unless (bolp) (insert "\n")) ;; trailing newline
       (save-restriction
         (narrow-to-region start (point))
         (mapcar


If it works, please mail me so that I can merge it into stable. Thanks
for reporting the bug!
-- 
Sacha Chua <address@hidden> - open source geekette
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C
interests: emacs, gnu/linux, personal information management, CS ed
applying as a Debian new maintainer | looking for a grad school




reply via email to

[Prev in Thread] Current Thread [Next in Thread]