all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [trentbuck@gmail.com: RFE: (put 'conf-space-keywords 'safe-local-variable 'stringp)]
@ 2007-10-16  4:11 Richard Stallman
  2007-10-23  7:13 ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2007-10-16  4:11 UTC (permalink / raw)
  To: emacs-devel

Could someone please DTRT for this, then ack?

------- Start of forwarded message -------
X-Spam-Status: No, score=0.6 required=5.0 tests=NO_REAL_NAME,
	UNPARSEABLE_RELAY autolearn=no version=3.1.0
Date: Thu, 04 Oct 2007 15:25:18 +1000
To: bug-gnu-emacs@gnu.org
From: trentbuck@gmail.com
Cc: trentbuck@gmail.com
Subject: RFE: (put 'conf-space-keywords 'safe-local-variable 'stringp)

It would be nice if conf mode marked -keywords variables as safe to
set locally, so that e.g. one could add to ~/.nanorc

    # -*- mode: conf-space; conf-space-keywords: "set\\|unset" -*-

I believe the relevant change is simply to add

    (put 'conf-space-keywords 'safe-local-variable 'stringp)

In GNU Emacs 22.1.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2007-08-22 on excelsior, modified by Debian
configured using `configure  '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.1/leim' '--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_AU.utf8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Conf[Space]

Minor modes in effect:
  xterm-mouse-mode: t
  savehist-mode: t
  shell-dirtrack-mode: t
  icomplete-mode: t
  partial-completion-mode: t
  show-paren-mode: t
  delete-selection-mode: t
  encoded-kbd-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
k e y w o r d s : SPC " \ \ ( u n \ \ ) s e t C-b C-b 
C-b ? ESC [ C C-f C-f C-f " C-x C-s ESC b DEL DEL DEL 
DEL DEL DEL DEL DEL DEL ESC f \ \ | u n s e t C-x C-s 
C-x C-k C-x C-f C-f . n a n TAB RET C-a ESC f ESC f 
ESC b ESC b m o d e : SPC C-x C-s C-x C-k C-x C-f C-f 
ESC p RET y C-x o C-x o C-x o C-x o ESC [ B ESC [ B 
C-n C-n s e t SPC a l g e b r a C-x C-s ESC [ 1 ~ C-k 
C-x C-s s e t SPC b a c k u p C-x C-s C-j u n s e t 
SPC c a s e s e n s i t i v e C-x C-s RET s e t SPC 
f i l l SPC 7 0 C-x C-s ESC [ A C-n RET C-x C-s ESC 
1 ESC ! ESC ! ESC 1 ESC ! m a n SPC n a n o r c RET 
C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k 
C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k 
C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-@ C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-w ESC SPC DEL C-x C-s C-x o C-x C-f 
C-g C-x o C-x o C-x o C-g ESC x r e p o r t SPC b u 
DEL DEL e m SPC RET b RET

Recent messages:
File local-variables error: (error "Malformed -*- line")
Wrote /home/twb/Preferences/.nanorc
Please type y, n, or !: 
Wrote /home/twb/Preferences/.nanorc [6 times]
let: Command attempted to use minibuffer while in minibuffer
Quit
Mark set
Wrote /home/twb/Preferences/.nanorc
Quit [2 times]
Loading emacsbug...done
------- End of forwarded message -------

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

* Re: [trentbuck@gmail.com: RFE: (put 'conf-space-keywords 'safe-local-variable 'stringp)]
  2007-10-16  4:11 [trentbuck@gmail.com: RFE: (put 'conf-space-keywords 'safe-local-variable 'stringp)] Richard Stallman
@ 2007-10-23  7:13 ` Glenn Morris
  2007-10-23 17:53   ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2007-10-23  7:13 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

Richard Stallman wrote:

> Could someone please DTRT for this, then ack?

Is an arbitrary regexp "safe"? I imagine one could construct a
regexp/file combination that overflows the regexp matcher. Not too
serious, but perhaps it is best to leave this unmarked?

> From: trentbuck@gmail.com
> Subject: RFE: (put 'conf-space-keywords 'safe-local-variable 'stringp)
> To: bug-gnu-emacs@gnu.org
> Cc: trentbuck@gmail.com
> Date: Thu, 04 Oct 2007 15:25:18 +1000
> X-Sent: 2 weeks, 5 days, 1 hour, 46 minutes, 9 seconds ago
>
> It would be nice if conf mode marked -keywords variables as safe to
> set locally, so that e.g. one could add to ~/.nanorc
>
>     # -*- mode: conf-space; conf-space-keywords: "set\\|unset" -*-

One can of course add such things at present, there is just a prompt
about applying them.

> I believe the relevant change is simply to add
>
>     (put 'conf-space-keywords 'safe-local-variable 'stringp)

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

* Re: [trentbuck@gmail.com: RFE: (put 'conf-space-keywords 'safe-local-variable 'stringp)]
  2007-10-23  7:13 ` Glenn Morris
@ 2007-10-23 17:53   ` Richard Stallman
  2007-10-25  4:10     ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2007-10-23 17:53 UTC (permalink / raw)
  To: Glenn Morris; +Cc: emacs-devel

    Is an arbitrary regexp "safe"? I imagine one could construct a
    regexp/file combination that overflows the regexp matcher. Not too
    serious, but perhaps it is best to leave this unmarked?

The worst that can do is cause a Lisp error.  We can consider it safe.
Please do add that property.

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

* Re: [trentbuck@gmail.com: RFE: (put 'conf-space-keywords 'safe-local-variable 'stringp)]
  2007-10-23 17:53   ` Richard Stallman
@ 2007-10-25  4:10     ` Glenn Morris
  0 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2007-10-25  4:10 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

Richard Stallman wrote:

> The worst that can do is cause a Lisp error.  We can consider it safe.
> Please do add that property.

ack

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

end of thread, other threads:[~2007-10-25  4:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-16  4:11 [trentbuck@gmail.com: RFE: (put 'conf-space-keywords 'safe-local-variable 'stringp)] Richard Stallman
2007-10-23  7:13 ` Glenn Morris
2007-10-23 17:53   ` Richard Stallman
2007-10-25  4:10     ` Glenn Morris

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.