From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.bugs Subject: Re: GUD should disable undo buffer in breakpoins window Date: Fri, 25 Apr 2008 10:49:22 +1200 Message-ID: <18449.3698.414699.148235@kahikatea.snap.net.nz> References: <0000010911@wxwilli.o3sis.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1209077414 22638 80.91.229.12 (24 Apr 2008 22:50:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2008 22:50:14 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: "willi" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 25 00:50:49 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JpAH9-0007In-7B for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Apr 2008 00:50:47 +0200 Original-Received: from localhost ([127.0.0.1]:58964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JpAGT-0002OU-9p for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Apr 2008 18:50:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JpAGB-0002JO-9G for bug-gnu-emacs@gnu.org; Thu, 24 Apr 2008 18:49:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JpAG9-0002Ia-9w for bug-gnu-emacs@gnu.org; Thu, 24 Apr 2008 18:49:46 -0400 Original-Received: from [199.232.76.173] (port=57942 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JpAG9-0002IW-65 for bug-gnu-emacs@gnu.org; Thu, 24 Apr 2008 18:49:45 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.25]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JpAG8-0004za-9I for bug-gnu-emacs@gnu.org; Thu, 24 Apr 2008 18:49:44 -0400 Original-Received: from kahikatea.snap.net.nz (194.30.255.123.static.snap.net.nz [123.255.30.194]) by viper.snap.net.nz (Postfix) with ESMTP id 5F2F13DA99B; Fri, 25 Apr 2008 10:49:36 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id B9E9A8FC6D; Fri, 25 Apr 2008 10:49:23 +1200 (NZST) In-Reply-To: <0000010911@wxwilli.o3sis.com> X-Mailer: VM 7.19 under Emacs 22.2.50.2 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17874 Archived-At: willi writes: > this is what i got in my messages window: > > Warning (undo): Buffer `*breakpoints of o3sis_massSmtp*' undo info was > 3000860 bytes long. The undo info was discarded because it exceeded > `undo-outer-limit'. I'm surprised that the limit is exceeded in the breakpoints buffer first as the stack buffer normally holds more text in my debug sessions. In any case, it doesn't make sense to hold undo information in any of the GDB-UI buffers so I've committed a change in the CVS repository to disable it. > In GNU Emacs 22.1.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) > of 2007-10-09 on wxwilli.o3sis.com, modified by Debian As you're using Emacs 22.1, I attach the diff below. It's against current gdb-ui.el so you won't be able to apply it directly but it should show you where to make changes. Don't forget to byte compile the file afterwards otherwise you won't see your changes without loading the .el file explicitly. It would be helpful if you could use Emacs in CVS as gdb-ui is constantly being developed and has more features there. If not, Romain Francoise maintains a debian package called emacs-snapshot that he updates weekly. Thanks for the report. -- Nick http://www.inet.net.nz/~nickrob 2008-04-24 Nick Roberts (gdb-breakpoints-mode, gdb-frames-mode, gdb-threads-mode) (gdb-registers-mode, gdb-memory-mode, gdb-locals-mode) (gdb-assembler-mode): Disable undo in these buffers. *** gdb-ui.el.~1.238.~ 2008-04-25 01:38:43.000000000 +1200 --- gdb-ui.el 2008-04-25 10:28:41.000000000 +1200 *************** corresponding to the mode line clicked." *** 2155,2160 **** --- 2155,2161 ---- (setq mode-name "Breakpoints") (use-local-map gdb-breakpoints-mode-map) (setq buffer-read-only t) + (buffer-disable-undo) (setq header-line-format gdb-breakpoints-header) (run-mode-hooks 'gdb-breakpoints-mode-hook) (if (eq (buffer-local-value 'gud-minor-mode gud-comint-buffer) 'gdba) *************** $pc directly from the GUD buffer. This *** 2367,2372 **** --- 2368,2374 ---- (add-to-list 'overlay-arrow-variable-list 'gdb-stack-position) (setq truncate-lines t) ;; Make it easier to see overlay arrow. (setq buffer-read-only t) + (buffer-disable-undo) (gdb-thread-identification) (use-local-map gdb-frames-mode-map) (run-mode-hooks 'gdb-frames-mode-hook) *************** another GDB command e.g pwd, to see new *** 2467,2472 **** --- 2469,2475 ---- (setq major-mode 'gdb-threads-mode) (setq mode-name "Threads") (setq buffer-read-only t) + (buffer-disable-undo) (setq header-line-format gdb-breakpoints-header) (use-local-map gdb-threads-mode-map) (set (make-local-variable 'font-lock-defaults) *************** another GDB command e.g pwd, to see new *** 2591,2596 **** --- 2594,2600 ---- (setq mode-name "Registers") (setq header-line-format gdb-locals-header) (setq buffer-read-only t) + (buffer-disable-undo) (gdb-thread-identification) (use-local-map gdb-registers-mode-map) (run-mode-hooks 'gdb-registers-mode-hook) *************** another GDB command e.g pwd, to see new *** 2846,2851 **** --- 2850,2856 ---- (setq major-mode 'gdb-memory-mode) (setq mode-name "Memory") (setq buffer-read-only t) + (buffer-disable-undo) (use-local-map gdb-memory-mode-map) (setq header-line-format '(:eval *************** another GDB command e.g pwd, to see new *** 3017,3022 **** --- 3022,3028 ---- (setq mode-name (concat "Locals:" gdb-selected-frame)) (use-local-map gdb-locals-mode-map) (setq buffer-read-only t) + (buffer-disable-undo) (setq header-line-format gdb-locals-header) (gdb-thread-identification) (set (make-local-variable 'font-lock-defaults) *************** BUFFER nil or omitted means use the curr *** 3502,3507 **** --- 3508,3514 ---- (add-to-list 'overlay-arrow-variable-list 'gdb-overlay-arrow-position) (setq fringes-outside-margins t) (setq buffer-read-only t) + (buffer-disable-undo) (gdb-thread-identification) (use-local-map gdb-assembler-mode-map) (gdb-invalidate-assembler)