emacs-diffs
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] /srv/bzr/emacs/trunk r110472: Fix shell handling of un


From: Stefan Monnier
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r110472: Fix shell handling of unbalanced quotes and parens in output.
Date: Mon, 08 Oct 2012 20:34:04 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

>      (set (make-local-variable 'syntax-propertize-function)
> -         python-syntax-propertize-function))
> +         (syntax-propertize-rules
> +          (comint-prompt-regexp
> +           (0 (ignore
> +               (put-text-property
> +                comint-last-input-start end 'syntax-table
> +                python-shell-output-syntax-table)
> +               (font-lock-unfontify-region comint-last-input-start end))))

Calling font-lock-unfontify-region from syntax-propertize looks wrong.
So it at least deserves a detailed comment explaining the problem ut's
trying to fix and why you decided to do it this way.


        Stefan



reply via email to

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