all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joost Kremers <joostkremers@fastmail.fm>
To: Hongyi Zhao <hongyi.zhao@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Use regex in ~/.emacs.d/init.el to match no_proxy.
Date: Sun, 11 Apr 2021 13:12:50 +0200	[thread overview]
Message-ID: <87eefhm5r5.fsf@fastmail.fm> (raw)
In-Reply-To: <CAGP6POJp8h5CqkMMzg0rNv4X0Z6e9fTHZ+VRtfzxk+jQuqj=LQ@mail.gmail.com>


On Sun, Apr 11 2021, Hongyi Zhao 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.

-- 
Joost Kremers
Life has its moments



  reply	other threads:[~2021-04-11 11:12 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 [this message]
2021-04-11 12:33                       ` Tim Landscheidt
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=87eefhm5r5.fsf@fastmail.fm \
    --to=joostkremers@fastmail.fm \
    --cc=help-gnu-emacs@gnu.org \
    --cc=hongyi.zhao@gmail.com \
    /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.