From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: Auto Capitalize Mode Date: Wed, 30 Aug 2017 07:29:37 +0000 Message-ID: <874lspa4ym.fsf@mat.ucm.es> References: <87d17hdmnm.fsf@escafil> <87fucapnci.fsf@mat.ucm.es> <877exlsxhs.fsf@escafil> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1504078228 1639 195.159.176.226 (30 Aug 2017 07:30:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 30 Aug 2017 07:30:28 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 30 09:30:25 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmxSA-0008VC-F8 for ged-emacs-devel@m.gmane.org; Wed, 30 Aug 2017 09:30:22 +0200 Original-Received: from localhost ([::1]:48792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmxSF-0006DP-RT for ged-emacs-devel@m.gmane.org; Wed, 30 Aug 2017 03:30:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmxS5-0006D4-Vc for emacs-devel@gnu.org; Wed, 30 Aug 2017 03:30:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmxS2-0007xw-RY for emacs-devel@gnu.org; Wed, 30 Aug 2017 03:30:17 -0400 Original-Received: from [195.159.176.226] (port=42553 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dmxS2-0007xS-Ks for emacs-devel@gnu.org; Wed, 30 Aug 2017 03:30:14 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dmxRc-00078W-Rh for emacs-devel@gnu.org; Wed, 30 Aug 2017 09:29:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 41 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:hDYSu8JWDD8vu9qoJzv3xnmGWKA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217887 Archived-At: Uwe> Are you aware of auto-capitalize-mode by Kevin Rodgers, it is Uwe> more than 10 years old and very sophisticated. Maybe you have a Uwe> look, since you might reinvent the wheel. > I am aware of it. I tried it before writing my version, but I can't > remember what issues I encountered with it that made me not like it. > After a brief trial, the big difference I see is it not handling > *This* or /This/ in Org mode sentences, which is a big deal to me. I > use the same formatting in my custom writing mode, so when writing > internal dialogue (for which I use italics), I want the dialogue to be > capitalized. Ok, I put quite some time ago auto-capitalize-mode, with the permission to MELPA. Maybe it would be good to chose a slightly different name, although I admit right now, nothing really neat pops up in my mind. But Kevin's auto-capitalize-mode is 20 years, so people might be confused if a very different implementation with the same name pops up. > One feature of mine that's absent in that one is the ability for a > user to specify a sentence start function. I've found this exceedingly > helpful in every mode. I can specify a function to check for a comment > in programming modes, the start of a list or heading in Org mode, and > the start of the input line in chat modes. The way Rodgers's version > is implemented, such a feature isn't possible. One thing which was a considerable headache, but could be solved in Kevin's version concerned letters in math formula in latex (auctex) mode. For example \[ \sum_{i=1}^n A_i \] Should not give \[ \sum_{I=1}^n A_I \] Did you check this for your code?