all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John J Foerch <jjfoerch@earthlink.net>
To: emacs-devel@gnu.org
Subject: Re: Outline mode
Date: Sat, 01 Sep 2007 13:31:30 -0400	[thread overview]
Message-ID: <871wdicmx9.fsf@earthlink.net> (raw)
In-Reply-To: jwvk5rbi1w8.fsf-monnier+emacs@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1704 bytes --]

Stefan Monnier <monnier@iro.umontreal.ca> writes:
> Duh, I overlooked this "detail", sorry.
> But then in what way does it help?  You may now move the cursor to just
> after the ellipsis but actually be placed right after the newline (rather
> than at the end of the text).  And if you remove the newline, you get into
> the undesired situation where there is no ellipsis any more to warn about
> the presence of invisible text.
>
> Of course I'm biased: it would break reveal-mode which I wrote and use
> extensively with outline-minor-mode ;-)
>
>
>         Stefan

The ellipsis is implemented as a display property in an overlay on the
newline of the heading, so point can be just before the ellipsis, and
still be on the same line as the heading.  If you move point past the
ellipsis, then point will be in the first column of the next heading.

Thank you for mentioning deletion of the heading's newline.  I hadn't
considered that situation, but now I have updated my patch to handle
it, as well as other situations where invisible text could get
modified.  I will attach the new version to this message.

That's cool that you wrote reveal-mode.  I want to help update it to
make it work with my changes to outline-mode.  I really think my
changes are an improvement, but I also see that it will take patience
and effort to make sure it works perfectly.

It seems that the best way to proceed will be to add sections to this
elisp file for each mode that needs to be updated.  Then all the
changes for everything can be in one place, and people can use
eval-buffer for testing, until it's finished.  I can put the relevant
`require's at the top of the file to avoid problems with autoload.

--John


[-- Attachment #2: outline-patch version 0.2 --]
[-- Type: application/emacs-lisp, Size: 13568 bytes --]

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

  reply	other threads:[~2007-09-01 17:31 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-31 16:30 Outline mode John J Foerch
2007-08-31 20:22 ` Stefan Monnier
2007-08-31 23:44   ` John J Foerch
2007-09-01  2:02     ` Stefan Monnier
2007-09-01 17:31       ` John J Foerch [this message]
2007-09-03 21:03         ` Stefan Monnier
2007-09-04  2:26           ` John J Foerch
2007-09-04 14:27             ` Stefan Monnier
2007-09-04 15:58               ` John J Foerch
2007-09-04 19:45                 ` Stefan Monnier
2007-09-04 21:45                   ` John J Foerch
2007-09-04 22:52           ` Davis Herring
2007-09-05  0:09             ` John J Foerch
2007-09-05  1:11               ` Davis Herring
2007-09-05 19:41                 ` John J Foerch
2007-09-05 19:56                   ` Davis Herring
2007-09-10 15:06                     ` John J Foerch
2007-09-02 15:50 ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2002-09-06 12:06 Keith O'Connell
2002-09-06 12:24 ` lawrence mitchell
2002-09-06 22:15 ` Kevin Rodgers

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=871wdicmx9.fsf@earthlink.net \
    --to=jjfoerch@earthlink.net \
    --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.