all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Making line prefixes invisible to a mode?
@ 2013-07-05 19:55 Raffaele Ricciardi
  0 siblings, 0 replies; only message in thread
From: Raffaele Ricciardi @ 2013-07-05 19:55 UTC (permalink / raw)
  To: help-gnu-emacs

Hello everyone,

Emacs supports multiple major modes by means of indirect buffers. This
feature is useful - among other things - to edit comments in source
code.  However, when editing a block of line-comments, the
line-comment prefix is seen by the alternative major mode as a part of
the buffer (unless such mode is a specialized mode, of course).
Narrowing can't work, either, because you can't narrow to a rectangle,
can you?  Therefore, is it possible to make a mode "believe" that each
line starts after the line comment prefix?

I have an alternative solution in mind*, but I'd like to know whether
a direct way to achieve this is available.

Thank you.

*: Such solution would involve narrowing to a comment block and then
  stripping the line prefix, only to add it again before widening.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-05 19:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-05 19:55 Making line prefixes invisible to a mode? Raffaele Ricciardi

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.