From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#49278: 28.0.50; Lisp Mode is for Common Lisp Date: Tue, 29 Jun 2021 19:06:19 +0100 Message-ID: <87y2asa6lg.fsf@gmail.com> 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="10970"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca To: 49278@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 29 20:07:22 2021 Return-path: Envelope-to: geb-bug-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 1lyI8m-0002fI-As for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Jun 2021 20:07:20 +0200 Original-Received: from localhost ([::1]:42266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyI8l-0006nq-BY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Jun 2021 14:07:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyI8V-0006kt-Sa for bug-gnu-emacs@gnu.org; Tue, 29 Jun 2021 14:07:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyI8V-0003tJ-LQ for bug-gnu-emacs@gnu.org; Tue, 29 Jun 2021 14:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lyI8U-0003xf-Hi for bug-gnu-emacs@gnu.org; Tue, 29 Jun 2021 14:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Jun 2021 18:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49278 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162498999815187 (code B ref -1); Tue, 29 Jun 2021 18:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Jun 2021 18:06:38 +0000 Original-Received: from localhost ([127.0.0.1]:55272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyI85-0003wt-Je for submit@debbugs.gnu.org; Tue, 29 Jun 2021 14:06:38 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:57204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyI83-0003wi-V8 for submit@debbugs.gnu.org; Tue, 29 Jun 2021 14:06:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyI83-0006Gd-GC for bug-gnu-emacs@gnu.org; Tue, 29 Jun 2021 14:06:35 -0400 Original-Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:46927) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyI7t-0003Va-BT for bug-gnu-emacs@gnu.org; Tue, 29 Jun 2021 14:06:34 -0400 Original-Received: by mail-wm1-x32e.google.com with SMTP id v20-20020a05600c2154b02901dcefb16af0so3070887wml.5 for ; Tue, 29 Jun 2021 11:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=c3uqumRae1cdsg7zTvgriwFDPBkPJgNawsrRB9itu+Q=; b=Y/UwmIwZw//uMEqQPrY7p04KzEhU0kYwa6H879zPtAvOr+5iiWTIsborDh+62DPFwA XAyCwaULaIxM7bmRCVmo5cVunMDQ24MZGvJp+yZvDWTL4up+jP+YnEh2TPeGa+F1y4b7 xhYyz7vwDNCzUGEfwKQGgAkLZrGDyo+HT1M8G5Pah+8uPR6SKbUlcRaUWQhEUxB9HC8Q wYmbCizSKdngrBF8sgd5chF7aTb+WXUNX6qhZFrL+9ovde9ZZBa2DMVDLibhy/nEyXoH za33vVE1Dbo2sAsIqos1qckPd1c2I8+LHrxr61dw9tq+ZQYosYjqrIFlt4U+xBLVucvf qPYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=c3uqumRae1cdsg7zTvgriwFDPBkPJgNawsrRB9itu+Q=; b=ftQXLw6wFLtCdzPfTVUoMvkAwgp3hcaTPjUX9zuMyOtBJnk7h6vTTO/uvLicmpOvcI mkANb7iAX0Jq9LvIcUBbx5x2YIV4D7X2fh3TD9lSBRtf9stjZPd7lmhedOrWJrvH/uDU HOWPzmJVFHiGJr5AaO5b4WRiVZ0MphLdoUsfmSIWKWMHHsp9LjZThByS3dDmyVENbSKR x4zpf4/zlMAoUQmuRUF8c+UBpuxk0JYvOh3e+jlolMKsJ9qUO4F94QIPxWfTdrAC3K0e wJMkrNqCqHA5bZii9H8tMfpGJUwv4dISXN+sq1IocXsjfxUjNoFRZ1WxET8An7hDoURD W0pg== X-Gm-Message-State: AOAM5318lqX4QEDr/rHT18C4zXIQMpEdLkgKaSg2P7aVmiLfnjc0aoSb olpSENPHdeUeEoVMfLpWc1A= X-Google-Smtp-Source: ABdhPJyRbiYlS9pNqjIPF2RBeGHRIso3JpGcwH1vH7EYNrPeSHhsw7buRwAY7GHZixVWZduqXNkSEQ== X-Received: by 2002:a7b:c7d1:: with SMTP id z17mr72433wmk.135.1624989983043; Tue, 29 Jun 2021 11:06:23 -0700 (PDT) Original-Received: from krug (186.18.114.89.rev.vodafone.pt. [89.114.18.186]) by smtp.gmail.com with ESMTPSA id p9sm6987142wrx.59.2021.06.29.11.06.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Jun 2021 11:06:22 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=joaotavora@gmail.com; helo=mail-wm1-x32e.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: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209111 Archived-At: Hi, It's been the status quo for a long time now that Lisp Mode is the Emacs major mode for editing Common Lisp programs. The SLIME and SLY packages are popular amongst CL programmers and have relied on this fact for many years (SLIME in I think has been the tool of choice for Emacs+CL for more than 15 years). In addition, there are many references to "Common Lisp" in lisp-mode.el. In addition, non-CL-lisps have also historically used their own major modes derived from prog-mode. Examples are Emacs lisp mode, Scheme mode and Clojure mode. In addition, there is in Emacs 27.1 a new lisp-data-mode. That is useful for defining using define-derived-mode to make Lisp-like major modes derived from commonly found Lisp-style functionality such as parenthesis-matching syntax tables and such. However, the docstring of lisp-mode, the function, still states that it is used for "Lisps other than GNU Emacs Lisp". Likely this docstring was written when Common Lisp was still young and intended to group its closely-related Lisp brethren (MacLisp, Franz Lisp, etc) in mind. Those variants are now gone, we should update lisp-mode.el's docstring to reflect the state of things, since a fraction of people seem to be misusing lisp-mode to derive new major modes for new niche Lisps, where they should be using lisp-data-mode (perhaps they are not aware of it). See also: https://gitlab.com/technomancy/fennel-mode/-/issues/11 https://github.com/joaotavora/sly/issues/339 https://emacs.stackexchange.com/questions/18646/why-isnt-emacs-lisp-mode-= derived-from-lisp-mode/18652#18652 Jo=C3=A3o To fix this, I suggest this documentation patch. diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi index 8de93867ba..7d655449c5 100644 --- a/doc/emacs/building.texi +++ b/doc/emacs/building.texi @@ -1764,10 +1764,10 @@ External Lisp @cindex mode, Lisp @cindex Common Lisp =20 - Lisp mode is the major mode for editing programs written in -general-purpose Lisp dialects, such as Common Lisp. Its mode command -is @kbd{M-x lisp-mode}. Emacs uses Lisp mode automatically for files -whose names end in @file{.l}, @file{.lsp}, or @file{.lisp}. + Lisp mode is the major mode for editing programs written in Common +Lisp or its ancestor dialects. Its mode command is @kbd{M-x +lisp-mode}. Emacs uses Lisp mode automatically for files whose names +end in @file{.l}, @file{.lsp}, or @file{.lisp}. =20 @findex run-lisp @vindex inferior-lisp-program diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 59325d647d..99bf1a98c2 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -765,7 +765,7 @@ lisp-mode-menu :help "Run an inferior Lisp process, input and output via buffer `*in= ferior-lisp*'"])) =20 (define-derived-mode lisp-mode lisp-data-mode "Lisp" - "Major mode for editing Lisp code for Lisps other than GNU Emacs Lisp. + "Major mode for editing Common Lisp code. Commands: Delete converts tabs to spaces as it moves back. Blank lines separate paragraphs. Semicolons start comments.