[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs lilypond-mode and also point-and-click
From: |
T. Michael Sommers |
Subject: |
Re: Emacs lilypond-mode and also point-and-click |
Date: |
Thu, 15 Oct 2015 11:03:43 -0400 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 10/15/2015 7:24 AM, Andrew Bernard wrote:
I’m aware that the emacs lilypond-mode needs attention, but I wonder
if anybody has seen this. When I enter a ‘>’ character to complete a
chord, emacs goes into narrow mode, which then has to be undone with
C-x n w. It’s consistently reproducible.
The culprit would seem to be this, starting at line 502 in the function
LilyPond-blink-matching-paren in lilypond-indent.el:
(when blink-matching-paren-distance
(narrow-to-region
(max (point-min) (- (point) blink-matching-paren-distance))
(min (point-max) (+ (point) blink-matching-paren-distance))))
This narrowing is never undone.
One solution might be to simply comment out this code, but I don't know
if that might have some undesirable side effects.
Another solution might be to put a (widen) just before the function
returns. I think a widen on an un-narrowed buffer has no effect.
I haven't tried either of these, so proceed at your own risk.
--
T.M. Sommers -- address@hidden -- ab2sb
Re: Emacs lilypond-mode and also point-and-click, David Wright, 2015/10/15