all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-devel@gnu.org
Subject: Re: isearch for doc-view.el
Date: Wed, 07 Nov 2007 09:41:12 +0100	[thread overview]
Message-ID: <87prymzbvb.fsf@baldur.tsdh.de> (raw)
In-Reply-To: <87k5ovqate.fsf@jurta.org> (Juri Linkov's message of "Wed, 07 Nov 2007 00:29:29 +0200")

Juri Linkov <juri@jurta.org> writes:

>>> Isearch on the plain text will provide enough cues to visually
>>> locate the place of the found string on the rendered image.
>>
>> There are several problems with it:
>>
>>   1. The image scrolling commands only scroll on images, so you couldn't
>>      scroll down to the text with <down> or C-n.
>>
>>      The "Page 1 of 200" text isn't there anymore due to this.  Now it's
>>      in the mode-line.  (Thanks to Stefan)
>>
>>   2. My main problem with the search approach was that the real isearch
>>      happens in another buffer in the background and the doc-view buffer
>>      has to be updated accordingly by switching to the right page.  With
>>      your approach that would be even harder.  Here, you would have to
>>      do the same plus copying the page with the current match from the
>>      text representation's buffer to the doc-view buffer plus an
>>      additional isearch in the doc-view buffer to highlight the match.
>
> It seems the hardest problem here is fixing scrolling commands to take
> into account the text below the image.  Copying the text of the
> current page and starting isearch on it should be easy.

Feel free to give it a try.  I'm don't know enough about the isearch
internals to make it working in an acceptable amount of time, but I
won't be against it if it feels good.  I usability problem I see is that
because of isearch the buffer is scrolled to the matching text and the
user would have to scroll back to the image after every C-s.

Basically I'm completely satisfied with the behavior I implemented in
<87640fzs9o.fsf@baldur.tsdh.de>, but probably others are more demanding.

> No, I meant displaying only one image and text from the same image at
> once:
>                                 page1.png
>                                 page1 text
>
> But maybe for small documents (with small number of pages) displaying
> all images at once is more preferable?

I don't know if the benefits would be great enough to complicate the
code.  At least most navigation and search commends would need to be
updated accordingly.

If someone implements that and it works, it's fine with me, but I won't
put it on my todo list for now.

Bye,
Tassilo

  reply	other threads:[~2007-11-07  8:41 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-30 18:50 doc-view cache file permissions Glenn Morris
2007-10-30 20:11 ` Stefan Monnier
2007-10-30 20:57   ` Glenn Morris
2007-10-30 21:56     ` Stefan Monnier
2007-10-31  7:22       ` Tassilo Horn
2007-10-31  7:56         ` Tassilo Horn
2007-10-31 15:10           ` Stefan Monnier
2007-10-31 17:46             ` Tassilo Horn
2007-10-31 18:21               ` Stefan Monnier
2007-10-31 19:44                 ` Tassilo Horn
2007-10-31 20:41                   ` Stefan Monnier
2007-11-02 20:44                   ` Juri Linkov
2007-11-02 23:53                     ` Tassilo Horn
2007-11-03 14:07                       ` Stefan Monnier
2007-11-03 19:20                         ` Tassilo Horn
2007-11-05 12:01                         ` isearch for doc-view.el (was: doc-view cache file permissions) Tassilo Horn
2007-11-05 12:43                           ` isearch for doc-view.el David Kastrup
2007-11-05 13:19                             ` Tassilo Horn
2007-11-05 15:14                           ` Stefan Monnier
2007-11-05 16:42                             ` CEDET/senator kill the buffer-local value of isearch-search-fun-function (was: isearch for doc-view.el) Tassilo Horn
2007-11-05 21:01                             ` isearch for doc-view.el Tassilo Horn
2007-11-05 21:20                               ` Stefan Monnier
2007-11-05 21:51                                 ` Tassilo Horn
2007-11-06  0:44                                   ` Juri Linkov
2007-11-06  8:25                                     ` Tassilo Horn
2007-11-06 22:29                                       ` Juri Linkov
2007-11-07  8:41                                         ` Tassilo Horn [this message]
2007-11-10 21:57                                           ` Juri Linkov
2007-11-06  8:34                               ` Tassilo Horn
2007-10-30 22:14     ` doc-view cache file permissions Reiner Steib
2007-10-31  0:52       ` Stefan Monnier
2007-10-30 20:34 ` Tassilo Horn

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=87prymzbvb.fsf@baldur.tsdh.de \
    --to=tassilo@member.fsf.org \
    --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.