unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dan Jacobson <jidanni@dman.ddts.net>
Subject: Re: decriminalize C-k in read-only buffers!
Date: Sat, 19 Apr 2003 06:09:19 +0800	[thread overview]
Message-ID: <871xzzfofk.fsf@jidanni.org> (raw)
In-Reply-To: x5d6jlq16m.fsf@lola.goethe.zz

>>>>> "D" == David Kastrup <dak@gnu.org> writes:

D> Dan Jacobson <jidanni@dman.ddts.net> 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

  reply	other threads:[~2003-04-18 22:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4771.1050547363.21513.bug-gnu-emacs@gnu.org>
2003-04-17  2:59 ` decriminalize C-k in read-only buffers! David Kastrup
2003-04-18 22:09   ` Dan Jacobson [this message]
     [not found]   ` <mailman.4920.1050711088.21513.bug-gnu-emacs@gnu.org>
2003-04-21 15:54     ` Kevin Rodgers
     [not found] <73388857A695D31197EF00508B08F2980A00EEEC@ntmsg0131.corpmail.telstra.com.au>
     [not found] ` <87znn8tdn5.fsf@pfaff.Stanford.EDU>
2003-04-03 20:04   ` C-k and scolding Dan Jacobson
2003-04-14 21:04     ` Bruce Kroeze
2003-04-17  1:14       ` decriminalize C-k in read-only buffers! Dan Jacobson

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=871xzzfofk.fsf@jidanni.org \
    --to=jidanni@dman.ddts.net \
    /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).