unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Signaling text-read-only
@ 2011-02-15  3:35 Deniz Dogan
  2011-02-15  4:52 ` Leo
  0 siblings, 1 reply; 4+ messages in thread
From: Deniz Dogan @ 2011-02-15  3:35 UTC (permalink / raw)
  To: Emacs-Devel devel

I have a situation here where I need to tell the user that the part of
the buffer where point is located is read-only. This is what I am
thinking right now:

(unless (rcirc-looking-at-input)
  (error (error-message-string (list 'text-read-only)))

or:

(unless (rcirc-looking-at-input)
  (signal 'text-read-only nil)))

I haven't found any examples of this explicit sort of signaling in the
other Lisp files in Emacs, but I might have missed something.

The reason why I need this is that `rcirc-complete' shouldn't be
called in read-only areas of the buffer.

What is the right way to do this?

-- 
Deniz Dogan



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-22 11:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-15  3:35 Signaling text-read-only Deniz Dogan
2011-02-15  4:52 ` Leo
2011-02-15 10:38   ` Deniz Dogan
2011-03-22 11:56     ` Leo

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).