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

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

bug#14089: 24.3; file local variables can't have a colon in their name


From: Bastien
Subject: bug#14089: 24.3; file local variables can't have a colon in their name
Date: Wed, 03 Apr 2013 14:14:08 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Hi Eric,

here is an updated patch for handling this.

The idea is to allow ":" in mode's names and variables names.
No need to use two `looking-at' in this case I think.

I'll submit the patch to emacs-devel and apply it if it's good.

Thanks,

address@hidden writes:

> === modified file 'lisp/files.el'
> --- lisp/files.el     2013-03-24 06:42:25 +0000
> +++ lisp/files.el     2013-03-28 23:09:26 +0000
> @@ -3058,7 +3058,11 @@
>              (while (and (or (not mode-only)
>                              (not result))
>                          (< (point) end))
> -              (unless (looking-at "[ \t]*\\([^ \t\n:]+\\)[ \t]*:[ \t]*")
> +                 ;; The first of these next two regexs handles the
> +                 ;; case when a variable name includes a ":", such as
> +                 ;; the `org-babel-default-header-args:R' variable.
> +              (unless (or (looking-at "[ \t]*\\([^ \t\n]?+\\)[ \t]*:[ \t]*")
> +                             (looking-at "[ \t]*\\([^ \t\n:]+\\)[ \t]*:[ 
> \t]*"))
>                  (message "Malformed mode-line")
>                  (throw 'malformed-line nil))
>                (goto-char (match-end 0))

Attachment: files.el.patch
Description: Text Data

-- 
 Bastien

reply via email to

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