all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Samuel Bronson <naesten@gmail.com>
To: Chong Yidong <cyd@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: toggle-read-only should not give compilation warnings
Date: Wed, 11 Jul 2012 12:23:51 -0400	[thread overview]
Message-ID: <AA42A2D7-4739-49C2-86B8-E9AB962F7BB0@gmail.com> (raw)
In-Reply-To: <877gubszqq.fsf@gnu.org>


On Jul 11, 2012, at 12:11 AM, Chong Yidong wrote:

> There are lots of toggle-read-only warnings in the Emacs Lisp source
> tree.  As far as I can tell, the overwhelming majority of these are  
> all
> legitimate use cases.  The typical intention is "do whatever the
> `toggle-read-only' command does, then do some other stuff on top of
> that," so the caveat about toggle-read-only not being used in Lisp  
> code
> is bogus.
>
> Instead of sprinking with-no-warnings all over, I propose removing
> toggle-read-only from byte-compile-interactive-only-functions.  Any
> objections?

Maybe we need an "explain why the byte compiler warning for the next  
form is inapplicable" form?



  reply	other threads:[~2012-07-11 16:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-11  4:11 toggle-read-only should not give compilation warnings Chong Yidong
2012-07-11 16:23 ` Samuel Bronson [this message]
2012-07-11 17:04 ` Achim Gratz
2012-07-11 18:22 ` Glenn Morris
2012-07-13  5:22   ` Chong Yidong
2012-07-13  6:03     ` Drew Adams
2012-07-13 13:04     ` Stefan Monnier
2012-07-13 13:47       ` Chong Yidong
2012-07-15 22:01         ` Stefan Monnier
2012-07-12  0:58 ` Richard Stallman

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

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

  git send-email \
    --in-reply-to=AA42A2D7-4739-49C2-86B8-E9AB962F7BB0@gmail.com \
    --to=naesten@gmail.com \
    --cc=cyd@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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 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.