From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: native-comp *Warnings* buffer Date: Thu, 13 May 2021 19:30:17 -0700 Message-ID: References: <87k0o2z9pr.fsf@ericabrahamsen.net> <87fsyqz8pi.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23942"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eric Abrahamsen , Andrea Corallo To: Andrea Corallo via "Emacs development discussions." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 14 04:31:28 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 1lhNbs-00067f-Dy for ged-emacs-devel@m.gmane-mx.org; Fri, 14 May 2021 04:31:28 +0200 Original-Received: from localhost ([::1]:46886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhNbq-0003Ro-UO for ged-emacs-devel@m.gmane-mx.org; Thu, 13 May 2021 22:31:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhNas-0002fO-1B for emacs-devel@gnu.org; Thu, 13 May 2021 22:30:26 -0400 Original-Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:33302) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhNaq-0003yG-7x for emacs-devel@gnu.org; Thu, 13 May 2021 22:30:25 -0400 Original-Received: by mail-pg1-x52f.google.com with SMTP id i5so18333970pgm.0 for ; Thu, 13 May 2021 19:30:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=n9+w6POtSuG02gRHR1YeT8Tykz1P+WCrNscvbJd6FA8=; b=ny0NjtksIIVpVR6ol47Lvs30evAVbjOaQWohgZAUSbJjQHf170y+osTNBEtO6Gkz9O ChgmN7AXYhX9OjHHfTYnWgSyLQ4w9eV3moWrHtEaiTUQiYfdcjyMyu5YXzV2YDXsXf6r gF/nGUfxPEra/34bh8tAR7k7bslXcWKmqjsLqJPxe5m6NQbWLN/l1PPJBXpi5hedWirD LP3neYzFiheed4/JnCOk0SHK2EfaPHEGdKwy3JH67iK0o87l8I5dFbGrpxNE5F2i6JNv kjzzvLY5qnp504HpnLH/fipa2K08j3eJzgT+onssuPOB0Sn8F/bSbKG/cQtfJRCyT+bO l0aw== 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:content-transfer-encoding; bh=n9+w6POtSuG02gRHR1YeT8Tykz1P+WCrNscvbJd6FA8=; b=pWG7YxhKIjdqt9ROjJRfKNd8ERtMDdRkWUbEHT8SQ/8F5qlRgCy6zw7YeWIwhSyabY +JaHaWM3AKK7YTcRFvYbGCi2H+gm6WAUUn40gQ7mbKx6T+L7pV/aULhtjPQhHYNEaPKb 2ZTk0OiO/T0ZNqpRb2KvFiwSoivm8crOcBTjc0oznEc52xAY2aETulwNVoq9ERIGh9gH hv3xTuM2jcbZX8Nzb4/VeyhuMN6gUDS4WizbXnzcRQgUi6D2NUEdWuSllYWkg0Oc8W1k 9dc5URWyaWUJEOBtU9zS+YTnuAoarGYSKpt68uc3R0UH9kv57wfdjk2iumWNGhEBK0DO bsyw== X-Gm-Message-State: AOAM533OjNpT+m6dkrPYxCAaIvOhHK0mQO3tb9Rl8qjSf76C1r1sxhl9 45bOyb1jA3N0jtdFs+dFpC2VhA== X-Google-Smtp-Source: ABdhPJxuuGXx8BoOywbEB228qkqXZEDEN6G3+lzUayVtaywVQAzf8VCSlX2+1Kg6Sb1YAhEpRIokpA== X-Received: by 2002:a63:f755:: with SMTP id f21mr44064324pgk.129.1620959420296; Thu, 13 May 2021 19:30:20 -0700 (PDT) Original-Received: from raman-glaptop.localdomain (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id j127sm2973697pfg.124.2021.05.13.19.30.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 19:30:19 -0700 (PDT) Original-Received: by raman-glaptop.localdomain (Postfix, from userid 13930) id 8819FC21A1E; Thu, 13 May 2021 19:30:17 -0700 (PDT) In-Reply-To: (Andrea Corallo via's message of "Thu, 13 May 2021 21:28:25 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=raman@google.com; helo=mail-pg1-x52f.google.com X-Spam_score_int: -175 X-Spam_score: -17.6 X-Spam_bar: ----------------- X-Spam_report: (-17.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 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:269263 Archived-At: Andrea Corallo via "Emacs development discussions." writes: Lacking a better solution, I implemented myself an after advice on display-warning that buries the buffer and produces a soft sound to let me know that a warning got added; then I just go visit that buffer when I have some cycles to see what raised the warning, and whether it is in my code, how to fix it etc. One issue with the warnings is that the reported line that triggered the warning tends to be one or two indirections removed (eg via require etc) which makes finding the actual cause fairly difficult for now > Eric= Abrahamsen writes: > >> Eric Abrahamsen writes: >> >>> I understand the utility of having these warnings, but does the buffer >>> need to be popped up every thirty seconds? Couldn't it just be displayed >>> once, when it's created, and then left alone? Compilation has been going >>> on for several minutes since rebuilding Emacs, and it's actually hard to >>> use with *Warnings* occupying my other window every few seconds! >> >> I should say that I know about >> `native-comp-async-report-warnings-errors', and I'd actually like to see >> these warnings (as many of them are about my own code :(), I'd just like >> to have them in the background. > > Hi Eric, > > unfortunately new warnings are showed when they are found while > compiling. I agree this is annoying but at the same time I'm not sure > this behavior wrong. > > Anyway in comp.el we just call `display-warning'. If there's a better > way to handle this any suggestion or patch is very welcome :) > > Thanks > > Andrea > --=20 Thanks, --Raman =817=A94 Id: kg:/m/0285kf1 =950=DC8