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

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

Re: [emacs-wiki-discuss] muse-registry (2)


From: Jim Ottaway
Subject: Re: [emacs-wiki-discuss] muse-registry (2)
Date: Thu, 24 Nov 2005 17:28:45 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>>>>> Bastien Guerry <address@hidden> writes:

> Hi,
> here is a new muse-registry.el.  Works quite well for me, any feedback
> welcome.  The format of the registry has changed, you need to update
> `muse-registry-file' with C-u M-x muse-registry-initialize.

I just noticed that muse-registry-update-registry uses kill-line,
which adds the deleted text to the kill-ring.  It would be better to
use delete-region, like this:

--- /tmp/muse-registry.el       2005-11-24 17:22:47.657220432 +0000
+++ /home/jeho/elisp/muse-stuff/muse-registry.el        2005-11-24 
17:24:06.667209088 +0000
@@ -86,6 +86,7 @@
 ;;;_* Prerequisites
 
 (require 'cl)
+(require 'muse)
 (require 'planner)
 (require 'regexp-opt)
 
@@ -268,9 +269,8 @@
     (goto-char (point-min))
     (while (re-search-forward
            (concat "^(\"" from-file) nil t)
-      (goto-char (match-beginning 0))
-      (let ((kill-whole-line t))
-       (kill-line)))
+      (delete-region (muse-line-beginning-position)
+                     (muse-line-end-position)))
     (goto-char (point-min))
     (re-search-forward "^(\"" nil t)
     (goto-char (match-beginning 0))

Regards,

-- 
Jim Ottaway




reply via email to

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