GNU bug report logs - #24709
26.0.50; Support for Markdown in electric-quote-mode

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Sun, 16 Oct 2016 17:22:02 UTC

Severity: wishlist

Found in version 26.0.50

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

Bug is archived. No further changes may be made.

Full log


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

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: 24709 <at> debbugs.gnu.org
Subject: Re: bug#24709: 26.0.50; Support for Markdown in electric-quote-mode
Date: Sun, 02 Jul 2017 15:49:13 +0000
[Message part 1 (text/plain, inline)]
Philipp Stephani <p.stephani2 <at> gmail.com> schrieb am Mi., 28. Juni 2017 um
23:59 Uhr:

> Philipp Stephani <p.stephani2 <at> gmail.com> schrieb am So., 16. Okt. 2016 um
> 19:22 Uhr:
>
>>
>> When editing a Markdown document with electric-quote-mode enabled, the
>> experience is not optimal because ` (backtick) in Markdown is a syntax
>> element (for introducing code spans and blocks), but is converted by
>> electric-quote-mode.  Also ` and ' inside code spans and blocks continue
>> to insert curly quotes where they shouldn't.  I propose the following:
>>
>> - Provide an alternative behavior of electric-quote-mode where ` doesn't
>>   trigger replacement and ' can insert left or right curly quotes,
>>   depending on whether it follows a space or similar (newline, beginning
>>   of buffer, opening parenthesis).
>>
>> - Provide a way to disable electric-quote-mode for certain regions,
>>   effectively the inverse of the existing electric-quote-string etc.
>>   This could be in the form of syntactic elements or text properties.
>>
>>
>>
> I've attached a patch. It doesn't cover all cases, though; e.g. an
> unterminated Markdown code span is not supported yet.
>

Pushed as 34d4720f83.
[Message part 2 (text/html, inline)]

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

Previous Next


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