From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs Date: Wed, 23 Sep 2020 14:53:53 +0200 Message-ID: <87y2l0d57i.fsf@gnus.org> References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> <87r1qternr.fsf@gnus.org> <83imc5x081.fsf@gnu.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="39660"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org, dima@secretsauce.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 23 14:55:14 2020 Return-path: Envelope-to: geb-bug-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 1kL4Ik-000ABm-0q for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Sep 2020 14:55:14 +0200 Original-Received: from localhost ([::1]:60308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kL4Ij-00024K-0I for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Sep 2020 08:55:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kL4IY-00021n-QE for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 08:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51457) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kL4IY-0008ST-81 for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 08:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kL4IY-0001xu-5v for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 08:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Sep 2020 12:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21777 X-GNU-PR-Package: emacs Original-Received: via spool by 21777-submit@debbugs.gnu.org id=B21777.16008656517440 (code B ref 21777); Wed, 23 Sep 2020 12:55:02 +0000 Original-Received: (at 21777) by debbugs.gnu.org; 23 Sep 2020 12:54:11 +0000 Original-Received: from localhost ([127.0.0.1]:34770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kL4Hi-0001vw-Uh for submit@debbugs.gnu.org; Wed, 23 Sep 2020 08:54:11 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:44034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kL4Hf-0001vL-PH for 21777@debbugs.gnu.org; Wed, 23 Sep 2020 08:54:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cdCQqE8AGJgdRsbcztw3aCsye8fD4gX5WRqX5noFzIU=; b=Bf7Llch5F3/cCJgk3wuJ7ThfrZ ST3ciApwi6IwC0EtOp2JcAVqEoiuQU3BTF0mHtDbOMmteSUEb5TjoMoI2KdJqfvyMA3jY9Q6Cgi6E 7SQcEp9uIk7H+sydmgz+CQKoaypuUb9t1SBVFj1aRw5SxbZhW20w8hMsd+k0FN6KsnPo=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kL4HS-0007bQ-U8; Wed, 23 Sep 2020 14:54:00 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUpKCYfHRxIRjxR UEhAPjpqaWKEgnn///8ghV9sAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+QJFwwgNtL7tjwAAAGISURB VDjLnZO/csMgDMaFCZlxfN4pNDuHTpm7dM+Z4wl66fs/QiXiJPhPlmoAW79In/hwAJpQvQT0FsDC BthVsgan9wFYxWkFe2Qv3TkAHZdEBsEUe4dfIbYNOgCTUrT8C90WUClXE1JaC9jJewaIa9UhJR8N pQraViYFboXbCgY4GY/oYOmS8azxzcuHvEUI2jbgiBhU1MjgKWNugThFSV5cO0Apctwhir/s/lNG 0VWex+vGvlJTl5dLh/vkNEkryv5h6UN78ucSeV0fkKdNIRf2Ki3yKjDw4YdBWMgr9D5MHQrIrSGQ vKeb0WkD+Dbo93zikpBfNw1wqhU0YGD3WzByRXA4iFRpO41c4RWNxPsCGAGAI66AOnoBWVotwUWA yiOtgSQ+gYZd4MBY2akF5Q4gr0G+gyg7tpbkOpW+duxytM1NVeAAxUzXHlBOLCUgaxu6FD40P3QM VM9/XWUfUphnoDQZIsL5JlWvJ9lZIhByPj4/JEUzmFs1Flc1eBPdO3CAf0bV/gPFW0REvhNm3gAA ACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0wOS0yM1QxMjozMjo1NCswMDowMPPAF2wAAAAldEVYdGRh dGU6bW9kaWZ5ADIwMjAtMDktMjNUMTI6MzI6NTQrMDA6MDCCna/QAAAAAElFTkSuQmCC X-Now-Playing: Herbert's _Bodily Functions_: "Suddenly" In-Reply-To: <83imc5x081.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 22 Sep 2020 19:09:02 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:188771 Archived-At: Eli Zaretskii writes: > That's a different problem, then. I think it is related to > window-adjust-process-window-size-function and > set-process-window-size, introduced in Emacs 25. I guess gud-gdb > should disable that feature. But if the user has the pager enabled, then Emacs should notify gdb about the size change... Andreas Schwab writes: >> I'm not sure I agree: how is an unlimited setting different from any >> other setting? > > It is special, as it never matches any real terminal size. Indeed. If gdb has disabled the pager, then Emacs telling gdb about the changed size shouldn't enable the pager. But I'm still not sure this is actually what is going on, because I'm just not finding exactly where this happens. For instance, `window--adjust-process-windows' is never called in buffers started with `M-x gud-gdb'... and adjusting the frame size in a buffer started with `M-x gdb' does not make gdb switch the pager on. And debug-on-entry on set-process-window-size isn't triggered, either. Grepping for SIGWINCH doesn't immediately give me any clues, either. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no