snosov1 / toc-org

toc-org is an Emacs utility to have an up-to-date table of contents in the org files without exporting (useful primarily for readme files on GitHub)
GNU General Public License v3.0
287 stars 29 forks source link

"upcase-fix" question #58

Closed JAremko closed 5 years ago

JAremko commented 5 years ago

toc-org has an interesting line

(upcase-fix (replace-regexp-in-string "[A-Z]" 'downcase spc-fix t))

It makes me like this: :thinking:

Why doing (downcase "s[s]-_SS") that will output s[s]-_ss isn't sufficient?

snosov1 commented 5 years ago

Actually, I don't think it has any special purpose. All other "fixers" use replace-regexp-in-string so, I guess, I just used it mechanically without thinking too much about it.

Thanks for the note, I've replaced it with a simpler call. (I guess, it might also help non-English languages, if github can handle them).