How to set py-separator-char?

Asked by Richard Stanton

Using r927, I've set py-separator-char to the value "/" in my init.el.

However, this doesn't work because in the *function* py-separator-char, (characterp py-separator-char) on line 6603 returns nil, not t, so the next statement is not executed.

How is the variable py-separator-char supposed to be set properly?

Question information

Language:
English Edit question
Status:
Answered
For:
python-mode.el Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andreas Roehler (a-roehler) said :
#1

Am 08.04.2012 06:30, schrieb Richard Stanton:
> New question #192973 on python-mode.el:
> https://answers.launchpad.net/python-mode/+question/192973
>
> Using r927, I've set py-separator-char to the value "/" in my init.el.
>
> However, this doesn't work because in the *function* py-separator-char, (characterp py-separator-char) on line 6603 returns nil, not t, so the next statement is not executed.
>
> How is the variable py-separator-char supposed to be set properly?
>

M-x customize-variable RET py-separator-char

should direct you into a menu where you might fill in the char as shown attached.

Revision history for this message
Richard Stanton (a-stanton) said :
#2

> > How is the variable py-separator-char supposed to be set properly?

> M-x customize-variable RET py-separator-char

That's how I did it. In the space available, I typed "/" (without the quotes), and that's what caused problems. It gets the separator right if I set py-separator-char to 47 instead (the output of (string-to-char "/"), but it seems like it's a lot easier for users just to type "/".

Revision history for this message
Andreas Roehler (a-roehler) said :
#3

Am 08.04.2012 08:30, schrieb Richard Stanton:
> Question #192973 on python-mode.el changed:
> https://answers.launchpad.net/python-mode/+question/192973
>
> Status: Answered => Open
>
> Richard Stanton is still having a problem:
>>> How is the variable py-separator-char supposed to be set properly?
>
>> M-x customize-variable RET py-separator-char
>
> That's how I did it. In the space available, I typed "/" (without the
> quotes), and that's what caused problems.

If it doesn't work, need a bug report

  It gets the separator right if
> I set py-separator-char to 47 instead (the output of (string-to-char
> "/"), but it seems like it's a lot easier for users just to type "/".
>

Agree a string it's easier to read. We got a bug from that however, which I don't see now.

Willing to change though with purpose of legibility if possible though - just happy it works for the moment.

Revision history for this message
Andreas Roehler (a-roehler) said :
#4

Can you help with this problem?

Provide an answer of your own, or ask Richard Stanton for more information if necessary.

To post a message you must log in.