* GUD should disable undo buffer in breakpoins window @ 2008-04-24 11:21 willi 2008-04-24 22:49 ` Nick Roberts 0 siblings, 1 reply; 2+ messages in thread From: willi @ 2008-04-24 11:21 UTC (permalink / raw) To: bug-gnu-emacs 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'. This is normal if you executed a command that made a huge change to the buffer. In that case, to prevent similar problems in the future, set `undo-outer-limit' to a value that is large enough to cover the maximum size of normal changes you expect a single command to make, but not so large that it might exceed the maximum memory allotted to Emacs. If you did not execute any such command, the situation is probably due to a bug and you should report it. You can disable the popping up of this buffer by adding the entry (undo discard-info) to the user option `warning-suppress-types'. 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 Windowing system distributor `The X.Org Foundation', version 11.0.70101000 configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.1/leim' '--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Breakpoints Minor modes in effect: shell-dirtrack-mode: t delete-selection-mode: t pc-selection-mode: t which-function-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: <double-mouse-5> <down-mouse-5> <mouse-5> <down-mouse-5> <mouse-5> <double-down-mouse-5> <double-mouse-5> <down-mouse-1> <mouse-movement> <mouse-1> <down> <return> <return> <up> <tab> <switch-frame> <C-down-mouse-1> <S-down-mouse-1> <C-down-mouse-1> <C-down-mouse-1> <C-down-mouse-1> <C-down-mouse-1> <C-down-mouse-1> <C-down-mouse-1> <C-down-mouse-1> <C-down-mouse-1> <C-down-mouse-1> C-x k <return> C-x k <return> C-x k <return> C-x k <return> C-x k <return> C-x k <return> C-x k <return> C-x k <return> <C-down-mouse-1> <C-down-mouse-1> C-x k <return> C-x k <return> <C-down-mouse-1> C-x k <return> <switch-frame> C-x C-s <C-f9> <return> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <switch-frame> <switch-frame> <help-echo> <down-mouse-1> <mouse-2> <help-echo> <C-right> <C-right> <C-right> <C-S-left> d i g i t C-x C-s <C-f9> <return> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> C-_ C-_ C-_ C-_ C-_ C-_ C-_ SPC C-_ C-_ <backspace> <backspace> C-k C-j <backspace> <backspace> <backspace> <backspace> <backspace> <backspace> <backspace> <backspace> <backspace> C-x C-s <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <prior> <down> <down> <down> <down> <down> <down> <down> <down> <down> # i n c l u d e SPC < c t y p e . h > <return> C-x C-s <C-f9> <return> <switch-frame> <switch-frame> <help-echo> <help-echo> <help-echo> <help-echo> <down-mouse-1> <mouse-movement> <mouse-1> <next> <next> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <S-down> <S-down> <S-down> <C-insert> <help-echo> <C-down-mouse-1> <help-echo> <return> <S-insert> <up> <up> <up> <C-right> <C-right> <C-right> <C-right> <C-right> <C-right> <C-right> <C-S-left> <C-S-left> c i t s e r v e r <down-mouse-1> <mouse-movement> <mouse-1> <double-down-mouse-1> <double-mouse-1> <triple-down-mouse-1> <triple-mouse-1> <triple-down-mouse-1> <mouse-movement> <mouse-movement> <triple-drag-mouse-1> <down-mouse-1> <mouse-movement> <mouse-movement> <drag-mouse-1> <C-down-mouse-1> <down-mouse-1> <mouse-1> <C-down-mouse-1> <prior> <prior> <prior> <next> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> M-x r e p o r t - e m a c s - b u g <help-echo> <down-mouse-4> <mouse-4> <down-mouse-4> <mouse-4> <down-mouse-5> <mouse-5> <down-mouse-1> <mouse-1> <down-mouse-1> <mouse-movement> <mouse-movement> <drag-mouse-1> <down-mouse-1> <mouse-1> <return> Recent messages: Decorations still on GetConfig Decorations still on ~OCMassMailSettings Decorations still on LogSuccess Decorations still on LogFail Decorations still on p25Server_WriteDbgLogCmd Decorations still on GetRecipients Decorations still on GetMessage Decorations still on main Mark set [3 times] Loading emacsbug...done ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: GUD should disable undo buffer in breakpoins window 2008-04-24 11:21 GUD should disable undo buffer in breakpoins window willi @ 2008-04-24 22:49 ` Nick Roberts 0 siblings, 0 replies; 2+ messages in thread From: Nick Roberts @ 2008-04-24 22:49 UTC (permalink / raw) To: willi; +Cc: bug-gnu-emacs 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 <nickrob@snap.net.nz> (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) ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-24 22:49 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-04-24 11:21 GUD should disable undo buffer in breakpoins window willi 2008-04-24 22:49 ` Nick Roberts
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.