unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: u.s.reddy@cs.bham.ac.uk, emacs-devel@gnu.org
Subject: Re: save-excursion and save-current-buffer - edits to the manual
Date: Mon, 14 Mar 2011 18:33:39 -0400	[thread overview]
Message-ID: <E1PzGKZ-0006ME-Sh@fencepost.gnu.org> (raw)
In-Reply-To: <C9318010A83C4897AECA3DC4CA948F67@us.oracle.com> (drew.adams@oracle.com)

    So now we've apparently gone all the way - from a warning issued supposedly just
    in case, because a tiny minority of cases where `save-excursion' is used with
    `set-buffer' are deemed (by some) to be inappropriate or not ideal, to your
    claiming outright that use of `save-excursion' "contradicts the compiler" and
    "the compiler says no", it simply cannot be used.

Compiler warnings should be programmers' assistants, not their
masters.  That is why we have with-no-warnings.  We implement helpful
warnings about constructions that _might_ be mistakes, but that
doesn't mean they are taboo.


-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org, www.gnu.org



  parent reply	other threads:[~2011-03-14 22:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-13 16:24 save-excursion and save-current-buffer - edits to the manual Uday S Reddy
2011-03-13 18:27 ` Drew Adams
2011-03-13 21:22   ` Uday S Reddy
2011-03-14  0:26     ` Drew Adams
2011-03-14  1:17       ` Tim Cross
2011-03-14 22:33       ` Richard Stallman [this message]
2011-03-15  7:08         ` Uday S Reddy
2011-03-13 21:40   ` Stefan Monnier
2011-03-14  0:45     ` Drew Adams
2011-03-19 20:36 ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1PzGKZ-0006ME-Sh@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=u.s.reddy@cs.bham.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).