unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Koppelman <koppel@ece.lsu.edu>
To: Alan Mackenzie <acm@muc.de>
Cc: emacs-devel@gnu.org
Subject: Re: Changes to hi-lock before release.
Date: Tue, 24 Apr 2007 16:34:05 -0500	[thread overview]
Message-ID: <7wfy6pfodu.fsf@ece.lsu.edu> (raw)
In-Reply-To: <20070424223047.GA9455@muc.de> (Alan Mackenzie's message of "24 Apr 2007 23\:10\:12 +0200\, Tue\, 24 Apr 2007 23\:30\:47 +0100")


Alan Mackenzie <acm@muc.de> writes:

> Hi, Richard, Chong and Emacs!
>
> Sorry to come into this thread so late.  I think there're serious
> problems with the patched hi-lock-mode (I've just fired up the latest
> pretest, 22.0.99): it treats users with less friendliness than they're
> entitled to expect:

It's all my fault. Had I attended to this sooner there would have been
time to come up with something better for existing users. The reason
for setting it to 'never rather than 'ask is because I felt it was
worse to harass unsophisticated users with questions each time they
visited a file than to temporarily deny users the patterns they
already have in files.

In a future change I'm going to apply some kind of conservative safety
test to the patterns and either reject or ask about those which fail
the tests. I'm also thinking about specifying patterns in a .emacs
file that would be applied to files with names matching a regexp (or
passing some other test).

> Why do I have to write

> (defun return-t (arg) t)
>
> , and set the hi-lock-file-patterns-policy to that instead?  Is this
> some sort of security by obscurity?

The security is against mischief in files visited by Emacs. Users edit
their .emacs file at their own risk.

The hi-lock-file-patterns-policy variable was made into a defcustom.

  reply	other threads:[~2007-04-24 21:34 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-20 19:06 Changes to hi-lock before release David Koppelman
2007-04-20 19:29 ` Chong Yidong
2007-04-21  9:20   ` Eli Zaretskii
2007-04-21 10:12     ` Johan Bockgård
2007-04-21 18:25       ` Richard Stallman
2007-04-21 19:26         ` Chong Yidong
2007-04-22  3:13           ` Eli Zaretskii
     [not found] ` <E1HfGbN-0006PL-IH@fencepost.gnu.org>
2007-04-21 17:32   ` Chong Yidong
2007-04-22  0:46     ` Richard Stallman
2007-04-22  1:47       ` Glenn Morris
2007-04-23  3:48         ` Richard Stallman
2007-04-22  0:46     ` Richard Stallman
2007-04-22  2:45       ` Chong Yidong
2007-04-23  3:47         ` Richard Stallman
2007-04-23 14:39           ` Chong Yidong
2007-04-24 21:10 ` Alan Mackenzie
2007-04-24 21:34   ` David Koppelman [this message]
2007-04-25 11:53     ` Changes to hi-lock before release. PATCH Alan Mackenzie
2007-04-25 14:51     ` Changes to hi-lock before release Richard Stallman
2007-04-25 15:18       ` David Koppelman
2007-04-27  5:59         ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7wfy6pfodu.fsf@ece.lsu.edu \
    --to=koppel@ece.lsu.edu \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).