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

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

mark comment-{start,end}[-skip] as safe-local-variable


From: Dan Nicolaescu
Subject: mark comment-{start,end}[-skip] as safe-local-variable
Date: Thu, 20 Apr 2006 11:43:11 -0700

/etc/termcap on my Fedora Core 5 system uses comment-start and
comment-start-skip, so given that they are actively used as local
variables, they should be marked as safe. 
By analogy *-end variables should be also be marked as safe.

Should I check this in?


*** newcomment.el       17 Apr 2006 09:41:47 -0700      1.92
--- newcomment.el       20 Apr 2006 11:37:05 -0700      
***************
*** 108,128 ****
--- 108,132 ----
  ;;;###autoload
  (defvar comment-start nil
    "*String to insert to start a new comment, or nil if no comment syntax.")
+ ;;;###autoload(put 'comment-start 'safe-local-variable 'string-or-null-p)
  
  ;;;###autoload
  (defvar comment-start-skip nil
    "*Regexp to match the start of a comment plus everything up to its body.
  If there are any \\(...\\) pairs, the comment delimiter text is held to begin
  at the place matched by the close of the first pair.")
+ ;;;###autoload(put 'comment-start-skip 'safe-local-variable 'string-or-null-p)
  
  ;;;###autoload
  (defvar comment-end-skip nil
    "Regexp to match the end of a comment plus everything up to its body.")
+ ;;;###autoload(put 'comment-end-skip 'safe-local-variable 'string-or-null-p)
  
  ;;;###autoload
  (defvar comment-end ""
    "*String to insert to end a new comment.
  Should be an empty string if comments are terminated by end-of-line.")
+ ;;;###autoload(put 'comment-end 'safe-local-variable 'string-or-null-p)
  
  ;;;###autoload
  (defvar comment-indent-function 'comment-indent-default




reply via email to

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