bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#21683: 25.0.50; `advice-add` doesn't work for compiled primitive fun


From: Dmitry Gutov
Subject: bug#21683: 25.0.50; `advice-add` doesn't work for compiled primitive functions
Date: Mon, 19 Oct 2015 18:56:25 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Thunderbird/42.0

On 10/19/2015 06:51 PM, Vitalie Spinu wrote:
I am trying hard to make polymode [1] functional for complex sub-modes like
c-lang. For that I need to restrict `widen` and `parse-partial-sexp` in order
for the sub-mode to have an illusion that a region of a buffer is a whole
buffer.

Yesss. This has been discussed a few times already: you can't advice `widen', and hence you can't make a "perfect" multiple-major-modes solution.

The current thinking on that subject is to use prog-indentation-context for indentation (it must be supported in the respective major modes as well), and introduce something similar for font-lock/syntax-ppss.

Doing anything with parse-partial-sexp is dommed to fail.





reply via email to

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