From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Caps-mode vs. Overwrite mode Date: Fri, 03 Apr 2015 18:25:39 +0300 Message-ID: <83d23lp72k.fsf@gnu.org> References: <83ego1p7rg.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1428074771 32402 80.91.229.3 (3 Apr 2015 15:26:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Apr 2015 15:26:11 +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:26:04 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 1Ye3Ts-0005wQ-WE for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Apr 2015 17:26:01 +0200 Original-Received: from localhost ([::1]:34494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ye3Ts-0004WP-Dv for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Apr 2015 11:26:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ye3Tf-0004TU-O1 for help-gnu-emacs@gnu.org; Fri, 03 Apr 2015 11:25:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ye3Tc-00023L-Fw for help-gnu-emacs@gnu.org; Fri, 03 Apr 2015 11:25:47 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:48929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ye3Tc-00022t-8R for help-gnu-emacs@gnu.org; Fri, 03 Apr 2015 11:25:44 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NM800B00LBVUJ00@mtaout29.012.net.il> for help-gnu-emacs@gnu.org; Fri, 03 Apr 2015 18:23:10 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NM8009JBLEMKN20@mtaout29.012.net.il> for help-gnu-emacs@gnu.org; Fri, 03 Apr 2015 18:23:10 +0300 (IDT) In-reply-to: <83ego1p7rg.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 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:103535 Archived-At: > Date: Fri, 03 Apr 2015 18:10:43 +0300 > From: Eli Zaretskii > > > 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 OK, I see now: caps-mode should be fixed to use last-command-event instead of (the now deleted) last-command-char. And the problem with overwrite mode is that caps-mode doesn't pay attention to overwrite-mode, it always inserts a character, even if overwrite-mode is on. So it's a bug in caps-mode: its caps-mode-self-insert-command should be smarter, and pay attention to overwrite-mode.