bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: html-mode: C-c 8 doesn't work properly


From: Felix Natter
Subject: Re: html-mode: C-c 8 doesn't work properly
Date: 12 Feb 2002 20:53:33 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

"Eli Zaretskii" <eliz@is.elta.co.il> writes:

> > From: Felix Natter <fnatter@gmx.net>
> > Newsgroups: gnu.emacs.bug
> > Date: 11 Feb 2002 18:01:18 +0100
> > 
> > Sorry, the "C-c 8" (sgml-name-8bit-mode) feature which worked fine
> > with Emacs 20 does not work with Emacs 21 at all.  If
> > sgml-name-8bit-mode is on, then you should be able to type
> > i.e. '"o' and it will insert "&ouml;".
> 
> Does it help to say "C-x RET k latin-1 RET"?

yes, that fixes it.
 
> Also, you may wish to try the following changes, which will be in the
> next version:
> 
> 2001-09-15  Eli Zaretskii  <eliz@is.elta.co.il>
> 
>       * textmodes/sgml-mode.el (sgml-mode-map): Bind 8-bit codes above
>       127 to sgml-maybe-name-self.
>       (sgml-name-8bit-mode): Doc fix.
>       (sgml-char-names-table): New variable.
>       (sgml-name-char): Support non-ASCII and mule-unicode-*
>       characters.  Doc fix.
>       (sgml-maybe-name-self): Convert unibyte characters to multibyte.
> 
> *** lisp/textmodes/sgml-mode.e~0      Fri Jul 20 12:11:26 2001
> --- lisp/textmodes/sgml-mode.el       Sat Sep 15 17:58:14 2001
> ***************
> *** 107,112 ****
> --- 107,116 ----
>             (define-key map "'" 'sgml-name-self))))

>       (define-key map (vector (make-char 'latin-iso8859-1))
>         'sgml-maybe-name-self)

> +     (let ((c 127)
> +       (map (nth 1 map)))
> +       (while (< (setq c (1+ c)) 256)
> +     (aset map c 'sgml-maybe-name-self)))

Aren't these two ways of doing the same thing (make-char and aset in
a loop) ?

Emacs 20 used the second form. In 21.1.1 this has been changed
to the first form and with this patch you do both.

Since the first form looks cleaner, shouldn't we try to make
it work without the user having to change the coding system for keyboard
input (or else tell the user to do C-x RET k TAB ...) ?

-- 
Felix Natter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]