unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* font-lock-match-c-style-declaration-item-and-skip-to-next
@ 2008-05-07  3:02 Glenn Morris
  2008-05-16 23:17 ` font-lock-match-c-style-declaration-item-and-skip-to-next Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Glenn Morris @ 2008-05-07  3:02 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: emacs-devel


This change:

  2008-02-01  Kenichi Handa  <handa@m17n.org>

    * font-lock.el (font-lock-match-c-style-declaration-item-and-skip-to-next):
    Check (match-end 2) before going there.
 
causes some font-locking in Fortran mode to stop working (for reasons
I haven't really looked into).

emacs -Q
M-x fortran-mode
TAB integer foo RET
TAB integer bar, foo RET

"foo" should be highlighted as a variable, but is not. "bar" is.

Your change makes font-lock-match-c-style-declaration-item-and-skip-to-next
return nil if (match-end 2) is nil. Previously, it returned t.

I don't know if I should change fortran.el, or if
very-long-and-literal-function-name should return t again.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: font-lock-match-c-style-declaration-item-and-skip-to-next
  2008-05-07  3:02 font-lock-match-c-style-declaration-item-and-skip-to-next Glenn Morris
@ 2008-05-16 23:17 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2008-05-16 23:17 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: emacs-devel

Glenn Morris wrote:

>   2008-02-01  Kenichi Handa  <handa@m17n.org>
>
>     * font-lock.el (font-lock-match-c-style-declaration-item-and-skip-to-next):
>     Check (match-end 2) before going there.
>  
> causes some font-locking in Fortran mode to stop working
[...]
> Your change makes font-lock-match-c-style-declaration-item-and-skip-to-next
> return nil if (match-end 2) is nil. Previously, it returned t.


Any comment on this? Can you remember why you made this change?




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-16 23:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-07  3:02 font-lock-match-c-style-declaration-item-and-skip-to-next Glenn Morris
2008-05-16 23:17 ` font-lock-match-c-style-declaration-item-and-skip-to-next Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).