[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: widen-one-level [was: Emacs's handling of line numbers]
From: |
Drew Adams |
Subject: |
RE: widen-one-level [was: Emacs's handling of line numbers] |
Date: |
Sun, 18 Apr 2010 19:04:28 -0700 |
> > (defadvice narrow-to-region (before push-restriction-stack activate)
> > (setq restriction-stack (cons (cons start end)
> > restriction-stack))
> > (when (and (= start 1) (= end (1+ (buffer-size))))
> > (setq restriction-stack ())))
>
> I also have something similar in my .emacs. I wonder if you
> noticed this
> problem. After advising narrow-to-region, preloaded functions such as
> narrow-to-page narrow-to-defun still use the original narrow-to-region
> ignoring the advice.
Yes, I noticed that too. Presumably it's because `narrow-to-region' has its own
byte code. At least that's my guess. `narrow-to-defun' is a lisp function, and
it is byte-compiled, which presumably means the byte-code for `narrow-to-region'
is inlined.
Or something like that. Someone more knowledgable will no doubt enlighten us.
- Re: Emacs's handling of line numbers [from bug#5042], (continued)
- Re: Emacs's handling of line numbers [from bug#5042], Juanma Barranquero, 2010/04/17
- RE: Emacs's handling of line numbers [from bug#5042], Drew Adams, 2010/04/17
- widen-one-level [was: Emacs's handling of line numbers], Drew Adams, 2010/04/18
- Re: widen-one-level [was: Emacs's handling of line numbers], Juri Linkov, 2010/04/18
- RE: widen-one-level [was: Emacs's handling of line numbers], Drew Adams, 2010/04/18
- Re: widen-one-level [was: Emacs's handling of line numbers], Davis Herring, 2010/04/18
- Re: widen-one-level [was: Emacs's handling of line numbers], Richard Stallman, 2010/04/19
- RE: widen-one-level [was: Emacs's handling of line numbers], Drew Adams, 2010/04/19
- Re: widen-one-level [was: Emacs's handling of line numbers], Juri Linkov, 2010/04/19
- Re: widen-one-level [was: Emacs's handling of line numbers], Leo, 2010/04/18
- RE: widen-one-level [was: Emacs's handling of line numbers],
Drew Adams <=
- Re: widen-one-level [was: Emacs's handling of line numbers], Leo, 2010/04/19
- RE: widen-one-level [was: Emacs's handling of line numbers], Drew Adams, 2010/04/19
- Re: widen-one-level [was: Emacs's handling of line numbers], Leo, 2010/04/19
- RE: widen-one-level [was: Emacs's handling of line numbers], Drew Adams, 2010/04/19
- Re: widen-one-level [was: Emacs's handling of line numbers], Leo, 2010/04/22
- Re: Emacs's handling of line numbers [from bug#5042], Eli Zaretskii, 2010/04/17
- Re: Emacs's handling of line numbers [from bug#5042], Juanma Barranquero, 2010/04/17
- Re: Emacs's handling of line numbers [from bug#5042], Juri Linkov, 2010/04/18
- RE: Emacs's handling of line numbers [from bug#5042], Drew Adams, 2010/04/18
- Re: Emacs's handling of line numbers [from bug#5042], Lennart Borgman, 2010/04/18