From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#39181: 27.0.50; [PATCH] Allow users to store & restore gdb-mi layout Date: Fri, 20 Mar 2020 16:03:45 -0400 Message-ID: <7234DEAE-00EA-4576-B580-C50218E0300F@gmail.com> References: <91E91E25-9956-4D10-BD99-DC028156731C@gmail.com> <87d09jp7he.fsf@gmail.com> <916b2fef-b1bb-1c0c-1b43-4609cd768a79@gmx.at> <878sk6ot4z.fsf@gmail.com> <0EF37881-F1DA-48AD-8F4E-05A37041BD98@gmail.com> <301E3A87-7ED6-4E0A-A6DA-ABF84EB85B2F@gmail.com> <87lfo4netg.fsf@gmail.com> <87h7ysnela.fsf@gmail.com> <023deed5-98f5-c0d5-c144-27156a9a7e0b@gmx.at> <4186025A-58B4-45DE-B64A-E00AD2F85637@gmail.com> <07cbd454-4885-9875-edaf-168f26ae828a@gmx.at> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_CB34985C-BC56-4E5C-BCEE-1F0D88AAFE3E" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="77085"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= , 39181@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 20 21:04:13 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 1jFNsK-000JyD-S6 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Mar 2020 21:04:12 +0100 Original-Received: from localhost ([::1]:58698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFNsJ-0001vR-RV for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Mar 2020 16:04:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34337) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFNsB-0001vH-0u for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2020 16:04:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFNs9-0000ti-UY for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2020 16:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39724) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFNs9-0000tc-Q7 for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2020 16:04:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jFNs9-0000NL-MB for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2020 16:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Mar 2020 20:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39181 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 39181-submit@debbugs.gnu.org id=B39181.15847346361432 (code B ref 39181); Fri, 20 Mar 2020 20:04:01 +0000 Original-Received: (at 39181) by debbugs.gnu.org; 20 Mar 2020 20:03:56 +0000 Original-Received: from localhost ([127.0.0.1]:45697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFNs4-0000N2-8N for submit@debbugs.gnu.org; Fri, 20 Mar 2020 16:03:56 -0400 Original-Received: from mail-qk1-f175.google.com ([209.85.222.175]:40631) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFNs1-0000Mp-O7 for 39181@debbugs.gnu.org; Fri, 20 Mar 2020 16:03:54 -0400 Original-Received: by mail-qk1-f175.google.com with SMTP id l25so3432528qki.7 for <39181@debbugs.gnu.org>; Fri, 20 Mar 2020 13:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=obC3Iu0sqm461L3YfAxgQSHkVuh4yNFnkWCyGq/51eM=; b=k55qxUzOlPEEhx857rRIhyllAHKwaD1uB9Po2ZUCIGNocH5o4apAEuhghJV2Dxc8lV MPrY9prfbw/UaX2jiWoTjbf63Gk+0BcMwC94VCAKENyuQZPXjV5KpHtaKUZIgik/kdry NumJCL/MzMoljKAZugjzlf0BwPACN8tdb+uEdAFrp6jdqELPlYnz4o8h8wpv815s4Ih7 DA5hlWCW95Mi4LJL4rZgMrSkISY3TYlNWGcE4eC3YVg7CKs+EefVsizLXRXFQn70/2l2 PpVpjTfH0JYSMWXXijoFe7vrock1Tk9OlrhbgDAwlxhQ6JzObl3zoPhTH08o+gP5pVoD LAWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=obC3Iu0sqm461L3YfAxgQSHkVuh4yNFnkWCyGq/51eM=; b=YjiIVy45+43fKWFI+XtErKcMvcEFaQbPlrsyZNNGo67+N96lVfF9oXcYBuim57luTK Q/9SxWOEFPUxeJNPaiGuCOqLg/rJydjKmpojVm1vW+R7oO9eoNYN9skQqxWLVQ5TfAFo 5lBn/CYVqma3Vi7Y+X+fmcOEC34nTm43ji5sCsf67bTk+haLAS6G0GMMiRJszQXrd/nr 9zVFob9s/6UgSL1CnYKuAkKprnWnRidYLe5rWl8GEzCcI+f7tp9CgWmbRlw+6l4a2pZc lHDE6YzZ2U/noIBxvu+b0W9NiBvVg3KGcAQTinFN6eGsTUs/zz+WRa73Vy81AeoP/yCm c8Lw== X-Gm-Message-State: ANhLgQ12YGHqPw6O0dxWdsobzEf5HJwNLwSTyiLhIeIqPCRhM0kDAQkN 1VSEbDavKVzMTVKyIpoeevg= X-Google-Smtp-Source: ADFU+vty4fukZlTRajbg1//Xo/Ivdpz8ASLJME6WtfWWNAhK1+zfVNI9VvnICujPmmiLphnsK1+L5g== X-Received: by 2002:a37:8507:: with SMTP id h7mr5040962qkd.280.1584734628132; Fri, 20 Mar 2020 13:03:48 -0700 (PDT) Original-Received: from [192.168.1.5] (c-174-60-229-153.hsd1.pa.comcast.net. [174.60.229.153]) by smtp.gmail.com with ESMTPSA id s11sm4643438qke.97.2020.03.20.13.03.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Mar 2020 13:03:47 -0700 (PDT) In-Reply-To: <07cbd454-4885-9875-edaf-168f26ae828a@gmx.at> X-Mailer: Apple Mail (2.3608.60.0.2.5) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:177577 Archived-At: --Apple-Mail=_CB34985C-BC56-4E5C-BCEE-1F0D88AAFE3E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 16, 2020, at 5:24 AM, martin rudalics wrote: >=20 > > Thanks. I=E2=80=99ll prepare a patch for etc/news. Should I also = update the manual? >=20 > Please do. >=20 > Thanks, martin >=20 Here it is. Yuan --Apple-Mail=_CB34985C-BC56-4E5C-BCEE-1F0D88AAFE3E Content-Disposition: attachment; filename=news.patch Content-Type: application/octet-stream; x-unix-mode=0700; name="news.patch" Content-Transfer-Encoding: quoted-printable =46rom=208becfc67a17700dec92b427bf10ef11e81615c12=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Yuan=20Fu=20=0ADate:=20Sun,=20= 15=20Mar=202020=2021:02:14=20-0400=0ASubject:=20[PATCH]=20Add=20= documentation=20for=20previous=20commit=20by=20Yuan=20Fu=0A=0A*=20= etc/NEWS:=20Add=20news=20entry.=0A*=20doc/emacs/building.texi=20(GDB=20= User=20Interface=20Layout):=20Add=0Adocumentation=20for=20= 'gdb-save-window-configuration',=0A'gdb-load-window-configuration',=0A= 'gdb-default-window-configuration-file',=0A= 'gdb-window-configuration-directory',=0A= 'gdb-restore-window-configuration-after-quit'.=20=20Change=20= 'many-windows=0Alayout'=20to=20'default=20layout'=0A---=0A=20= doc/emacs/building.texi=20|=2029=20++++++++++++++++++++++++++---=0A=20= etc/NEWS=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20|=2016=20= ++++++++++++++++=0A=202=20files=20changed,=2042=20insertions(+),=203=20= deletions(-)=0A=0Adiff=20--git=20a/doc/emacs/building.texi=20= b/doc/emacs/building.texi=0Aindex=2038963f225c..130abc41e8=20100644=0A= ---=20a/doc/emacs/building.texi=0A+++=20b/doc/emacs/building.texi=0A@@=20= -568,7=20+568,7=20@@=20Starting=20GUD=0A=20=0A=20@item=20M-x=20gud-gdb=0A= =20@findex=20gud-gdb=0A-Run=20GDB,=20using=20a=20GUD=20interaction=20= buffer=20for=20input=20and=20output=20to=20the=0A+Run=20GDB,=20using=20a=20= GUD=20action=20buffer=20for=20input=20and=20output=20to=20the=0A=20GDB=20= subprocess=20(@pxref{Debugger=20Operation}).=20=20If=20such=20a=20buffer=20= already=0A=20exists,=20switch=20to=20it;=20otherwise,=20create=20the=20= buffer=20and=20switch=20to=20it.=0A=20=0A@@=20-975,9=20+975,26=20@@=20= GDB=20User=20Interface=20Layout=0A=20@end=20group=0A=20@end=20= smallexample=0A=20=0A+@findex=20gdb-save-window-configuration=0A+@findex=20= gdb-load-window-configuration=0A+@vindex=20= gdb-default-window-configuration-file=0A+@vindex=20= gdb-window-configuration-directory=0A+=20=20You=20can=20customize=20the=20= window=20layout=20bese=20on=20the=20one=20above,=20and=20save=0A+the=20= custom=20layout=20to=20a=20file=20by=20= @code{gdb-save-window-configuration}.=0A+Then=20you=20can=20later=20load=20= this=20layout=20back=20by=0A+@code{gdb-load-window-configuration}.=20=20= (Simply=20put,=20window=0A+configuration=20is=20the=20Emacs=20jargon=20= for=20window=20layout.)=20=20You=20can=20set=0A+your=20custom=20layout=20= file=20as=20the=20default=20one=20used=20by=0A+@code{gdb-many-windows}=20= by=20customizing=0A+@code{gdb-default-window-configuration-file}.=20=20= If=20it=20is=20not=20an=0A+absolute=20path,=20GDB=20looks=20under=0A= +@code{gdb-window-configuration-directory}=20(default=20to=0A= +@file{~/.emacs.d})=20for=20the=20file.=0A+=0A=20@findex=20= gdb-restore-windows=0A=20@findex=20gdb-many-windows=0A-=20=20If=20you=20= ever=20change=20the=20window=20layout,=20you=20can=20restore=20the=20= many-windows=0A+@vindex=20gdb-restore-window-configuration-after-quit=0A= +=20=20If=20you=20ever=20change=20the=20window=20layout,=20you=20can=20= restore=20the=20default=0A=20layout=20by=20typing=20@kbd{M-x=20= gdb-restore-windows}.=20=20To=20toggle=0A=20between=20the=20many=20= windows=20layout=20and=20a=20simple=20layout=20with=20just=20the=20GUD=0A= =20interaction=20buffer=20and=20a=20source=20file,=20type=20@kbd{M-x=20= gdb-many-windows}.=0A@@=20-988,7=20+1005,13=20@@=20GDB=20User=20= Interface=20Layout=0A=20of=20windows=20on=20your=20original=20frame=20= will=20not=20be=20affected.=20=20A=20separate=0A=20frame=20for=20GDB=20= sessions=20can=20come=20in=20especially=20handy=20if=20you=20work=20on=20= a=0A=20text-mode=20terminal,=20where=20the=20screen=20estate=20for=20= windows=20could=20be=20at=20a=0A-premium.=0A+premium.=20=20If=20you=20= choose=20to=20start=20GDB=20in=20the=20same=20frame,=20consider=0A= +setting=20@code{gdb-restore-window-configuration-after-quit}=20to=0A= +non-@code{nil}.=20=20Then=20GDB=20restores=20your=20original=20window=20= layout=20after=0A+it=20quits.=20=20Set=20to=20@code{t}=20to=20always=20= restore;=20set=20to=0A+@code{if-gdb-many-windows}=20to=20restore=20only=20= when=0A+@code{gdb-many-windows}=20is=20@code{t};=20set=20to=20= @code{if-gdb-show-main}=20to=0A+restore=20only=20when=20= @code{gdb-show-main}=20is=20@code{t}.=0A=20=0A=20=20=20You=20may=20also=20= specify=20additional=20GDB-related=20buffers=20to=20display,=0A=20either=20= in=20the=20same=20frame=20or=20a=20different=20one.=20=20Select=20the=20= buffers=20you=0Adiff=20--git=20a/etc/NEWS=20b/etc/NEWS=0Aindex=20= 87e634f2c1..692ecf7f0a=20100644=0A---=20a/etc/NEWS=0A+++=20b/etc/NEWS=0A= @@=20-174,6=20+174,22=20@@=20key=20=20=20=20=20=20=20=20=20=20=20=20=20= binding=0A=20/=20v=20=20=20=20=20=20=20=20=20=20=20=20=20= package-menu-filter-by-version=0A=20/=20/=20=20=20=20=20=20=20=20=20=20=20= =20=20package-menu-filter-clear=0A=20=0A+**=20gdb-mi=0A+=0A+***=20gdb-mi=20= can=20now=20store=20and=20restore=20window=20configurations.=0A+Use=20= 'gdb-save-window-configuration'=20to=20save=20window=20configuration=20= to=20a=0A+file,=20and=20'gdb-load-window-configuration'=20to=20load=20= from=20a=20file.=20=20They=0A+can=20also=20be=20accessed=20through=20= menu=20bar=20under=20Gud=20--=20GDB-Windows.=0A= +'gdb-default-window-configuration-file',=20when=20non-nil,=20is=20= loaded=20when=0A+GDB=20starts=20up.=0A+=0A+***=20gdb-mi=20can=20now=20= restore=20window=20configuration=20after=20finished.=0A+Set=20= 'gdb-restore-window-configuration-after-quit'=20to=20non-nil=20and=20GDB=0A= +will=20remember=20the=20window=20configuration=20before=20GDB=20= started,=20and=20restore=0A+it=20after=20it=20quits.=20=20Toggle=20= button=20is=20also=20provided=20under=20Gud=20--=0A+GDB-WINDOWS.=0A+=0A+=0A= =20=0C=0A=20*=20New=20Modes=20and=20Packages=20in=20Emacs=2028.1=0A=20=0A= --=20=0A2.25.1=0A=0A= --Apple-Mail=_CB34985C-BC56-4E5C-BCEE-1F0D88AAFE3E--