From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: Caps-mode vs. Overwrite mode Date: Fri, 03 Apr 2015 11:21:34 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1428074719 31405 80.91.229.3 (3 Apr 2015 15:25:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Apr 2015 15:25:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 03 17:25:18 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ye3TB-0005XD-TV for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Apr 2015 17:25:18 +0200 Original-Received: from localhost ([::1]:34488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ye3TB-0003rP-3m for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Apr 2015 11:25:17 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Injection-Info: mx02.eternal-september.org; posting-host="ad871ce417d1fb2ea3c87e49e48c0ae1"; logging-data="23967"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tpX2WNBshRf2neMcz/zH8tGKTKWUyrwI=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:hc+KC+N0A6mU21Z50ByYHuJ811Q= Original-Xref: usenet.stanford.edu gnu.emacs.help:211252 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103534 Archived-At: Eli Zaretskii writes: >> From: Dan Espen >> Date: Fri, 03 Apr 2015 10:47:03 -0400 >> >> Stefan Monnier 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