* increasing *gud* buffer max size.
@ 2005-12-20 12:00 mak kwak
2005-12-20 17:47 ` Kevin Rodgers
0 siblings, 1 reply; 2+ messages in thread
From: mak kwak @ 2005-12-20 12:00 UTC (permalink / raw)
Hallo
As my application puts more than say, 10000 lines into *gud* buffer, the oldest lines are just removed from the buffer.
how can I increase *gud* buffer maximum size?
Greetings
----------------------------------------------------
Wyprzedaz - wiatrowka Magnum za jedyne 149 zł, dostępna
bez zezwolenia. Idealny prezent pod choinkę, sprawdz juz teraz!
http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fmagnum.html&sid=616
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: increasing *gud* buffer max size.
2005-12-20 12:00 increasing *gud* buffer max size mak kwak
@ 2005-12-20 17:47 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2005-12-20 17:47 UTC (permalink / raw)
mak kwak wrote:
> As my application puts more than say, 10000 lines into *gud* buffer,
> the oldest lines are just removed from the buffer. how can I increase
> *gud* buffer maximum size?
,----[ C-h v comint-buffer-maximum-size RET ]
| comint-buffer-maximum-size's value is 1024
|
| Documentation:
| *The maximum size in lines for comint buffers.
| Comint buffers are truncated from the top to be no greater than this
number, if
| the function `comint-truncate-buffer' is on
`comint-output-filter-functions'.
|
| You can customize this variable.
|
| Defined in `comint'.
`----
So you probably need to do one of these things in an appropriate hook:
(remove-hook (make-local-hook 'comint-output-filter-functions)
'comint-truncate-buffer
t) ; redundant?
(set (make-local-variable 'comint-buffer-maximum-size)
(lsh -1 -1)) ; see most-positive-fixnum
There's no general gud-mode-hook, only gdb-mode-hook, perldb-mode-hook,
etc. so it depends on how you invoke gdb. For example:
(add-hook 'gdb-mode-hook
(lambda ()
(remove-hook ...)))
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-20 17:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-20 12:00 increasing *gud* buffer max size mak kwak
2005-12-20 17:47 ` Kevin Rodgers
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.