emacs-devel
[Top][All Lists]
Advanced

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

Re: A few questions about occur-mode


From: Juanma Barranquero
Subject: Re: A few questions about occur-mode
Date: Mon, 23 Sep 2002 13:50:24 +0200

On Mon, 23 Sep 2002 13:04:54 +0200, Juanma Barranquero <address@hidden> wrote:

> OTOH, adding back occur-point is a one- or two- line change:

Well, in fact is more like it:

                                                `(font-lock-face ,match-face)))
                                             curstring)
+                        (put-text-property (match-beginning 0) (1+ 
(match-beginning 0)) 'occur-point t curstring)
                        (setq start (match-end 0))))
                    ;; Generate the string to insert for this match
                    (let* ((out-line


because otherwise there could be problems with matches at the end of a
line. This leaves the point at the beginning of a match after M-n or M-p,
but that seems preferable IMHO.

Opinions?


                                                           /L/e/k/t/u





reply via email to

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