all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Font-lock keywords broken in cfengine-mode
@ 2006-12-31  9:48 Romain Francoise
  2006-12-31 22:13 ` Richard Stallman
  0 siblings, 1 reply; 5+ messages in thread
From: Romain Francoise @ 2006-12-31  9:48 UTC (permalink / raw)


Entering cfengine-mode makes the following appear in the Messages
buffer:

  Error during redisplay: (wrong-type-argument listp \)

The problem goes away after reverting this change:

2006-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>

	* progmodes/cfengine.el (cfengine-font-lock-syntactic-keywords): Newvar.
	(cfengine-mode): Use it.  Fix \ syntax to be like /.

(This is Debian bug #404244.)

-- 
Romain Francoise <romain@orebokech.com> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
                                        | ever free! --Bryan W. Procter

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

* Re: Font-lock keywords broken in cfengine-mode
  2006-12-31  9:48 Font-lock keywords broken in cfengine-mode Romain Francoise
@ 2006-12-31 22:13 ` Richard Stallman
  2006-12-31 23:53   ` Romain Francoise
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Stallman @ 2006-12-31 22:13 UTC (permalink / raw)
  Cc: emacs-devel

    Entering cfengine-mode makes the following appear in the Messages
    buffer:

      Error during redisplay: (wrong-type-argument listp \)

This does not happen when I try it.  It must depend on some other
details.  (I am using a tty, for instance.)  Can you present a
self-contained test case, and figure out what else we need
to know to make this fail?

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

* Re: Font-lock keywords broken in cfengine-mode
  2006-12-31 22:13 ` Richard Stallman
@ 2006-12-31 23:53   ` Romain Francoise
  2007-01-01 21:57     ` Richard Stallman
  0 siblings, 1 reply; 5+ messages in thread
From: Romain Francoise @ 2006-12-31 23:53 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

> This does not happen when I try it.  It must depend on some other
> details.

The buffer must be non-empty (otherwise font-lock doesn't kick in).

> Can you present a self-contained test case, and figure out what
> else we need to know to make this fail?

The following steps should suffice:

 1. echo '# -*- cfengine -*-' >/tmp/cf.test
 2. emacs -Q /tmp/cf.test
 3. C-h e

-- 
Romain Francoise <romain@orebokech.com> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
                                        | ever free! --Bryan W. Procter

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

* Re: Font-lock keywords broken in cfengine-mode
  2006-12-31 23:53   ` Romain Francoise
@ 2007-01-01 21:57     ` Richard Stallman
  2007-01-02 13:02       ` Romain Francoise
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Stallman @ 2007-01-01 21:57 UTC (permalink / raw)
  Cc: emacs-devel

Does this fix it?

*** cfengine.el	11 Sep 2006 10:33:19 -0400	1.10
--- cfengine.el	01 Jan 2007 15:45:06 -0500	
***************
*** 89,95 ****
    ;; In the main syntax-table, backslash is marked as a punctuation, because
    ;; of its use in DOS-style directory separators.  Here we try to recognize
    ;; the cases where backslash is used as an escape inside strings.
!   '(("\\(\\(?:\\\\\\)+\\)\"" . "\\")))
  
  (defvar cfengine-imenu-expression
    `((nil ,(concat "^[ \t]*" (eval-when-compile
--- 89,95 ----
    ;; In the main syntax-table, backslash is marked as a punctuation, because
    ;; of its use in DOS-style directory separators.  Here we try to recognize
    ;; the cases where backslash is used as an escape inside strings.
!   '(("\\(\\(?:\\\\\\)+\\)\"" 1 "\\")))
  
  (defvar cfengine-imenu-expression
    `((nil ,(concat "^[ \t]*" (eval-when-compile

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

* Re: Font-lock keywords broken in cfengine-mode
  2007-01-01 21:57     ` Richard Stallman
@ 2007-01-02 13:02       ` Romain Francoise
  0 siblings, 0 replies; 5+ messages in thread
From: Romain Francoise @ 2007-01-02 13:02 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

> Does this fix it?

Yes, it does.

-- 
Romain Francoise <romain@orebokech.com> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
                                        | ever free! --Bryan W. Procter

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

end of thread, other threads:[~2007-01-02 13:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-31  9:48 Font-lock keywords broken in cfengine-mode Romain Francoise
2006-12-31 22:13 ` Richard Stallman
2006-12-31 23:53   ` Romain Francoise
2007-01-01 21:57     ` Richard Stallman
2007-01-02 13:02       ` Romain Francoise

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.