From: Raffaele Ricciardi <rfflrccrd@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Making line prefixes invisible to a mode?
Date: Fri, 05 Jul 2013 21:55:30 +0200 [thread overview]
Message-ID: <b3omljF30t0U1@mid.individual.net> (raw)
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.
reply other threads:[~2013-07-05 19:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=b3omljF30t0U1@mid.individual.net \
--to=rfflrccrd@gmail.com \
--cc=help-gnu-emacs@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.