[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mysterious fontification/C++ context issue
From: |
Slawomir Nowaczyk |
Subject: |
Re: Mysterious fontification/C++ context issue |
Date: |
Sun, 10 Dec 2006 15:30:12 +0100 |
On Sun, 10 Dec 2006 12:58:42 +0100
martin rudalics <address@hidden> wrote:
#> > The behaviour of beginning-of-defun has been changed ONLY for when
#> > opic0ids gets set to nil. The only other file.el within Emacs
#> > which does this is progmodes/python.el. Any Python users here?
#> > Dave Love, are you listening?
#>
#> `python-mode' provides it's own `beginning-of-defun-function' which
#> doesn't seem to rely on `beginning-of-defun-raw'. Hence, setting that
#> in `python-mode' is likely just paranoia.
Yes, it seems so. I would suggest the following patch, so we can be
sure:
**********************************************************************
--- EmacsCVS/lisp/progmodes/python.el 2006-12-10 11:49:05.479332800 +0100
+++ Emacs/lisp/progmodes/python.el 2006-12-10 15:26:11.657208000 +0100
@@ -2236,7 +2236,7 @@
symbol-end))
(set (make-local-variable 'outline-heading-end-regexp) ":\\s-*\n")
(set (make-local-variable 'outline-level) #'python-outline-level)
- (set (make-local-variable 'open-paren-in-column-0-is-defun-start) nil)
+ ;;(set (make-local-variable 'open-paren-in-column-0-is-defun-start) nil)
(make-local-variable 'python-saved-check-command)
(set (make-local-variable 'beginning-of-defun-function)
'python-beginning-of-defun)
**********************************************************************
Or, if this is assumed too risky at this point in time, maybe this at
least:
**********************************************************************
--- EmacsCVS/lisp/progmodes/python.el 2006-12-10 11:49:05.479332800 +0100
+++ Emacs/lisp/progmodes/python.el 2006-12-10 15:27:56.628148800 +0100
@@ -2236,6 +2236,7 @@
symbol-end))
(set (make-local-variable 'outline-heading-end-regexp) ":\\s-*\n")
(set (make-local-variable 'outline-level) #'python-outline-level)
+ ;; TODO: isn't setting opic0ids noop?
(set (make-local-variable 'open-paren-in-column-0-is-defun-start) nil)
(make-local-variable 'python-saved-check-command)
(set (make-local-variable 'beginning-of-defun-function)
**********************************************************************
--
Best wishes,
Slawomir Nowaczyk
( address@hidden )
Christmas: Be Naughty - save Santa the trip.
- Re: Mysterious fontification/C++ context issue, (continued)
- Re: Mysterious fontification/C++ context issue, Richard Stallman, 2006/12/06
- Re: Mysterious fontification/C++ context issue, martin rudalics, 2006/12/06
- Re: Mysterious fontification/C++ context issue, Richard Stallman, 2006/12/08
- Re: Mysterious fontification/C++ context issue, martin rudalics, 2006/12/09
- Re: Mysterious fontification/C++ context issue, Richard Stallman, 2006/12/09
- Re: Mysterious fontification/C++ context issue, martin rudalics, 2006/12/10
- Re: Mysterious fontification/C++ context issue, Alan Mackenzie, 2006/12/10
- Re: Mysterious fontification/C++ context issue, martin rudalics, 2006/12/10
- Re: Mysterious fontification/C++ context issue,
Slawomir Nowaczyk <=
- Re: Mysterious fontification/C++ context issue, Stefan Monnier, 2006/12/10
Re: Mysterious fontification/C++ context issue, Alan Mackenzie, 2006/12/06