[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `save-excursion' defeated by `set-buffer'

From: Stefan Monnier
Subject: Re: `save-excursion' defeated by `set-buffer'
Date: Mon, 14 Mar 2011 10:25:42 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> Ok, how about
>    "save-current-buffer is a better choice than save-excursion"

Hmm, indeed, maybe the message should simply say

  "Use with-current-buffer instead of save-excursion+set-buffer"

> I only wish that the compiler warning was there 20 years ago so that
> I wouldn't have to deal with that mess now.

Oh yes!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]