From: bojohan+news@dd.chalmers.se (Johan Bockgård)
Subject: Re: goto-line trouble with narrowing
Date: Mon, 30 Jan 2006 20:57:30 +0100 [thread overview]
Message-ID: <yoijvew132vp.fsf@linus002.dd.chalmers.se> (raw)
In-Reply-To: drln1c$mjs$1@sea.gmane.org
Kevin Rodgers <ihs_4664@yahoo.com> writes:
> OK, can anyone explain why this doesn't work:
>
> (eval-when-compile
> (require 'cl-macs)) ; flet
>
> (defun goto-line-in-narrowed-buffer (&rest args)
> "Like `goto-line', but count from line 1 of the accessible part of
> the buffer."
> (interactive)
> (flet ((widen () t))
> (if (interactive-p)
> (let ((prefix-arg current-prefix-arg))
> (call-interactively 'goto-line))
> (apply 'goto-line args))))
(byte-compile (lambda () (widen))) => #[nil "~\207" [] 1]
--
Johan Bockgård
next prev parent reply other threads:[~2006-01-30 19:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-26 17:01 goto-line trouble with narrowing Robert J. Chassell
2006-01-27 22:32 ` Richard M. Stallman
2006-01-28 19:14 ` Robert J. Chassell
2006-01-30 0:56 ` Richard M. Stallman
2006-01-30 16:57 ` Kevin Rodgers
2006-01-30 18:48 ` Kevin Rodgers
2006-01-30 19:57 ` Johan Bockgård [this message]
2006-01-31 19:53 ` Kevin Rodgers
2006-02-01 7:52 ` Johan Bockgård
2006-01-30 22:31 ` Lennart Borgman
2006-01-31 18:06 ` Richard M. Stallman
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=yoijvew132vp.fsf@linus002.dd.chalmers.se \
--to=bojohan+news@dd.chalmers.se \
/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 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).