From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.devel Subject: Re: master 192f935 1/3: Add 'define-keymap' and 'defvar-keymap' Date: Sun, 10 Oct 2021 13:10:15 +0530 Message-ID: References: <20211004081724.6281.11798@vcs0.savannah.gnu.org> <20211004081726.AB24621048@vcs0.savannah.gnu.org> <87v92dp3ry.fsf@gnus.org> <874k9xgm7u.fsf@alphapapa.net> <874k9xnlmx.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12273"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Cancel-Lock: sha1:fpY6KshPdPnwLwPnEGBYKj3ncak= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 10 09:41:42 2021 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 1mZTSo-00030s-FD for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Oct 2021 09:41:42 +0200 Original-Received: from localhost ([::1]:42284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZTSn-0006Hf-1Y for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Oct 2021 03:41:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZTRe-0005UW-Gd for emacs-devel@gnu.org; Sun, 10 Oct 2021 03:40:32 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:44330) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZTRZ-0002mt-Dn for emacs-devel@gnu.org; Sun, 10 Oct 2021 03:40:29 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mZTRV-0001T2-Jn for emacs-devel@gnu.org; Sun, 10 Oct 2021 09:40:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:276639 Archived-At: * Lars Ingebrigtsen <874k9xnlmx.fsf@gnus.org> : Wrote on Mon, 04 Oct 2021 12:13:10 +0200: > Adam Porter writes: > >> That includes quoted lists, like: >> >> '(:foo 1 >> :zot 2) >> >> right? If so, yes, please. BTW To get the similar behaviour with cl-indent I had the following kludge for "(:def*" forms. Maybe there is a better way to do this? diff --git a/lisp/emacs-lisp/cl-indent.el b/lisp/emacs-lisp/cl-indent.el index 26507578c32..98ccc68ddc4 100644 --- a/lisp/emacs-lisp/cl-indent.el +++ b/lisp/emacs-lisp/cl-indent.el @@ -351,6 +351,7 @@ common-lisp-indent-function-1 method (lisp-indent-find-method tem)) ;; The pleblisp package feature (when (and (null tem) + (not (string-match "^:" function)) ;XXX 090210 (string-match ":[^:]+" function)) (setq function (substring function (1+ (match-beginning 0))) tem (intern-soft function) @@ -390,6 +391,8 @@ common-lisp-indent-function-1 (setq method lisp-indent-defun-method))) (cond ((and (or (eq (char-after (1- containing-sexp)) ?\') + (and (eq (char-after (1+ containing-sexp)) ?\:) ;XXX 090509 + (= depth 0)) (and (not lisp-backquote-indentation) (eq (char-after (1- containing-sexp)) ?\`))) (not (eq (char-after (- containing-sexp 2)) ?\#))) .