org-mode/lisp
Yasushi SHOJI b7c1014353 ox-ascii: Convert `length' to `string-width'
* lisp/ox-ascii.el (org-ascii--current-text-width): Convert `length'
  to `string-width'.
  (org-ascii--build-title, org-ascii--build-toc)
  (org-ascii--list-listings, org-ascii--list-tables)
  (org-ascii-template--document-title)
  (org-ascii-inner-template, org-ascii-format-inlinetask-default)
  (org-ascii-format-inlinetask-default, org-ascii-item
  (org-ascii--table-cell-width, org-ascii-table-cell)
  (org-ascii--current-text-width): Likewise.

I've checked all occurrences of the function `length' in ox-ascii.el.
It turns out that the most of them are calculating the width of given
string.  To support fullwidth characters, we better use `string-width'
instead of `length'.

Some characters in UCS are categorized as "East Asian Ambiguous"[1].
The return value of `string-width' with those characters depends on
how Emacs is setup.  We leave those ambiguous character handling to
Emacs.

Two usages of `length' in `ox-ascii.el' were left as-is, because those
were used for:

 - bullet depth calculation in `org-ascii-headline', and
 - cell position calculation in `org-ascii--table-cell-width'.

[1]: http://www.unicode.org/reports/tr11/#Ambiguous
2014-01-16 16:17:48 +01:00
..
Makefile Makefile (clean-install): Also remove ox*.el* files 2013-04-18 14:43:45 +02:00
ob-C.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-R.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-asymptote.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-awk.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-calc.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-clojure.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-comint.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-core.el ob-core: Speed improvement 2014-01-09 21:36:25 +01:00
ob-css.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-ditaa.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-dot.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-emacs-lisp.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-eval.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-exp.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-fortran.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-gnuplot.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-haskell.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-io.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-java.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-js.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-keys.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-latex.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-ledger.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-lilypond.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-lisp.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-lob.el Update copyright year for files changed since 2013 2014-01-05 06:35:21 +01:00
ob-makefile.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-matlab.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-maxima.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-mscgen.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-ocaml.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-octave.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-org.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-perl.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-picolisp.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-plantuml.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-python.el ob-python.el (org-babel-python-var-to-python): Bugfix 2014-01-13 00:25:25 +01:00
ob-ref.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-ruby.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-sass.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-scala.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-scheme.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-screen.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-sh.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-shen.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-sql.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-sqlite.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-table.el ob-table.el (org-sbe): Rename from `sbe' 2014-01-12 12:02:25 +01:00
ob-tangle.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-agenda.el Fix bf0649 2014-01-16 00:53:28 +01:00
org-archive.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-attach.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-bbdb.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-bibtex.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-capture.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-clock.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-colview.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-compat.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-crypt.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-ctags.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-datetree.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-docview.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-element.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-entities.el Backport Emacs trunk revno r116039 2014-01-16 11:57:45 +01:00
org-eshell.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-faces.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-feed.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-footnote.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-gnus.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-habit.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-id.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-indent.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-info.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-inlinetask.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-install.el org-install.el: Do not warn users. 2013-01-22 14:08:39 +01:00
org-irc.el Backport typo fixes from Emacs revno r115923 2014-01-09 00:47:40 +01:00
org-list.el Backport typo fixes from Emacs revno 115988 2014-01-12 09:54:21 +01:00
org-macro.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-macs.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-mhe.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-mobile.el Delete :grouptags from tags list when creating org-mobile index file 2014-01-13 00:27:50 +01:00
org-mouse.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-pcomplete.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-plot.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-protocol.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-rmail.el Update copyright year for files changed since 2013 2014-01-05 06:35:21 +01:00
org-src.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-table.el Fix multiple TBLFM 2014-01-09 20:10:19 +01:00
org-timer.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-w3m.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org.el Fix ff902c 2014-01-16 12:07:27 +01:00
ox-ascii.el ox-ascii: Convert `length' to `string-width' 2014-01-16 16:17:48 +01:00
ox-beamer.el ox-beamer: Fix bug when an selecting environment 2014-01-07 21:50:44 +01:00
ox-html.el Update copyright year for files changed since 2013 2014-01-05 06:35:21 +01:00
ox-icalendar.el Update copyright year for files changed since 2013 2014-01-05 06:35:21 +01:00
ox-latex.el ox-latex: Fix items starting with a square bracket 2014-01-16 15:49:34 +01:00
ox-man.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ox-md.el ox-md: Prevent error with empty items 2014-01-08 22:47:10 +01:00
ox-odt.el Update copyright year for files changed since 2013 2014-01-05 06:35:21 +01:00
ox-org.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ox-publish.el Update copyright year for files changed since 2013 2014-01-05 06:35:21 +01:00
ox-texinfo.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ox.el Backport typo fixes from Emacs revno 115988 2014-01-12 09:54:21 +01:00