GNU bug report logs - #24759
25.1.50; electric-quote-mode

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Fri, 21 Oct 2016 19:39:02 UTC

Severity: minor

Found in version 25.1.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 24759 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Paul Eggert <eggert <at> cs.ucla.edu>, 24759 <at> debbugs.gnu.org
Subject: Re: bug#24759: 25.1.50; electric-quote-mode
Date: Fri, 21 Oct 2016 22:26:13 +0200
> I guess your buffer-file-coding-system is neither 'undecided' nor
> anything that can encode the curved quotes.  Try
>
>   C-x RET f utf-8 RET
>
> and then type the above again.

Your guess is right.  After doing the above, the electric quote
conversion works.

> Paul, I think this condition:
>
>   (defun electric--insertable-p (string)
>     (or (not buffer-file-coding-system)
>         (eq (coding-system-base buffer-file-coding-system) 'undecided)
>         (not (unencodable-char-position nil nil buffer-file-coding-system
>                                         nil string))))
>
> should also accept a coding-system that is the default-value of
> buffer-file-coding-system, because that's how buffers are created.
> When the file is saved, Emacs will ask for a proper encoding, which is
> not a catastrophe.

I have no opinion on that but I think that, if this minor mode isn't
going to work with every possible buffer-file-coding-system, that
limitation should be explained somehow in the *Help* text of the minor
mode, to avoid confusing some users.

Thanks.

-- 
Dani Moncayo




This bug report was last modified 8 years and 271 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.