From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: decriminalize C-k in read-only buffers! Date: Sat, 19 Apr 2003 06:09:19 +0800 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <871xzzfofk.fsf@jidanni.org> References: Reply-To: Dan Jacobson NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050711091 17185 80.91.224.249 (19 Apr 2003 00:11:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2003 00:11:31 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 19 02:11:30 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 196fx4-0004Sw-00 for ; Sat, 19 Apr 2003 02:11:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 196fx8-0007vK-03 for gnu-bug-gnu-emacs@m.gmane.org; Fri, 18 Apr 2003 20:11:34 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 196fwz-0007k6-00 for bug-gnu-emacs@gnu.org; Fri, 18 Apr 2003 20:11:25 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 196fwx-0007iF-00 for bug-gnu-emacs@gnu.org; Fri, 18 Apr 2003 20:11:24 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 196fwk-000774-00 for bug-gnu-emacs@gnu.org; Fri, 18 Apr 2003 20:11:10 -0400 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 196fvv-0004PM-00 for ; Sat, 19 Apr 2003 02:10:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 196fm7-0003vF-00 for ; Sat, 19 Apr 2003 02:00:11 +0200 Original-Lines: 44 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4837 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4837 >>>>> "D" == David Kastrup writes: D> Dan Jacobson writes: >> "C-k runs the command kill-line ... If the buffer is read-only, Emacs >> will beep and refrain from deleting the line, but put the line in the >> kill ring anyway. This means that you can use this command to copy >> text from a read-only buffer." >> >> OK, but what if we're bored with S/M and want to turn the little >> tingle off? (You see, mother has wired the bell to electrodes on my >> head to teach me proper computing and not wake her up.) D> [...] >> Maybe we should just push for a variable to decriminalize [no >> flashing] C-k when the buffer is readonly. With maybe a message, in >> the minibuffer, if the user prefers. D> kill-read-only-ok's value is nil D> *Non-nil means don't signal an error for killing read-only text. Oh great. Why don't they document it when one does C-h k C-k? That way we wouldn't have wasted all this time and coding as you can see in previous messages. Looking in Info "Other Kill Commands" You can use kill commands in read-only buffers. They don't actually change the buffer, and they beep to warn you of that, but they do copy the text you tried to kill into the kill ring, so you can yank it into other buffers. Most of the kill commands move point across the text they copy in this way, so that successive kill commands build up a single kill ring entry as usual. we of course see no mention of it either. Oh look, it is mentioned in "Deletion and Killing". I just did C-h k C-w and see we are told to accept the beep and no remedy is mentioned too... Anyways, the emacs documenter was clearly sleeping on the job, talking about beeps but not talking how to turn them off when there is a way just for that purpose... causing me to appear clumsy and pompous yet again! -- http://jidanni.org/ Taiwan(04)25854780