emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: widen-one-level [was: Emacs's handling of line numbers]


From: Leo
Subject: Re: widen-one-level [was: Emacs's handling of line numbers]
Date: Mon, 19 Apr 2010 02:56:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

On 2010-04-18 19:15 +0100, Drew Adams wrote:
> (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.

Leo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]