From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Screenshots, frame shots straight from Emacs Date: Sun, 01 Aug 2021 10:19:06 -0400 Message-ID: References: <87sg1dgbbk.fsf@omarpolo.com> <87pmwhg843.fsf@omarpolo.com> <8735t96mxj.fsf@omarpolo.com> <87pmw961ox.fsf@zoho.eu> <874kcpxln9.fsf@logand.com> <87pmvcdgqg.fsf@t14.reltub.ca> <87a6mgwz17.fsf@logand.com> <87tuka2h7x.fsf@logand.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35456"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Tomas Hlavaty Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 01 16:20:17 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 1mACK9-000934-8P for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 01 Aug 2021 16:20:17 +0200 Original-Received: from localhost ([::1]:37328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mACK7-0005B0-4E for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 01 Aug 2021 10:20:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mACJD-0005Ai-Fl for help-gnu-emacs@gnu.org; Sun, 01 Aug 2021 10:19:20 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:64877) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mACJA-0008Rk-LM for help-gnu-emacs@gnu.org; Sun, 01 Aug 2021 10:19:18 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id F0B0C80880; Sun, 1 Aug 2021 10:19:12 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 84C768089C; Sun, 1 Aug 2021 10:19:07 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1627827547; bh=vciM0skUvbqnr6J3b0J6aV9QWqyG4+Kb9ho6h40bEyM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=IM8YMwcTXcqUgFOaFNau5v4jJxdPQZ+Hz2SE6niTFAwL6sCqV4o0YjO34JSUBcBA2 n2Fom7q47+TvpPxcxHexTUxQDvOo0goGBUB1lsO4RXzn2tFwFOcKzSS+uPmR2SzaR3 ZAjgO+yXm24R1ofrTqasIG+G5TqLth5USVkxpjIXWyDF8r6lgk9MqKI5klbrb2iiaK hHHulJ9CCi0rpBgCopmHAr0EKnI7pSYe0uDIH8G8SYa95FGxC6TNd4I9LemvHa66cO E4IFoEBAv2jClp/gpyR8tObb1SzvtzbMgHDdk442bMJqO5Xoui7JMk9FsCm/PIHhvo IzUEFatbESBZg== Original-Received: from alfajor (unknown [216.154.29.138]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 42BAD1205EA; Sun, 1 Aug 2021 10:19:07 -0400 (EDT) In-Reply-To: <87tuka2h7x.fsf@logand.com> (Tomas Hlavaty's message of "Sun, 01 Aug 2021 01:31:30 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:132277 Archived-At: Tomas Hlavaty [2021-08-01 01:31:30] wrote: > On Tue 20 Jul 2021 at 17:48, Stefan Monnier via Users list for the GNU Emacs > text editor wrote: >> But it does require code changes (mostly adding `cl-` prefixes). > > is there a way to get a list of those cases in a compilation unit (el > file), e.g. byte-compilation warnings which i could fix after switching > from require 'cl to require 'cl-lib? The byte-compiler should indeed warn you about functions "not known to be defined", listing things like `case`, `incf`, `first`, `loop`, ... Tho sometimes instead you'll get a compilation error because the code uses a macro whose arguments don't have a valid shape when interpreted as expressions (as in `(destructuring-bind (a . b) foo bar)`). Also sometimes you'll get warnings about functions "not known to be defined" which are indeed not functions (e.g. with `(case foo (:plop bar))` which will complain that `:plop` is not a known function) or you'll get warnings about unknown variables like `return` or `when` which are really keywords of the `loop` macro. Stefan