org-mode/lisp
Nicolas Goaziou 55d3dfaaf8 org-macs: Fix indentation for full-width characters
* lisp/org-macs.el (org-do-remove-indentation): Handle full-width characters.

When the least indented line in buffer begins from fullwidth character
like 'あ', a Japanese character, `org-do-remove-indentation' doesn't
remove indentation at all or removes improperly.

e.g. 'あ' with 2 spaces indent

-----[buffer begin]-----
  あ
-----[buffer   end]-----
`org-do-remove-indentation' does nothing in this buffer.

Expected result is:
-----[buffer begin]-----
あ
-----[buffer   end]-----

Reported-by: Yuichiro Hakozaki <sankaku.git@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2019-09/msg00075.html>
2019-09-16 18:42:59 +02:00
..
Makefile Move link-related core functions out of "org.el" 2019-03-10 18:00:27 +01:00
ob-C.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-J.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-R.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-abc.el Backport commit 8832cc5f9 from Emacs 2019-03-17 22:52:48 -04:00
ob-asymptote.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-awk.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-calc.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-clojure.el ob-clojure: Don't tangle with auto prepend ns statement 2019-01-21 21:17:47 +01:00
ob-comint.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-coq.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-core.el Fix tangling bug when major mode for LANGUAGE is not `LANGUAGE-mode' 2019-08-30 23:36:00 +02:00
ob-css.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-ditaa.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-dot.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-ebnf.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-emacs-lisp.el ob-emacs-lisp: Set `lexical-binding' in edit buffers 2019-03-14 15:41:11 +01:00
ob-eshell.el ob-eshell: Silence byte-compiler 2018-10-03 18:44:34 +02:00
ob-eval.el Backport commit 662bee7d7 from Emacs 2019-01-13 12:43:04 -05:00
ob-exp.el Merge branch 'maint' 2019-08-18 17:44:08 -04:00
ob-forth.el Backport commit 8832cc5f9 from Emacs 2019-03-17 22:52:48 -04:00
ob-fortran.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-gnuplot.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-groovy.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-haskell.el Backport commit a5b796a87 from Emacs 2019-08-17 09:45:22 -04:00
ob-hledger.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-io.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-java.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-js.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-latex.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-ledger.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-lilypond.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-lisp.el ob-lisp: Strip quotes from result value 2019-09-16 18:38:16 +02:00
ob-lob.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-lua.el ob-lua: Fix multi-line :var input 2019-01-30 23:42:32 +01:00
ob-makefile.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-matlab.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-maxima.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-mscgen.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-ocaml.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-octave.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-org.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-perl.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-picolisp.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-plantuml.el ob-plantuml: Allow different @start-/@end clauses 2019-08-17 14:26:26 +02:00
ob-processing.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-python.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-ref.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-ruby.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-sass.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-scheme.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-screen.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-sed.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-shell.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-shen.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-sql.el ob-sql: Silence byte-compiler 2019-04-16 21:53:15 +02:00
ob-sqlite.el Move `org-fill-template' into "org-macs.el" 2019-03-10 18:00:36 +01:00
ob-stan.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-table.el Update copyright year 2019-01-01 11:50:56 +01:00
ob-tangle.el Fix tangling bug when major mode for LANGUAGE is not `LANGUAGE-mode' 2019-08-30 23:36:00 +02:00
ob-vala.el Update copyright year 2019-01-01 11:50:56 +01:00
ob.el Merge branch 'maint' 2019-01-01 11:54:01 +01:00
ol-bbdb.el Prefix link-related libraries filenames with "ol" 2019-03-10 18:00:36 +01:00
ol-bibtex.el Prefix link-related libraries filenames with "ol" 2019-03-10 18:00:36 +01:00
ol-docview.el Prefix link-related libraries filenames with "ol" 2019-03-10 18:00:36 +01:00
ol-eshell.el Fix org-store-link for eshell 2019-08-22 19:11:04 +02:00
ol-eww.el Prefix link-related libraries filenames with "ol" 2019-03-10 18:00:36 +01:00
ol-gnus.el Merge branch 'maint' 2019-07-23 23:25:05 -04:00
ol-info.el Prefix link-related libraries filenames with "ol" 2019-03-10 18:00:36 +01:00
ol-irc.el Prefix link-related libraries filenames with "ol" 2019-03-10 18:00:36 +01:00
ol-mhe.el Merge branch 'maint' 2019-03-17 22:56:24 -04:00
ol-rmail.el Prefix link-related libraries filenames with "ol" 2019-03-10 18:00:36 +01:00
ol-w3m.el Prefix link-related libraries filenames with "ol" 2019-03-10 18:00:36 +01:00
ol.el ol: Allow [[\\\\]] links 2019-08-20 14:24:38 +02:00
org-agenda.el Bug fix in tags filter: Treat SPC selection correctly. 2019-09-07 15:04:03 +02:00
org-archive.el Use `org-flag-subtree' instead of `outline-hide-subtree' 2019-05-11 09:48:53 +02:00
org-attach-git.el org-attach-git: Silence byte-compiler 2019-09-08 11:41:53 -04:00
org-attach.el org-attach, test-org-attach: Restore fs check in org-attach-dir 2019-09-02 23:15:13 +02:00
org-capture.el Merge branch 'maint' 2019-08-18 17:44:08 -04:00
org-clock.el org-clock: Add an option to not show the file column in clock report 2019-09-05 18:56:28 +02:00
org-colview.el Merge branch 'maint' 2019-08-18 17:44:08 -04:00
org-compat.el Merge branch 'maint' 2019-08-18 17:44:08 -04:00
org-crypt.el Use `org-flag-subtree' instead of `outline-hide-subtree' 2019-05-11 09:48:53 +02:00
org-ctags.el Backport commit 20b858ef1 from Emacs 2019-01-13 12:43:04 -05:00
org-datetree.el Backport commit e14c0d748 from Emacs 2019-03-24 20:39:52 -04:00
org-duration.el Backport commit 476066e89 from Emacs 2019-03-03 22:49:42 -05:00
org-element.el Merge branch 'maint' 2019-08-18 17:44:08 -04:00
org-entities.el Update copyright year 2019-01-01 11:50:56 +01:00
org-faces.el Compactify the modeline display of filters 2019-08-29 11:38:14 +02:00
org-feed.el Use `org-flag-subtree' instead of `outline-hide-subtree' 2019-05-11 09:48:53 +02:00
org-footnote.el Move link-related core functions out of "org.el" 2019-03-10 18:00:27 +01:00
org-goto.el org-goto: Remove jump to point-min at every start of search 2019-02-09 16:06:06 +01:00
org-habit.el Merge branch 'maint' 2019-08-18 17:44:08 -04:00
org-id.el org-id: Add decimals to ISO 8601 timestamp when used as ID 2019-09-01 14:48:16 +02:00
org-indent.el Port more time-related changes 2019-08-18 17:37:51 -04:00
org-inlinetask.el org-inlinetask: remove unused function 2019-03-14 23:41:20 +01:00
org-install.el org-install.el: Do not warn users. 2013-01-22 14:08:39 +01:00
org-keys.el Do not pollute `narrow-map' keymap 2019-08-23 10:38:43 +02:00
org-lint.el Merge branch 'maint' 2019-03-14 18:12:08 +01:00
org-list.el Merge branch 'maint' 2019-07-09 11:57:21 +02:00
org-macro.el Merge branch 'maint' 2019-04-29 20:49:09 +02:00
org-macs.el org-macs: Fix indentation for full-width characters 2019-09-16 18:42:59 +02:00
org-mobile.el Merge branch 'maint' 2019-07-14 11:14:54 -04:00
org-mouse.el Backport commit 3c94c7bc0 and db9c924d3 from Emacs 2019-03-17 22:52:27 -04:00
org-num.el org-num: Add missing :package-version keywords 2019-02-05 09:19:56 +01:00
org-pcomplete.el org-clock: Add an option to not show the file column in clock report 2019-09-05 18:56:28 +02:00
org-plot.el Backport commit 3c94c7bc0 and db9c924d3 from Emacs 2019-03-17 22:52:27 -04:00
org-protocol.el Merge branch 'maint' 2019-03-17 22:56:24 -04:00
org-src.el Add split-window-right option for editing source blocks 2019-08-17 15:26:32 +02:00
org-table.el Merge branch 'maint' 2019-08-25 11:51:12 -04:00
org-tempo.el Update copyright year 2019-01-01 11:50:56 +01:00
org-timer.el Merge branch 'maint' 2019-08-18 17:44:08 -04:00
org.el Fontify drawers correctly. 2019-09-05 18:53:26 +02:00
ox-ascii.el Add :target option for the TOC keyword 2019-05-30 15:25:46 +02:00
ox-beamer.el ox-beamer: Export overlay specification for notes 2019-01-26 18:23:42 +01:00
ox-html.el org-attach*, org, org-manual, org-news, ox-html, testing/* 2019-07-07 19:55:49 +02:00
ox-icalendar.el ox-icalendar: Allow ignoring done scheduled or deadlines tasks 2019-09-05 21:54:50 +02:00
ox-latex.el Merge branch 'maint' 2019-09-05 15:06:08 +02:00
ox-man.el Update copyright year 2019-01-01 11:50:56 +01:00
ox-md.el ox-md: Silence byte compiler 2019-06-05 18:34:38 +02:00
ox-odt.el Add :target option for the TOC keyword 2019-05-30 15:25:46 +02:00
ox-org.el Update copyright year 2019-01-01 11:50:56 +01:00
ox-publish.el Merge branch 'maint' 2019-06-09 21:39:18 -04:00
ox-texinfo.el ox-texinfo: Support lettered lists 2019-03-13 15:38:43 +01:00
ox.el Merge branch 'maint' 2019-07-09 12:43:29 +02:00