unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Outline mode
@ 2007-08-31 16:30 John J Foerch
  2007-08-31 20:22 ` Stefan Monnier
  2007-09-02 15:50 ` Richard Stallman
  0 siblings, 2 replies; 18+ messages in thread
From: John J Foerch @ 2007-08-31 16:30 UTC (permalink / raw)
  To: emacs-devel

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

Hello,

Outline-mode has a problem that I would like to fix.  To see the
problem, hide an entry (C-c C-c) in an outline-mode buffer, and put
point at the end of the heading with C-e.  Point will then be located
to the right of the ellipsis, and as far as emacs knows, point is on
the last line of the hidden entry.  Typing characters or hitting
backspace, and many other commands will affect the last line of the
entry.

When an entry is collapsed in outline-mode, what actually gets marked
invisible is everything from the newline of the heading to the
character before the final newline of the entry.  It would make more
sense, if the newline of the heading were left visible, and the final
newline of the entry were hidden.  The ellipsis can be placed in the
buffer by using the 'display property on the newline of the heading.

The code attached to this email implement this behavior, and I hope
you will try it out.

However, there is a large problem with fixing outline-mode.  The
problem is that many of the modes that derive their behavior from
outline-mode probably depend on the current way that entries are
hidden.  I am hoping that I can get advice from more experienced emacs
developers on how to go about this project.  I am also hoping to get
help from the maintainers of as many of the derived modes as possible.

Thank you,
John Foerch
aka RetroJ in #emacs



[-- Attachment #2: update for outline-mode --]
[-- Type: application/emacs-lisp, Size: 11698 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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2007-09-10 15:06 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).