Ihor Radchenko writes: > Ruijie Yu writes: > >>> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63029 >> >> From my understanding of Eli's response, org-colview is at fault here, by >> calling `length' instead of `string-width' in >> `org-columns-add-ellipses'. Changing this function call might be all it >> needs to fix the colview test failure? > > This is tricky because string width may be different depending on > in-buffer settings, fonts used, etc. > > We can try to be a tiny little bit more accurate using > `truncate-string-to-width', `string-width', or `org-string-width'. Just had a try at this, fully untested code (other than starting a LANG=zh_CN.UTF-8 Emacs session and running this substring function to see its effects). It is a bit too late for me now, so I'll call it a day (literally) for coding today.