From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: Gnus using lexical-binding Date: Sat, 30 Jan 2021 15:07:16 +0000 Message-ID: <87sg6iea57.fsf@tcd.ie> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35275"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 30 16:11:32 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 1l5ruN-00095t-Gm for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Jan 2021 16:11:31 +0100 Original-Received: from localhost ([::1]:44226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5ruM-0001T5-K5 for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Jan 2021 10:11:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5rqW-0008Gb-9k for emacs-devel@gnu.org; Sat, 30 Jan 2021 10:07:32 -0500 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:32798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5rqM-0003X7-LD for emacs-devel@gnu.org; Sat, 30 Jan 2021 10:07:31 -0500 Original-Received: by mail-wm1-x32c.google.com with SMTP id s24so8716714wmj.0 for ; Sat, 30 Jan 2021 07:07:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=zCIH6Uj6FJpgqnVDSetcFQheOFeVpArCj7CylctLkWY=; b=y/HpdywMcK/WueODIgdVw5DZseliC72cbPvfo+FBGb1sUArLA5rQBf7XOHHuP8ICI5 7nFYBASj7dXeVxaT/7uZ0Cw1aonGhkSjNYWJMQcPvTj0ALhOWRd9OcVJIrPla5/M+exs TXpAvbH0o6BMaJKxPAEyO+Ex+cFHklg0QVSqynirGDRsXWOcJ1jY+Nmk1Z8eRvnM3fAR hAXQwr5exybJRRatbRcx8d+jZxMHYYq0IGwtODDb5tGcTZKt35DOzsYR+ajKlkZs2FDG 68uZmU7yTmTEwnF1EdQwmzxkolUZAbi2N/kAETvNBDoGxGx0bnUgvmEWIuWwEfbBsfXC Vxfg== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=zCIH6Uj6FJpgqnVDSetcFQheOFeVpArCj7CylctLkWY=; b=a3lneNG5PCpiOTeVHjOA9ytNpiowFGPTO79CeHfq1Qp/DLhGhiyBmibrZe6InZkBMY +gtLwnfl6z22+9w7rUrkC6KVNL/gRQW/MYoxRtWkkInQA3zuKOYBlvsTQDWLFjKyNgGd CYqmD6DN4ngWlaf4YLfplxcaZYujMUUc0odMP71loFMbchtHFGlEGTDrgM9nTzKLOeOu IIcEnkycnHLSlPJUcrj2XoshQaEpsJz5fflnV0nSMPaVNT8R28z4HeJ7YwVTbjRpWHnB rezncwGhuxlXRiS+54BFkn0c3Pddua18E7z7vGKpxaR2vK2on+5wzmKXeQS1WGMGEqFE 2qiQ== X-Gm-Message-State: AOAM530QWSyxcQMyWhoZvG24cVyTbuTKIEZI+0pj2aT3stCBu5S5Xasx p4LHEdNNQEx/Z0XC3x04Fyslm7KBpQplcQ== X-Google-Smtp-Source: ABdhPJyZoAJdaTkOH5Gew+ialUiqABH8LcQxCzuyLJT9hBT0+1UBLNVDfa4cV0KVWCkiTsv1a0hwLQ== X-Received: by 2002:a1c:7f94:: with SMTP id a142mr7943977wmd.145.1612019239002; Sat, 30 Jan 2021 07:07:19 -0800 (PST) Original-Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id c11sm17644292wrs.28.2021.01.30.07.07.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jan 2021 07:07:17 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Fri, 29 Jan 2021 18:11:35 -0500") Received-SPF: none client-ip=2a00:1450:4864:20::32c; envelope-from=contovob@tcd.ie; helo=mail-wm1-x32c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham 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:263618 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Stefan Monnier writes: > I'm working on converting all the lisp/gnus files to use > lexical-binding. I have a first version of the code ready and pushed to > `scratch/lexical-gnus`. It works for me, but please test it because my > use of Gnus only exercises a small fraction of its functionality > and packages. Thanks. > And please, after testing it, tell me how it went, regardless if you > encountered problems or not. Bootstrapping emits the following warnings: In mail-add-attachment: mail/sendmail.el:1809:25: Warning: =E2=80=98mm-default-file-encoding=E2= =80=99 is an obsolete function (as of future); use =E2=80=98mm-default-file-type=E2=80=99 i= nstead. In mh-minibuffer-read-type: mh-e/mh-mime.el:1728:24: Warning: =E2=80=98mm-default-file-encoding=E2=80= =99 is an obsolete function (as of future); use =E2=80=98mm-default-file-type=E2=80=99 i= nstead. and starting Gnus only gets me as far as the splash screen; see the attached backtrace, which I'm guessing is related to the following setting: (setq-default gnus-group-line-format (concat "%M" ; Marked articles "%S" ; Subscription "%p" ; Marked for processing "%m" ; New mail "%B" ; Open summary buffer "%P" ; Topic indentation "%5y? %3T!" ; Unread and ticked articles " : " ; Colon "%(%-40,40c%)" ; Collapsed group name "%9u&dgroup;" ; Last read "\n")) (The last %-sequence is just a custom timestamp format.) Let me know if you want me to test anything else out. --=20 Basil --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=backtrace.el Content-Transfer-Encoding: quoted-printable Debugger entered--Lisp error: (void-variable gnus-tmp-marked) (assq 'tick gnus-tmp-marked) (cdr (assq 'tick gnus-tmp-marked)) (gnus-range-length (cdr (assq 'tick gnus-tmp-marked))) (format "%c%c%c%c%c%s%5s? %3d! : " gnus-tmp-marked-mark gnus-tmp-subscrib= ed gnus-tmp-process-marked (gnus-group-new-mail gnus-tmp-group) gnus-tmp-su= mmary-live gnus-group-indentation gnus-tmp-number-of-unread (gnus-range-len= gth (cdr (assq 'tick gnus-tmp-marked)))) (insert (format "%c%c%c%c%c%s%5s? %3d! : " gnus-tmp-marked-mark gnus-tmp-= subscribed gnus-tmp-process-marked (gnus-group-new-mail gnus-tmp-group) gnu= s-tmp-summary-live gnus-group-indentation gnus-tmp-number-of-unread (gnus-r= ange-length (cdr (assq 'tick gnus-tmp-marked))))) (progn (insert (format "%c%c%c%c%c%s%5s? %3d! : " gnus-tmp-marked-mark gn= us-tmp-subscribed gnus-tmp-process-marked (gnus-group-new-mail gnus-tmp-gro= up) gnus-tmp-summary-live gnus-group-indentation gnus-tmp-number-of-unread = (gnus-range-length (cdr (assq 'tick gnus-tmp-marked))))) (put-text-property= (point) (progn (insert (format "%-40s" (let* ((val ...) (need ...)) (if (>= need 0) (concat nil val ...) val)))) (point)) 'mouse-face gnus-mouse-face)= (insert (format "%9s\n" (gnus-user-format-function-dgroup gnus-tmp-header)= ))) eval((progn (insert (format "%c%c%c%c%c%s%5s? %3d! : " gnus-tmp-marked-ma= rk gnus-tmp-subscribed gnus-tmp-process-marked (gnus-group-new-mail gnus-tm= p-group) gnus-tmp-summary-live gnus-group-indentation gnus-tmp-number-of-un= read (gnus-range-length (cdr (assq 'tick gnus-tmp-marked))))) (put-text-pro= perty (point) (progn (insert (format "%-40s" (let* (... ...) (if ... ... va= l)))) (point)) 'mouse-face gnus-mouse-face) (insert (format "%9s\n" (gnus-u= ser-format-function-dgroup gnus-tmp-header)))) t) gnus-group-insert-group-line("dummy.group" 0 nil 0 nil) gnus-update-group-mark-positions() gnus-group-mode() gnus-group-setup-buffer() gnus-group-list-groups(nil) #f(compiled-function () #)() gnus-1(nil nil nil) gnus() blc-gnus() funcall-interactively(blc-gnus) call-interactively(blc-gnus nil nil) command-execute(blc-gnus) --=-=-=--