From: Tim Landscheidt <tim@tim-landscheidt.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Use regex in ~/.emacs.d/init.el to match no_proxy.
Date: Sun, 11 Apr 2021 12:33:45 +0000 [thread overview]
Message-ID: <87zgy5dmqe.fsf@passepartout.tim-landscheidt.de> (raw)
In-Reply-To: 87eefhm5r5.fsf@fastmail.fm
Joost Kremers <joostkremers@fastmail.fm> wrote:
>> This is just what I wonder. Why can't we let Emacs use the
>> human-readable regexp string representation in its init file?
> I guess the reason is "because it hasn't been implemented". There was a
> suggestion recently on the emacs-devel mailing list to add a raw syntax or
> regexp syntax to the Elisp reader, but nothing came of it.
> In your use case, however, what I would do would be to put the call to
> `regexp-opt` into my init file, not its return value. That makes it much more
> readable and easier to modify if you ever need to.
… and that is also the huge advantage of not having only hu-
man-readable strings in Emacs's init file, but being able to
program in Emacs Lisp whatever is needed. For "simple" cus-
tomizations, I recommend the Customization interface: It al-
lows to enter complex data structures in a guided way and
does The Right Thing™.
Tim
next prev parent reply other threads:[~2021-04-11 12:33 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-06 8:22 Use regex in ~/.emacs.d/init.el to match no_proxy Hongyi Zhao
2021-04-06 11:32 ` Leo Butler
2021-04-06 16:26 ` Hongyi Zhao
2021-04-06 16:56 ` Gregory Heytings
2021-04-07 1:26 ` Hongyi Zhao
2021-04-07 7:19 ` tomas
2021-04-08 1:17 ` Hongyi Zhao
2021-04-08 6:24 ` Joost Kremers
2021-04-10 13:49 ` Hongyi Zhao
2021-04-10 14:05 ` Joost Kremers
2021-04-11 0:04 ` Hongyi Zhao
2021-04-11 11:12 ` Joost Kremers
2021-04-11 12:33 ` Tim Landscheidt [this message]
2021-04-11 13:17 ` Hongyi Zhao
2021-04-11 13:47 ` tomas
2021-04-11 21:47 ` [External] : " Drew Adams
2021-04-12 7:46 ` tomas
2021-04-08 7:00 ` Robert Thorpe
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zgy5dmqe.fsf@passepartout.tim-landscheidt.de \
--to=tim@tim-landscheidt.de \
--cc=help-gnu-emacs@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 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.