From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Karthik Chikmagalur Newsgroups: gmane.emacs.devel Subject: Re: Understanding filter function calls Date: Fri, 28 Jul 2023 14:51:00 -0700 Message-ID: <87a5vf1z97.fsf@gmail.com> References: <87y1j5vp3y.fsf@gmail.com> <96ad3a89-a0bd-6f8a-6251-d3f2f201e4f7@vodafonemail.de> <87pm4d12rc.fsf@gmail.com> <87a5vgfp3z.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36316"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jens Schmidt , emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 29 00:40:47 2023 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 1qPW8c-0009GU-Jb for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Jul 2023 00:40:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPVMX-0003Pl-C6; Fri, 28 Jul 2023 17:51:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPVMW-0003PZ-Kf for emacs-devel@gnu.org; Fri, 28 Jul 2023 17:51:04 -0400 Original-Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qPVMV-0006fH-2o for emacs-devel@gnu.org; Fri, 28 Jul 2023 17:51:04 -0400 Original-Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1bbdc05a93bso16032875ad.0 for ; Fri, 28 Jul 2023 14:51:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690581061; x=1691185861; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=tms2KVrj1PUv/zkVZdWRT5P4/6wZSwbUvJv4QGWjhSM=; b=gHitIJHVgojKF6MxY8se8OThpSVHT2KKTCF08wfIQpgftL8ctctdxHW3GJtXmoBExh q2l+Qausg2xc5VZkH6o5uGRNd5Ot46SMyGaiYYLCq684QeapHYreTWbCXbEYHjNmtd7J 4ZMSnFtGDfeVltfLN7SDyDVu7+jV3u4Sj+3/dBqrwDNyFQ1kdN5OczdGx7cibcbu9daA pfIcko0RMY0ZMH+lykmiA1WiWoTJ0Vwt1npCL/GzqbVFNSHU25+C+oOe0e4TwHaOdtva 0tuIwhgrZr+YTHXHIRKonsMbAgiSGoMsSvxZ+lILLMqg0BNtpYMwZ03KsDexb+s24ZME cTMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690581061; x=1691185861; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tms2KVrj1PUv/zkVZdWRT5P4/6wZSwbUvJv4QGWjhSM=; b=VquwjS5s6Vyr6kmoW7vjBOoLiy1YYfu9jCvJR5qV096Mcnv6BWFBsgSgVOYnefTUDF 5V06uaeAlhBnw9Mu7d7/LFeNmU7NA13CC2EZlJbcpwMetQN+u2tF9cxGjC77d0sNrcRJ XcZJAbKEZXzAqYkUMk9aTs8YBpr2+/xAKbi0lRYAP3y/9kzz4N5GiRSbXMtyoTlQ8B9T MFelgLSGQkEaYfmhoqivLBnOe6M16ej/pB21uMgeF1YVGPKRMpZj/0oIT6tdPS+0Jq2o zBRzgGEirLPA8eiYrccfo9Wl+NARpA4u2/+E+L5qwu33i64ZJDr1ur066vaI252lMUum sTig== X-Gm-Message-State: ABy/qLaqV3MGE0nHssgb59c1735XLJQFobyPR3aRmz/kpppkvSCloYvd Y6HnzoTLL7H+Y7hzQUmSOXXzs30sqdY= X-Google-Smtp-Source: APBJJlH12HyOs1wgeAMktuoDeEhtQcJ4R/pqRJPKAOeygYhcEBWRJGAmnyIdCdUTBMpfrjXXacWrSg== X-Received: by 2002:a17:902:778a:b0:1ae:50cc:455 with SMTP id o10-20020a170902778a00b001ae50cc0455mr2388591pll.39.1690581061561; Fri, 28 Jul 2023 14:51:01 -0700 (PDT) Original-Received: from localhost ([169.231.45.234]) by smtp.gmail.com with ESMTPSA id jj19-20020a170903049300b001bb8067146esm4053891plb.69.2023.07.28.14.51.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 14:51:01 -0700 (PDT) In-Reply-To: <87a5vgfp3z.fsf@localhost> Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pl1-x62a.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308195 Archived-At: > Do you mean that > > -v, --verbosity=level > Controls the type of messages printed during a dvisvgm run: > 0 no message output at all > 1 error messages only > 2 warning messages only > 4 informational messages only > > Note By adding these values you can combine the > categories. The default level is 7, i.e. all messages > are printed. > > is not sufficient? Yes. The text in the example stdout(s) I included are all generated by 4, "informational messages only". >> Any ideas on how to avoid this throttling would be appreciated. > > One possibility can be redirecting the strerr to file, waiting for the > dvisvgm process to finish, and then examining the file. This would be the same as shifting the Emacs-side processing to the dvisvgm process sentinel instead of the process filter. We want to populate the in-buffer previews as they are generated because this is a much more responsive experience. Fragments visible in the window are previewed first, so the preview run appears close to instantaneous even if there are thousands of LaTeX fragments in the queue. Karthik