Discussion:
coding problem, with older GNU emacs or Xemacs; auto-capitalize.el
Uwe Brauer
2016-04-16 08:33:07 UTC
Permalink
The following message is a courtesy copy of an article
that has been posted to gmane.emacs.devel as well.

Hello

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

What would be an more appropriate coding (which should work in GNU emacs,
Xemacs (including Xemacs no mule)?


- more worrying are these lines

(if (featurep 'xemacs)
"\\<\\([A-Z�-��-�]?[a-z�-��-�]+\\.\\)+\\="
"\\<\\([[:upper:]]?[[:lower:]]+\\.\\)+\\=")))

I am not sure they will be sent correctly.

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).

Any advice is appreciated.

thanks

Uwe Brauer
Stephen J. Turnbull
2016-04-18 19:12:07 UTC
Permalink
Post by Uwe Brauer
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;-*-
I don't understand the "unibyte: t". I think you should just take that
out. Once you've got a clean copy in Emacs, you can save it as utf-8.
Post by Uwe Brauer
;; Copyright � 1998,2001,2002,2005 Kevin Rodgers
This line as well as
Post by Uwe Brauer
"\\<\\([A-Z�-��-�]?[a-z�-��-�]+\\.\\)+\\="
did not decode usefully for me. The special characters all come out
as U+FFFD, the Unicode replacement character. I believe that is due
to your MUA. Can you give a direct URL to the Wiki?
Uwe Brauer
2016-04-18 19:44:50 UTC
Permalink
Post by Stephen J. Turnbull
Post by Uwe Brauer
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;-*-
I don't understand the "unibyte: t". I think you should just take that
out. Once you've got a clean copy in Emacs, you can save it as utf-8.
Most likely old, old GNU emacs.
Post by Stephen J. Turnbull
Post by Uwe Brauer
;; Copyright � 1998,2001,2002,2005 Kevin Rodgers
This line as well as
Post by Uwe Brauer
"\\<\\([A-Z�-��-�]?[a-z�-��-�]+\\.\\)+\\="
did not decode usefully for me. The special characters all come
out as U+FFFD, the Unicode replacement character. I believe that
is due to your MUA. Can you give a direct URL to the Wiki?
Sure https://www.emacswiki.org/emacs/auto-capitalize.el
Uwe Brauer
2016-04-23 17:00:17 UTC
Permalink
Post by Stephen J. Turnbull
I don't understand the "unibyte: t". I think you should just take that
out. Once you've got a clean copy in Emacs, you can save it as utf-8.
This line as well as
did not decode usefully for me. The special characters all come out
as U+FFFD, the Unicode replacement character. I believe that is due
to your MUA. Can you give a direct URL to the Wiki?
I sent you the link some days ago, but did not hear anything back. Any
news on that coding problem?

Loading...