Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

julia-mode: incorrect indent with unicode #12527

Closed
yuyichao opened this issue Aug 9, 2015 · 5 comments
Closed

julia-mode: incorrect indent with unicode #12527

yuyichao opened this issue Aug 9, 2015 · 5 comments

Comments

@yuyichao
Copy link
Contributor

yuyichao commented Aug 9, 2015

Seems that the width of a unicode character is not calculated correctly. See below.

α(1,
   1)

indent

@dfannius
Copy link
Contributor

dfannius commented Aug 9, 2015

I can't duplicate this on Emacs 24.5.1 (OS X) with the latest julia-mode (2015-07-15). The two 1s are both aligned with each other when I hit Tab on the second line to indent it. I'm not sure what else might be different in our two environments.

@yuyichao
Copy link
Contributor Author

yuyichao commented Aug 9, 2015

Thanks for the data point. As mentioned in #12528, this is ArchLinux Emacs 24.5. I'll check this one with a clean setup later.

@stevengj
Copy link
Member

Note that there is a lot of variation in charwidth calculations between systems (see #3721).

@yuyichao
Copy link
Contributor Author

Yeah, I checked with other modes (c++, python) and it seems that both of them have the same issue so I guess it is not a julia-mode issue rather an issue for emacs (or whatever other settings I have).

@tkelman
Copy link
Contributor

tkelman commented Aug 10, 2015

glibc's charwidth tables, probably. Unless you want to try patching emacs to use utf8proc instead :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants