From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: coding problem, with older GNU emacs or Xemacs; auto-capitalize.el Date: Sat, 16 Apr 2016 12:12:33 +0300 Message-ID: <838u0ddiim.fsf@gnu.org> References: <878u0ear7g.fsf@mat.ucm.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1460797995 24913 80.91.229.3 (16 Apr 2016 09:13:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Apr 2016 09:13:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Uwe Brauer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 16 11:13:15 2016 Return-path: Envelope-to: ged-emacs-devel@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 1arMHu-0006j9-R5 for ged-emacs-devel@m.gmane.org; Sat, 16 Apr 2016 11:13:10 +0200 Original-Received: from localhost ([::1]:51833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arMHu-0005FZ-75 for ged-emacs-devel@m.gmane.org; Sat, 16 Apr 2016 05:13:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arMHf-0005Cp-Kn for emacs-devel@gnu.org; Sat, 16 Apr 2016 05:12:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arMHc-0004EH-A8 for emacs-devel@gnu.org; Sat, 16 Apr 2016 05:12:55 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arMHc-0004ED-7X; Sat, 16 Apr 2016 05:12:52 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2886 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1arMHb-0007LU-J9; Sat, 16 Apr 2016 05:12:52 -0400 In-reply-to: <878u0ear7g.fsf@mat.ucm.es> (message from Uwe Brauer on Sat, 16 Apr 2016 08:33:07 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:202984 Archived-At: > From: Uwe Brauer > Date: Sat, 16 Apr 2016 08:33:07 +0000 > Cc: XEmacs Beta Discussion > > the nifty but not much used auto-capitalize.el had a bug in buffers > which are using AUCTeX Latex mode. That bug has been fixed thanks to > Mosè Mosè, but the original code is in emacs wiki and contains some > strange coding and lines > > - it starts with > ;;; auto-capitalize.el --- Automatically capitalize (or upcase) words > ;;; -*-unibyte: t; coding: iso-8859-1;-*- > ;; Copyright � 1998,2001,2002,2005 Kevin Rodgers For Emacs, just remove all that stuff, it's unnecessary. > What would be an more appropriate coding (which should work in GNU emacs, > Xemacs (including Xemacs no mule)? I have no idea how XEmacs works wrt this, so no comment here. > - more worrying are these lines > > (if (featurep 'xemacs) > "\\<\\([A-Z�-��-�]?[a-z�-��-�]+\\.\\)+\\=" > "\\<\\([[:upper:]]?[[:lower:]]+\\.\\)+\\="))) Once again, the funny stuff is only for XEmacs, so I think you are asking in the wrong place. The Emacs branch of this is clear, and doesn't need any encoding-related tricks. > That seems much more an Xemacs issue than GNU emacs. I just want to make > sure what will be the best choice for the coding so that the code keeps > working for newer/older versions of GNU emacs and Xemacs (Mule and no > Mule). I think you should ask on the XEmacs list, not here.