From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Use regex in ~/.emacs.d/init.el to match no_proxy. Date: Sun, 11 Apr 2021 21:17:15 +0800 Message-ID: References: <8635w3d4wr.fsf@x201.butler.org> <20210407071939.GA13640@tuxteam.de> <87tuohthld.fsf@fastmail.fm> <87h7kemdu8.fsf@fastmail.fm> <87eefhm5r5.fsf@fastmail.fm> <87zgy5dmqe.fsf@passepartout.tim-landscheidt.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38695"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Tim Landscheidt Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 11 15:17:53 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVZyK-0009yt-OD for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Apr 2021 15:17:52 +0200 Original-Received: from localhost ([::1]:43268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVZyJ-0003NV-Q3 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Apr 2021 09:17:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVZxz-0003NM-0L for help-gnu-emacs@gnu.org; Sun, 11 Apr 2021 09:17:31 -0400 Original-Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]:35530) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVZxx-0006r3-89 for help-gnu-emacs@gnu.org; Sun, 11 Apr 2021 09:17:30 -0400 Original-Received: by mail-lf1-x130.google.com with SMTP id x13so6867365lfr.2 for ; Sun, 11 Apr 2021 06:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=a4K3T0tGeGxkP/xTa7mhzkSkyqU5uwkapnwXSnAcTag=; b=n8gRe3BFwoCE2mENr9hKPds2nbNrDlTgnTxEYUKRLbYlkwgZF+aXuos3TVyEJctN7S u9h+IvgqZFjkBrpdhXlBG2dUGGXp61J5ironQFBnBGBRESMgdrXuJ3ORieC5G2ofYo9z AKyNBMTwv8/eSB7wiNyaBMNXc8wSS4C0MexmS2oXk1POqPC+2q90LSDb3aVRc0tCvNQi hnrb+qFQQmYzIYYR76wo5fPptYaU4J+mWpdsqM3Y/EB8JL8hWckuNsCH57Lr6yjcxcOi ppX5HZQxwnahDR07lsChfvrQN5TnfXdr2ATe+QtoxlfPFeZsMVnxgf/6EGG3scBJSKDz IVhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=a4K3T0tGeGxkP/xTa7mhzkSkyqU5uwkapnwXSnAcTag=; b=KEDatLpNpnAbzAoxxD0zUGvF7ga2BnoVxgvxtmSB6dS1Yh+xZqIdDF7jdyO6ySVedu uebED7dwsR1TNk9bZD933ZEQ8BaVH2e2EOP3JH5dBHbOnaXmYK4SiPHp3bw02pdr5Gyy 8RNKj1Hy7DmmjLwEQDgHzQzEzCMNUsfayBCdQkEutDZfROfqYCSeOPcRdyaseEnqCBIG Autg0xD/S0vqfz51lZcd5+ZD9B/zhl2RYQFhv4+5CXqmGA3CUnvcSN1PIdtIJ6Zy28LK t2lfQArK/mKy9PvMAhCFyIlkIz5V4jd7VdPe6rNEpyt8AbPs0bXh17bAWSs63VoobCSi SKRQ== X-Gm-Message-State: AOAM531vPlOKEdcER98xx6SM6it12z8WSgBUgsy0eAclBybJWRAeOLaz WAoFu6FoZfu+ozcbJbneJJ3GrvimZtm3smFOXao= X-Google-Smtp-Source: ABdhPJyzJJPmmZ5fIdSo553TCXWguOOX+peB5WlcFTf77o1MGubiLBhGQeKO8CFJXTlOJVr74uML2o/V0EuJgLvqb/k= X-Received: by 2002:a19:f802:: with SMTP id a2mr7661157lff.545.1618147046790; Sun, 11 Apr 2021 06:17:26 -0700 (PDT) In-Reply-To: <87zgy5dmqe.fsf@passepartout.tim-landscheidt.de> Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x130.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128947 Archived-At: On Sun, Apr 11, 2021 at 8:42 PM Tim Landscheidt wr= ote: > > Joost Kremers 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 muc= h more > > readable and easier to modify if you ever need to. > > =E2=80=A6 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=E2=84=A2. Why do you use superscript `TM' here? > Tim > > --=20 Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic University of Science and Technology engineering NO. 552 North Gangtie Road, Xingtai, China