From: Dan Espen <despen@verizon.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Caps-mode vs. Overwrite mode
Date: Fri, 03 Apr 2015 11:21:34 -0400 [thread overview]
Message-ID: <mfmb48$ncv$2@dont-email.me> (raw)
In-Reply-To: mailman.3243.1428073855.31049.help-gnu-emacs@gnu.org
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Dan Espen <despen@verizon.net>
>> Date: Fri, 03 Apr 2015 10:47:03 -0400
>>
>> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>
>> >> When I toggle caps-mode on, overwrite mode stops working.
>> >> That is, inserted characters insert instead of overwriting.
>> >> Any hints?
>> >
>> > The caps-mode.el that's in GNU ELPA shouldn't suffer from this
>> > problem, AFAIK.
>>
>> My first search only turns up caps-lock.el?
>>
>> Works better than caps-mode, but does type lower case
>> when the shift key is used. I can live with that I think,
>> might even learn to like it.
>
> How do you even get caps-mode to work? If I type any self-inserting
> character after turning on caps-mode, I get an error:
>
> insert-char: Symbol's value as variable is void: last-command-char
Good question.
My copy has the same author and version number, but it uses
last-command-event:
(defun caps-mode-self-insert-command (&optional n)
"Like `self-insert-command', but uppercase the the typed character."
(interactive "p")
(message "insert")
(insert-char (upcase last-command-event) n))
Not sure if I made that change or I got my copy somewhere else.
--
Dan Espen
next prev parent reply other threads:[~2015-04-03 15:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-03 14:21 Caps-mode vs. Overwrite mode Dan Espen
2015-04-03 14:35 ` Stefan Monnier
[not found] ` <mailman.3242.1428071743.31049.help-gnu-emacs@gnu.org>
2015-04-03 14:47 ` Dan Espen
2015-04-03 15:10 ` Eli Zaretskii
2015-04-03 15:25 ` Eli Zaretskii
2015-04-03 15:14 ` Dan Espen
[not found] ` <mailman.3243.1428073855.31049.help-gnu-emacs@gnu.org>
2015-04-03 15:21 ` Dan Espen [this message]
2015-04-03 15:26 ` Stefan Monnier
[not found] ` <mailman.3246.1428074815.31049.help-gnu-emacs@gnu.org>
2015-04-03 16:35 ` Dan Espen
2015-04-03 16:44 ` Stefan Monnier
[not found] ` <mailman.3250.1428079480.31049.help-gnu-emacs@gnu.org>
2015-04-03 17:10 ` Dan Espen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='mfmb48$ncv$2@dont-email.me' \
--to=despen@verizon.net \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.