all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lektu@terra.es>
Cc: emacs-devel@gnu.org
Subject: Re: A few questions about occur-mode
Date: Mon, 23 Sep 2002 13:50:24 +0200	[thread overview]
Message-ID: <20020923134527.5C5E.LEKTU@terra.es> (raw)
In-Reply-To: <20020923102906.5C55.LEKTU@terra.es>

On Mon, 23 Sep 2002 13:04:54 +0200, Juanma Barranquero <lektu@terra.es> 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	other threads:[~2002-09-23 11:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-20 11:44 A few questions about occur-mode Juanma Barranquero
2002-09-21 19:39 ` Richard Stallman
2002-09-22 17:32   ` Juanma Barranquero
2002-09-22 23:45     ` John Paul Wallington
2002-09-23 11:04       ` Juanma Barranquero
2002-09-23 11:50         ` Juanma Barranquero [this message]
2002-09-23 20:53           ` John Paul Wallington
2002-09-24  8:55             ` Juanma Barranquero
2002-09-23 15:59       ` Richard Stallman
2002-09-24  8:43         ` Juanma Barranquero
2002-09-24 10:22           ` Juanma Barranquero
2002-09-24 23:33             ` Richard Stallman
2002-09-24 23:33           ` Richard Stallman
2002-09-23  0:16     ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020923134527.5C5E.LEKTU@terra.es \
    --to=lektu@terra.es \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.