unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jorgen Grahn <grahn+nntp@snipabacken.se>
To: help-gnu-emacs@gnu.org
Subject: upcase-region (was Re: Emacs starter kit - disabled menus)
Date: 1 May 2011 14:47:47 GMT	[thread overview]
Message-ID: <slrnirqskj.gtj.grahn+nntp@frailea.sa.invalid> (raw)
In-Reply-To: m3bozmv775.fsf@marcoparrone.com

On Sun, 2011-05-01, Marco Parrone wrote:
> Jorgen Grahn <grahn+nntp@snipabacken.se> writes:
>
>
>> And a +1 for your posting too! I don't have the heart to trim it while
>> replying.
>>
>> I can add that IMHO what you write also applies to giving copies of
>> your own .emacs to people.  Some (most?) people have a lot of
>> undocumented stuff in it. Like this which I inherited from a guy
>> called Per in 1996:
>>
>>     ;; Fix upcase-region and downcase-region
>>     (put 'downcase-region 'disabled nil)
>>     (put 'upcase-region 'disabled nil)
>>
>> I have no idea what it does ...

> It enables the downcase-region and upcase-region commands.
>
> It does so by setting the 'disabled property of the respective symbols
> to the value of nil.

Thanks! If I remove that stuff and run M-x upcase-region, I get a
message that it's disabled "because new users often find it
confusing".

Some searching shows that that happened in Emacs 19 (twenty years ago).
From NEWS.19:

    C-x C-u (upcase-region) and C-x C-l (downcase-region) are now
    disabled by default; these commands seem to be often hit by
    accident, and can be quite destructive if their effects are not
    noticed immediately.

(Interesting. I never typed those by mistake. ^X^C happens by accident
a lot these days, though -- ever since I started using vc-mode.)

/Jorgen

-- 
  // Jorgen Grahn <grahn@  Oo  o.   .  .
\X/     snipabacken.se>   O  o   .


  reply	other threads:[~2011-05-01 14:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-29 11:34 Emacs starter kit - disabled menus flebber
2011-04-29 18:16 ` haziz
2011-04-29 18:17 ` haziz
2011-04-29 19:00   ` Stefan Monnier
2011-04-29 23:57     ` haziz
2011-04-30 14:24       ` Stefan Monnier
2011-05-01  0:36     ` Tim X
2011-05-01  8:13       ` Jorgen Grahn
2011-05-01 14:14         ` Marco Parrone
2011-05-01 14:47           ` Jorgen Grahn [this message]
2011-04-29 22:13 ` Marco Parrone
2011-04-29 23:14   ` despen

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=slrnirqskj.gtj.grahn+nntp@frailea.sa.invalid \
    --to=grahn+nntp@snipabacken.se \
    --cc=help-gnu-emacs@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.
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).