From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.devel Subject: Re: Comments on setopt Date: Sat, 19 Feb 2022 12:52:00 +0100 Message-ID: References: <871r05rr2r.fsf@posteo.net> <87a6esztjj.fsf@yahoo.com> <87bkz7wagv.fsf@yahoo.com> <87a6enkt2k.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000031a55c05d85da105" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23668"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , Philip Kaludercic , Richard Stallman , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 19 13:00:56 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nLOQ3-0005xD-SV for ged-emacs-devel@m.gmane-mx.org; Sat, 19 Feb 2022 13:00:55 +0100 Original-Received: from localhost ([::1]:51168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLOQ2-0001g4-HD for ged-emacs-devel@m.gmane-mx.org; Sat, 19 Feb 2022 07:00:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLOO3-0000iL-NX for emacs-devel@gnu.org; Sat, 19 Feb 2022 06:58:51 -0500 Original-Received: from [2607:f8b0:4864:20::32d] (port=41588 helo=mail-ot1-x32d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLONX-0006nw-Ba; Sat, 19 Feb 2022 06:58:51 -0500 Original-Received: by mail-ot1-x32d.google.com with SMTP id k22-20020a9d4b96000000b005ad5211bd5aso1949864otf.8; Sat, 19 Feb 2022 03:58:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EeoJ12fmfG++D+pcIslVTHr4bI0+seVvCEMSADfi1+k=; b=dU9oFy0jBR99pGrx4uJs9lekEZum21PcURS3MeqXJqBRQupvv652Mhh3QI4RQTqow/ US6876TBFqazCCa6gLz8cSu8s2vi+tSasYunIFTaptvNjmhl0EZibG07nvQara5WrPdt +eilftfZTgacBb805iWh8F3ACVFkNKV6Ag8qjuS0UYAlRKb0IOhhY0CFxQx04BBNf24U 7A0AS52LbTThO5035GEWEucjabIBBA/g7YuDwI4e3XcYi/d2DxTBV+BYIBO0CTi3xoAy /TgrqRyVVw5ox8QyFEqmH6gH4VSt192ld5EPz85LYFhqJwgZtqPn8k5U7PULdVD4PJIz rDVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EeoJ12fmfG++D+pcIslVTHr4bI0+seVvCEMSADfi1+k=; b=zwNx00kerOqM0hhRXME9r3VOPhQyBWbL10k40Er+UuhOrKpdNlKuFiHJxft2TdhbIF YNso6VKNj7lEVldy8gh0oQU3x7QCL3ElTVaj6NHvOoHwJHMg5ZZYtNX7iwr0Z9VOBKxh +Z0B/yinPkh25lGQUyYIuVcF+SNhVPecihEzjr0/dMbScJ1aXiHd8uiG1wCtDquAYAVQ YXcaClERrJYfHp6eRSEcsvF587BqURcocQzBjdniBJjfyTqZ7WzTN44uHN59ihI78/KO z/gny/e2HGUZUhR5tLkWpUMJym17WOITzFmbUEBclZaOa85J9youdCyPMZ87R8C5EFbs vuLg== X-Gm-Message-State: AOAM531IZQLlEEIsEQJK7OdHZvDTK8TuHlJtc3FBtvp7jZzID8jJyhXA UUL8wnmB6gsHvlSGM6/Uc4nFHL0z8qYNsCcYFLeMtVwocd4= X-Google-Smtp-Source: ABdhPJxPkB9cro20uQ5ltwrPHSvmcqGwDtzuRVKjxq77AWeI6uYHCequDgvcQYBQ9oEtQoUeEXWPobRkpBoBHop7mvE= X-Received: by 2002:a5b:6cf:0:b0:61e:1371:3cda with SMTP id r15-20020a5b06cf000000b0061e13713cdamr11295685ybq.235.1645271531494; Sat, 19 Feb 2022 03:52:11 -0800 (PST) In-Reply-To: <87a6enkt2k.fsf@gnus.org> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::32d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::32d; envelope-from=mathias.dahl@gmail.com; helo=mail-ot1-x32d.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:286461 Archived-At: --00000000000031a55c05d85da105 Content-Type: text/plain; charset="UTF-8" setuopt? On Sat, Feb 19, 2022 at 12:17 PM Lars Ingebrigtsen wrote: > Richard Stallman writes: > > > Since it isn't meant for the command line options that `getopt' examines, > > the name `setopt' is misleading. (It already misled me!) > > This name should be changed to something longer and clearer. > > You mean you thought this had something to do with getopt.h? I don't > thing confusing `setopt' with that has potential to confuse many people > writing Lisp code -- most people haven't heard of getopt.h, there is no > `getopt' function in Emacs Lisp, and what would setting a command line > switch even mean? > > The point is that we need a variant of `setq' for user options that > people can use when saying `M-:' and in init files, so it needs to be > short and snappy. `seto' and `setc' were proposed, but I thought those > were too confusing. > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > > --00000000000031a55c05d85da105 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
setuopt?

On Sat, Feb 19, 2022 at 12:17 PM Lars Ingebrigtsen= <larsi@gnus.org> wrote:
Richard Stallman <<= a href=3D"mailto:rms@gnu.org" target=3D"_blank">rms@gnu.org> writes:=

> Since it isn't meant for the command line options that `getopt'= ; examines,
> the name `setopt' is misleading.=C2=A0 (It already misled me!)
> This name should be changed to something longer and clearer.

You mean you thought this had something to do with getopt.h?=C2=A0 I don= 9;t
thing confusing `setopt' with that has potential to confuse many people=
writing Lisp code -- most people haven't heard of getopt.h, there is no=
`getopt' function in Emacs Lisp, and what would setting a command line<= br> switch even mean?

The point is that we need a variant of `setq' for user options that
people can use when saying `M-:' and in init files, so it needs to be short and snappy.=C2=A0 `seto' and `setc' were proposed, but I thou= ght those
were too confusing.

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no

--00000000000031a55c05d85da105--