[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Escaping a string for substitute-command-keys
From: |
Eli Zaretskii |
Subject: |
Re: Escaping a string for substitute-command-keys |
Date: |
Thu, 03 Oct 2019 20:21:58 +0300 |
> Cc: address@hidden
> From: Clément Pit-Claudel <address@hidden>
> Date: Thu, 3 Oct 2019 12:46:50 -0400
>
> > If I understand what you are looking for, the answer is in the manual:
> > quote any character with \= (in a Lisp string, that's "\\=", of
> > course). See the node "Keys in Documentation" in the ELisp manual.
>
> I saw that part in the manual, but I was looking for a function that would do
> that. Is there an easy way to tell what needs escaping, or should I just
> escape all `, ', and \? (and if so, should we add a function that does that
> to subr-x.el or somewhere similar?)
Is the problem only with quotes? Or also with other characters?
I don't think we have a general solution, but yes, escaping every
character that makes trouble would be one way.
- Escaping a string for substitute-command-keys, Clément Pit-Claudel, 2019/10/03
- Re: Escaping a string for substitute-command-keys, Eli Zaretskii, 2019/10/03
- Re: Escaping a string for substitute-command-keys, Clément Pit-Claudel, 2019/10/03
- Re: Escaping a string for substitute-command-keys,
Eli Zaretskii <=
- Re: Escaping a string for substitute-command-keys, Clément Pit-Claudel, 2019/10/03
- Re: Escaping a string for substitute-command-keys, Eli Zaretskii, 2019/10/03
- Re: Escaping a string for substitute-command-keys, Clément Pit-Claudel, 2019/10/04
- Re: Escaping a string for substitute-command-keys, Eli Zaretskii, 2019/10/04
- Re: Escaping a string for substitute-command-keys, Clément Pit-Claudel, 2019/10/05
- Re: Escaping a string for substitute-command-keys, Eli Zaretskii, 2019/10/05
- Re: Escaping a string for substitute-command-keys, Stefan Monnier, 2019/10/05
- Re: Escaping a string for substitute-command-keys, Eli Zaretskii, 2019/10/05
- Re: Escaping a string for substitute-command-keys, Clément Pit-Claudel, 2019/10/05
- Re: Escaping a string for substitute-command-keys, Eli Zaretskii, 2019/10/05