From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: How to use `narrow'?
Date: Tue, 18 Oct 2005 02:09:51 +0000 (UTC) [thread overview]
Message-ID: <dj1lhf$1l6e$1@agate.berkeley.edu> (raw)
My idea how *I* would use `narrow' is like this:
Suppose I have a file which is "in multiple modes". E.g., consider
some "literate programming" style text, or one which contains a
HERE-document with a program in a different language than the main
text of the document:
$var = <<EOV; # E.g., this is Perl
// Here is some code in JavaScript
...
EOV
So I would like to narrow to the region "inside the HERE-document",
and switch the mode to "other mode" (above, from CPerl mode to
JavaScript mode).
However, I looked, and `font-lock' does `widen' before it starts up;
so all the effect of narrowing is gone... Is there any *use* of
narrowing?
Thanks,
Ilya
P.S. I ask this since now CPerl has a (contributed) code to
`narrow-to-here-doc', and I would like to document why this would
be useful...
next reply other threads:[~2005-10-18 2:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-18 2:09 Ilya Zakharevich [this message]
2005-10-18 8:13 ` How to use `narrow'? Gian Uberto Lauri
[not found] ` <mailman.11713.1129623266.20277.help-gnu-emacs@gnu.org>
2005-10-18 8:47 ` Ilya Zakharevich
2005-10-18 12:53 ` David Hansen
2005-10-18 19:41 ` Ilya Zakharevich
2005-10-18 22:15 ` David Hansen
2005-10-19 2:11 ` Ilya Zakharevich
2005-10-21 4:29 ` Stefan Monnier
2005-10-18 16:25 ` Anselm Helbig
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='dj1lhf$1l6e$1@agate.berkeley.edu' \
--to=nospam-abuse@ilyaz.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.
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).