unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#3964: 23.1.50; checkdoc more safe-local-variable
@ 2009-07-29 23:05 ` Kevin Ryde
  2009-08-22 23:10   ` bug#3964: marked as done (23.1.50; checkdoc more safe-local-variable) Emacs bug Tracking System
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Ryde @ 2009-07-29 23:05 UTC (permalink / raw)
  To: emacs-pretest-bug

[-- Attachment #1: Type: text/plain, Size: 616 bytes --]

I noticed a couple of checkdoc.el variables which could have
safe-local-variable settings.  I struck checkdoc-arguments-in-order-flag
and checkdoc-symbol-words in bongo.el.

The checkdoc-symbol-words docstring invites you to set it as a local
variable, so it in particular ought to have something for what's safe.

2009-07-30  Kevin Ryde  <user42@zip.com.au>

	* emacs-lisp/checkdoc.el (checkdoc-force-history-flag,
	checkdoc-arguments-in-order-flag): Add safe-local-variable booleanp.
	(checkdoc-symbol-words): Add safe-local-variable for list of strings,
	clarify docstring that the value is strings not symbols.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: checkdoc.el.safe-lvar.diff --]
[-- Type: text/x-diff, Size: 2038 bytes --]

*** checkdoc.el	23 Jul 2009 07:41:51 +1000	1.72
--- checkdoc.el	28 Jul 2009 14:29:14 +1000	
***************
*** 223,228 ****
--- 223,229 ----
  This helps document the evolution of, and recent changes to, the package."
    :group 'checkdoc
    :type 'boolean)
+ ;;;###autoload(put 'checkdoc-force-history-flag 'safe-local-variable 'booleanp)
  
  (defcustom checkdoc-permit-comma-termination-flag nil
    "Non-nil means the first line of a docstring may end with a comma.
***************
*** 270,275 ****
--- 271,277 ----
  made in the style guide relating to order."
    :group 'checkdoc
    :type 'boolean)
+ ;;;###autoload(put 'checkdoc-arguments-in-order-flag 'safe-local-variable 'booleanp)
  
  (defvar checkdoc-style-hooks nil
    "Hooks called after the standard style check is completed.
***************
*** 307,317 ****
  with a universal argument.")
  
  (defcustom checkdoc-symbol-words nil
!   "A list of symbols which also happen to make good words.
! These symbol-words are ignored when unquoted symbols are searched for.
  This should be set in an Emacs Lisp file's local variables."
    :group 'checkdoc
    :type '(repeat (symbol :tag "Word")))
  
  (defvar checkdoc-proper-noun-list
    '("ispell" "xemacs" "emacs" "lisp")
--- 309,327 ----
  with a universal argument.")
  
  (defcustom checkdoc-symbol-words nil
!   "A list of symbol names (strings) which also happen to make good words.
! These words are ignored when unquoted symbols are searched for.
  This should be set in an Emacs Lisp file's local variables."
    :group 'checkdoc
    :type '(repeat (symbol :tag "Word")))
+ ;;;###autoload(put 'checkdoc-symbol-words 'safe-local-variable 'checkdoc-list-of-strings-p)
+ 
+ ;;;###autoload
+ (defun checkdoc-list-of-strings-p (obj)
+   ;; this is a function so it might be shared by checkdoc-proper-noun-list
+   ;; and/or checkdoc-ispell-lisp-words in the future
+   (and (listp obj)
+        (not (memq nil (mapcar 'stringp obj)))))
  
  (defvar checkdoc-proper-noun-list
    '("ispell" "xemacs" "emacs" "lisp")

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

* bug#3964: marked as done (23.1.50; checkdoc more safe-local-variable)
  2009-07-29 23:05 ` bug#3964: 23.1.50; checkdoc more safe-local-variable Kevin Ryde
@ 2009-08-22 23:10   ` Emacs bug Tracking System
  0 siblings, 0 replies; 2+ messages in thread
From: Emacs bug Tracking System @ 2009-08-22 23:10 UTC (permalink / raw)
  To: Glenn Morris

[-- Attachment #1: Type: text/plain, Size: 884 bytes --]

Your message dated Sat, 22 Aug 2009 19:02:41 -0400
with message-id <d38whbmoz2.fsf@fencepost.gnu.org>
and subject line Re: bug#3964: 23.1.50; checkdoc more safe-local-variable
has caused the Emacs bug report #3964,
regarding 23.1.50; checkdoc more safe-local-variable
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
3964: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3964
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 5099 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 616 bytes --]

I noticed a couple of checkdoc.el variables which could have
safe-local-variable settings.  I struck checkdoc-arguments-in-order-flag
and checkdoc-symbol-words in bongo.el.

The checkdoc-symbol-words docstring invites you to set it as a local
variable, so it in particular ought to have something for what's safe.

2009-07-30  Kevin Ryde  <user42@zip.com.au>

	* emacs-lisp/checkdoc.el (checkdoc-force-history-flag,
	checkdoc-arguments-in-order-flag): Add safe-local-variable booleanp.
	(checkdoc-symbol-words): Add safe-local-variable for list of strings,
	clarify docstring that the value is strings not symbols.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2.1.2: checkdoc.el.safe-lvar.diff --]
[-- Type: text/x-diff, Size: 2038 bytes --]

*** checkdoc.el	23 Jul 2009 07:41:51 +1000	1.72
--- checkdoc.el	28 Jul 2009 14:29:14 +1000	
***************
*** 223,228 ****
--- 223,229 ----
  This helps document the evolution of, and recent changes to, the package."
    :group 'checkdoc
    :type 'boolean)
+ ;;;###autoload(put 'checkdoc-force-history-flag 'safe-local-variable 'booleanp)
  
  (defcustom checkdoc-permit-comma-termination-flag nil
    "Non-nil means the first line of a docstring may end with a comma.
***************
*** 270,275 ****
--- 271,277 ----
  made in the style guide relating to order."
    :group 'checkdoc
    :type 'boolean)
+ ;;;###autoload(put 'checkdoc-arguments-in-order-flag 'safe-local-variable 'booleanp)
  
  (defvar checkdoc-style-hooks nil
    "Hooks called after the standard style check is completed.
***************
*** 307,317 ****
  with a universal argument.")
  
  (defcustom checkdoc-symbol-words nil
!   "A list of symbols which also happen to make good words.
! These symbol-words are ignored when unquoted symbols are searched for.
  This should be set in an Emacs Lisp file's local variables."
    :group 'checkdoc
    :type '(repeat (symbol :tag "Word")))
  
  (defvar checkdoc-proper-noun-list
    '("ispell" "xemacs" "emacs" "lisp")
--- 309,327 ----
  with a universal argument.")
  
  (defcustom checkdoc-symbol-words nil
!   "A list of symbol names (strings) which also happen to make good words.
! These words are ignored when unquoted symbols are searched for.
  This should be set in an Emacs Lisp file's local variables."
    :group 'checkdoc
    :type '(repeat (symbol :tag "Word")))
+ ;;;###autoload(put 'checkdoc-symbol-words 'safe-local-variable 'checkdoc-list-of-strings-p)
+ 
+ ;;;###autoload
+ (defun checkdoc-list-of-strings-p (obj)
+   ;; this is a function so it might be shared by checkdoc-proper-noun-list
+   ;; and/or checkdoc-ispell-lisp-words in the future
+   (and (listp obj)
+        (not (memq nil (mapcar 'stringp obj)))))
  
  (defvar checkdoc-proper-noun-list
    '("ispell" "xemacs" "emacs" "lisp")

[-- Attachment #3: Type: message/rfc822, Size: 1528 bytes --]

From: Glenn Morris <rgm@gnu.org>
To: 3964-done@emacsbugs.donarmstrong.com
Subject: Re: bug#3964: 23.1.50; checkdoc more safe-local-variable
Date: Sat, 22 Aug 2009 19:02:41 -0400
Message-ID: <d38whbmoz2.fsf@fencepost.gnu.org>


Thank you; applied.

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

end of thread, other threads:[~2009-08-22 23:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <d38whbmoz2.fsf@fencepost.gnu.org>
2009-07-29 23:05 ` bug#3964: 23.1.50; checkdoc more safe-local-variable Kevin Ryde
2009-08-22 23:10   ` bug#3964: marked as done (23.1.50; checkdoc more safe-local-variable) Emacs bug Tracking System

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).