[PATCH] emacs: Don't record undo information for search or show buffers.

2011-11-24 Thread David Bremner
On Sun, 20 Nov 2011 20:00:55 -0500, Austin Clements  wrote:
> There's no reason to record undo information for read-only,
> programmatically-constructed buffers.  The undo list just chews up
> memory keeping track of our calls to insert.

Pushed.

d


Re: [PATCH] emacs: Don't record undo information for search or show buffers.

2011-11-24 Thread David Bremner
On Sun, 20 Nov 2011 20:00:55 -0500, Austin Clements amdra...@mit.edu wrote:
 There's no reason to record undo information for read-only,
 programmatically-constructed buffers.  The undo list just chews up
 memory keeping track of our calls to insert.

Pushed.

d
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


[PATCH] emacs: Don't record undo information for search or show buffers.

2011-11-21 Thread Dmitry Kurochkin
On Sun, 20 Nov 2011 20:00:55 -0500, Austin Clements  wrote:
> There's no reason to record undo information for read-only,
> programmatically-constructed buffers.  The undo list just chews up
> memory keeping track of our calls to insert.

Makes sense and looks good!

Regards,
  Dmitry

> ---
>  emacs/notmuch-show.el |2 ++
>  emacs/notmuch.el  |2 ++
>  2 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
> index d5c95d8..7689867 100644
> --- a/emacs/notmuch-show.el
> +++ b/emacs/notmuch-show.el
> @@ -843,6 +843,8 @@ buffer."
>(inhibit-read-only t))
>  (switch-to-buffer buffer)
>  (notmuch-show-mode)
> +;; Don't track undo information for this buffer
> +(set 'buffer-undo-list t)
>  
>  (setq notmuch-show-thread-id thread-id)
>  (setq notmuch-show-parent-buffer parent-buffer)
> diff --git a/emacs/notmuch.el b/emacs/notmuch.el
> index c1827cc..a8e4d62 100644
> --- a/emacs/notmuch.el
> +++ b/emacs/notmuch.el
> @@ -920,6 +920,8 @@ The optional parameters are used as follows:
>(let ((buffer (get-buffer-create (notmuch-search-buffer-title query
>  (switch-to-buffer buffer)
>  (notmuch-search-mode)
> +;; Don't track undo information for this buffer
> +(set 'buffer-undo-list t)
>  (set 'notmuch-search-query-string query)
>  (set 'notmuch-search-oldest-first oldest-first)
>  (set 'notmuch-search-target-thread target-thread)
> -- 
> 1.7.7.2
> 
> ___
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch


[PATCH] emacs: Don't record undo information for search or show buffers.

2011-11-20 Thread Austin Clements
There's no reason to record undo information for read-only,
programmatically-constructed buffers.  The undo list just chews up
memory keeping track of our calls to insert.
---
 emacs/notmuch-show.el |2 ++
 emacs/notmuch.el  |2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index d5c95d8..7689867 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -843,6 +843,8 @@ buffer."
 (inhibit-read-only t))
 (switch-to-buffer buffer)
 (notmuch-show-mode)
+;; Don't track undo information for this buffer
+(set 'buffer-undo-list t)

 (setq notmuch-show-thread-id thread-id)
 (setq notmuch-show-parent-buffer parent-buffer)
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index c1827cc..a8e4d62 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -920,6 +920,8 @@ The optional parameters are used as follows:
   (let ((buffer (get-buffer-create (notmuch-search-buffer-title query
 (switch-to-buffer buffer)
 (notmuch-search-mode)
+;; Don't track undo information for this buffer
+(set 'buffer-undo-list t)
 (set 'notmuch-search-query-string query)
 (set 'notmuch-search-oldest-first oldest-first)
 (set 'notmuch-search-target-thread target-thread)
-- 
1.7.7.2



[PATCH] emacs: Don't record undo information for search or show buffers.

2011-11-20 Thread Austin Clements
There's no reason to record undo information for read-only,
programmatically-constructed buffers.  The undo list just chews up
memory keeping track of our calls to insert.
---
 emacs/notmuch-show.el |2 ++
 emacs/notmuch.el  |2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index d5c95d8..7689867 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -843,6 +843,8 @@ buffer.
 (inhibit-read-only t))
 (switch-to-buffer buffer)
 (notmuch-show-mode)
+;; Don't track undo information for this buffer
+(set 'buffer-undo-list t)
 
 (setq notmuch-show-thread-id thread-id)
 (setq notmuch-show-parent-buffer parent-buffer)
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index c1827cc..a8e4d62 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -920,6 +920,8 @@ The optional parameters are used as follows:
   (let ((buffer (get-buffer-create (notmuch-search-buffer-title query
 (switch-to-buffer buffer)
 (notmuch-search-mode)
+;; Don't track undo information for this buffer
+(set 'buffer-undo-list t)
 (set 'notmuch-search-query-string query)
 (set 'notmuch-search-oldest-first oldest-first)
 (set 'notmuch-search-target-thread target-thread)
-- 
1.7.7.2

___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] emacs: Don't record undo information for search or show buffers.

2011-11-20 Thread Dmitry Kurochkin
On Sun, 20 Nov 2011 20:00:55 -0500, Austin Clements amdra...@mit.edu wrote:
 There's no reason to record undo information for read-only,
 programmatically-constructed buffers.  The undo list just chews up
 memory keeping track of our calls to insert.

Makes sense and looks good!

Regards,
  Dmitry

 ---
  emacs/notmuch-show.el |2 ++
  emacs/notmuch.el  |2 ++
  2 files changed, 4 insertions(+), 0 deletions(-)
 
 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
 index d5c95d8..7689867 100644
 --- a/emacs/notmuch-show.el
 +++ b/emacs/notmuch-show.el
 @@ -843,6 +843,8 @@ buffer.
(inhibit-read-only t))
  (switch-to-buffer buffer)
  (notmuch-show-mode)
 +;; Don't track undo information for this buffer
 +(set 'buffer-undo-list t)
  
  (setq notmuch-show-thread-id thread-id)
  (setq notmuch-show-parent-buffer parent-buffer)
 diff --git a/emacs/notmuch.el b/emacs/notmuch.el
 index c1827cc..a8e4d62 100644
 --- a/emacs/notmuch.el
 +++ b/emacs/notmuch.el
 @@ -920,6 +920,8 @@ The optional parameters are used as follows:
(let ((buffer (get-buffer-create (notmuch-search-buffer-title query
  (switch-to-buffer buffer)
  (notmuch-search-mode)
 +;; Don't track undo information for this buffer
 +(set 'buffer-undo-list t)
  (set 'notmuch-search-query-string query)
  (set 'notmuch-search-oldest-first oldest-first)
  (set 'notmuch-search-target-thread target-thread)
 -- 
 1.7.7.2
 
 ___
 notmuch mailing list
 notmuch@notmuchmail.org
 http://notmuchmail.org/mailman/listinfo/notmuch
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch