From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.devel Subject: Signaling text-read-only Date: Tue, 15 Feb 2011 04:35:12 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1297740951 29884 80.91.229.12 (15 Feb 2011 03:35:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2011 03:35:51 +0000 (UTC) To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 15 04:35:47 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PpBha-0003f0-Vg for ged-emacs-devel@m.gmane.org; Tue, 15 Feb 2011 04:35:47 +0100 Original-Received: from localhost ([127.0.0.1]:36341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpBhZ-0000CW-Vs for ged-emacs-devel@m.gmane.org; Mon, 14 Feb 2011 22:35:46 -0500 Original-Received: from [140.186.70.92] (port=40329 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpBhV-0000Bt-Ia for emacs-devel@gnu.org; Mon, 14 Feb 2011 22:35:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpBhU-000732-7d for emacs-devel@gnu.org; Mon, 14 Feb 2011 22:35:41 -0500 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:39130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpBhU-00072s-3K for emacs-devel@gnu.org; Mon, 14 Feb 2011 22:35:40 -0500 Original-Received: by iwc10 with SMTP id 10so6037734iwc.0 for ; Mon, 14 Feb 2011 19:35:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=u8B4VUVfp8KmnSEWqazUb7v5WicOZBiaWbo4CYyAXL0=; b=GRs7KD19JcAC8b58LpQmoESoOMcZtx3E3E3KrOcdkv9svC8j91ZekrWAwc51se1kMG 21rbnX2lOGiGloNcBjMjb6rFc239N0gcomnAwxlAmUbTKnuts4ydYEMvZjj6pMq4RjWL Xex+z2dLUjKeNLhtRwKqQcIX5aoIUlFRWvcs4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=Jc7S6CPqH2+/xtOo8zh6MyUchoU+Vz65bBkAj+qY6ZVVbWFpbTtmcjIgdNSgVNwRtu Y4NMdaMnCHw/5LQHj4PQogtf93aQz8QYKtkuyoIVxgN7RMQkOf0nS+BLx3K74sz9UBQB 5Y4x1tT4k4UzNvco7k2UUObGiwnlTeu7hfwWU= Original-Received: by 10.231.36.77 with SMTP id s13mr1861582ibd.68.1297740932248; Mon, 14 Feb 2011 19:35:32 -0800 (PST) Original-Received: by 10.231.19.67 with HTTP; Mon, 14 Feb 2011 19:35:12 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:136030 Archived-At: 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