Nicolas Goaziou
3fd361eb77
Merge branch 'maint'
2016-06-02 13:33:34 +02:00
Yasushi SHOJI
5111c3a5fa
Add tests for tag width calculation
...
* testing/lisp/test-org.el (test-org/tag-align): New test.
2016-06-02 13:31:54 +02:00
Yasushi SHOJI
361fa80eba
Fix tag width calculation for multi-column chars
...
* lisp/org.el (org-align-tags-here): Fix tag width calculation for
multi-column chars.
Some characters have multiple column width. Calculating string width
with points gives a wrong value than actual display width. Use
`string-width' instead.
Here is an ECM for this problem. `M-x org-update-statistics-cookies` or
`C-c #` on bar moves the tag on the headline.
* foo [0/0] 🔤
** child
* bar [0/0] :日本語:
** child
12345678901234567890123456789012345678901234567890123456789012345678901234567890
1 2 3 4 5 6 7 8
2016-06-02 13:31:09 +02:00
Matt Lundin
c702dd0034
Remove paragraph about obsolete variables
...
* doc/org.texi: Remove paragraph documenting now obsolete variables
`org-completion-use-ido' and `org-completion-use-iswitchb'.
2016-06-01 19:28:02 +02:00
Nicolas Goaziou
ecf20715e2
Merge branch 'maint'
2016-06-01 14:54:20 +02:00
Nicolas Goaziou
1f3d72e8b4
Fix TODO case-sensitivity in `org-get-heading'
...
* lisp/org.el (org-get-heading): Prevent removing false-positive TODO
keywords due to case-insensitivity.
* testing/lisp/test-org.el (test-org/get-heading): New test.
2016-06-01 14:49:59 +02:00
Nicolas Goaziou
319c05f1dc
Merge branch 'maint'
2016-06-01 00:44:55 +02:00
Nicolas Goaziou
a1df8cfe71
Fix case-sensitivity of TODO keywords in imenu
...
* lisp/org.el (org-imenu-get-tree): Todo keywords are case-sensitive.
Reported-by: Georgiy Tugai <georgiy.tugai@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107500 >
2016-06-01 00:43:28 +02:00
Nicolas Goaziou
ba50db8387
Merge branch 'maint'
2016-06-01 00:30:04 +02:00
Nicolas Goaziou
11d6ebc60f
Fix `org-in-regexp'
...
* lisp/org.el (org-in-regexp): Fix VISUALLY optional argument. Also
prevent useless searches past the point. Improve docstring.
* testing/lisp/test-org.el (test-org/in-regexp): New test.
2016-05-31 23:34:14 +02:00
Nicolas Goaziou
21ba5f510e
Refuse to follow link right after the link
...
* lisp/org.el (org-open-at-point):
(org-return): Refuse to follow link right after the link.
* testing/lisp/test-org.el (test-org/return): Add tests.
(test-org/coderef):
(test-org/custom-id):
(test-org/fuzzy-links): Update tests.
Reported-by: "Stefan-W. Hahn" <stefan.hahn@s-hahn.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/102054 >
2016-05-31 23:34:00 +02:00
Brian J. Carlson
3179d30683
org.texi: Updated doc for [+-]n in SRC/EXAMPLE export
...
* doc/org.texi (Timers): Added information about optional argument to
-n/+n line-numbering
* etc/ORG-NEWS: Added infomation for "Provide offset to [+-]n in
SRC/EXAMPLE export" (commit af8e3d8
)
2016-05-31 22:35:21 +02:00
Nicolas Goaziou
3d0ade9571
By default, use relative name for compilation
...
* lisp/org.el (org-compile-file): %f meant relative name of compiled
file. %F is its full name. Also always set `default-directory' to
the directory of the source.
Reported-by: Stig Brautaset <stig@brautaset.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/107348 >
2016-05-30 00:13:22 +02:00
Nicolas Goaziou
cf77060d18
Fix last commit
...
* lisp/org.el (org-edit-headline): Fix `save-match-data' scope.
`org-trim' modifies match data. `read-string' doesn't.
2016-05-30 00:02:27 +02:00
Marco Wahl
127f86bdc5
org: Fix interactive headline edit
...
* lisp/org.el (org-edit-headline): Save match-data before calling
read-string.
2016-05-28 12:01:14 +02:00
Nicolas Goaziou
f2c421d3c0
org-compat: Fix last commit
...
* lisp/org-compat.el (org-with-silent-modifications): Remove spurious
definition introduced in last commit.
2016-05-26 16:41:17 +02:00
Nicolas Goaziou
0dfb046983
org-compat: Silence byte-compiler
2016-05-26 16:29:40 +02:00
Nicolas Goaziou
bf5ebe1fdd
Silence byte-compiler in Emacs 25.1
...
* lisp/org-compat.el (org-get-x-clipboard): Use `gui-get-selection',
which obsoletes `x-get-selection'. Define the former as an alias for
the latter for backward compatibility.
2016-05-26 16:22:20 +02:00
Nicolas Goaziou
770711153d
org-macro: Use cl-lib
2016-05-26 16:16:31 +02:00
Nicolas Goaziou
6176357b47
org-table: Add missing "cl-" prefixes
...
* lisp/org-table.el (org-table--descriptor-line):
(org-table--row-type): Add "cl-" prefixes.
2016-05-26 16:12:42 +02:00
Nicolas Goaziou
f9ad16b22a
ob-core: Do not require `cl' since `cl-lib' is used
...
* lisp/ob-core.el (org-babel-merge-params):
(org-babel-noweb-p):
(org-babel--script-escape-inner): Use "cl-" prefix.
2016-05-26 16:11:06 +02:00
Nicolas Goaziou
82f834ea90
ox-icalendar: Do not require `cl' since `cl-lib' is used
...
* lisp/ox-icalendar.el (org-icalendar-get-categories):
(org-icalendar-entry):
(org-icalendar--vevent): Use "cl-" prefix.
2016-05-26 16:08:15 +02:00
Nicolas Goaziou
a169e43a77
org-table: Do not require `cl' since `cl-lib' is used
...
* lisp/org-table.el (org-table-align):
(org-table-current-column):
(org-table-current-dline):
(org-table-sort-lines):
(org-table-paste-rectangle):
(org-table-analyze):
(org-table-get-range):
(org-table--row-type):
(org-table-recalculate):
(org-table-expand-lhs-ranges):
(org-table-formula-handle-first/last-rc):
(org-table-formula-substitute-names):
(orgtbl-send-table):
(orgtbl-to-generic): Use "cl-" prefix.
2016-05-26 16:06:09 +02:00
Nicolas Goaziou
e8120fbd55
ox-beamer: Do not require `cl' since `cl-lib' is used
...
* lisp/ox-beamer.el (org-beamer--normalize-argument):
(org-beamer-link): Use "cl" prefix.
2016-05-26 15:57:11 +02:00
Nicolas Goaziou
6ac7afba6d
Merge branch 'maint'
2016-05-26 15:22:23 +02:00
Arun Isaac
ddd58ff99a
ox-rss: Encode characters to their XML entities
...
* contrib/lisp/ox-rss.el (org-rss-build-channel-info, org-rss-headline):
Encode disallowed characters in `title' to their XML entities.
The `title' field is user specified and may contain characters such as
"&", "<" or ">" that are disallowed in XML. These characters should be
encoded into their corresponding XML entities.
2016-05-26 15:21:01 +02:00
Nicolas Goaziou
0ac099a6f8
Remove final parts of XEmacs compatibility code
...
* lisp/org-compat.el: Declare `org-add-hook', `org-decompose-region',
`org-detach-overlay', `org-file-equal-p', `org-float-time',
`org-indent-line-to', `org-indent-to-column', `org-looking-at-p',
`org-looking-back', `org-propertize', `org-re' and
`org-select-frame-set-input-focus' as obsolete.
(org-overlay-display, org-overlay-before-string, org-find-overlays):
Move to "org.el"
(org-xemacs-key-equivalents, org-xemacs-p): Remove variables.
(org-region-active-p): Drop XEmacs support.
(org-xemacs-without-invisibility): Remove macro.
(org-get-x-clipboard-compat): Remove function.
* lisp/org-macs.el (org-match-string-no-properties): Remove function.
* lisp/ob-core.el:
* lisp/org-agenda.el:
* lisp/org-archive.el:
* lisp/org-clock.el:
* lisp/org-colview.el:
* lisp/org-crypt.el:
* lisp/org-element.el:
* lisp/org-faces.el:
* lisp/org-feed.el:
* lisp/org-footnote.el:
* lisp/org-habit.el:
* lisp/org-id.el:
* lisp/org-indent.el:
* lisp/org-inlinetask.el:
* lisp/org-lint.el:
* lisp/org-list.el:
* lisp/org-mouse.el:
* lisp/org-pcomplete.el:
* lisp/org-src.el:
* lisp/org-table.el:
* lisp/org-timer.el:
* lisp/org.el:
* lisp/ox-ascii.el:
* lisp/ox-odt.el:
* lisp/ox.el:
* contrib/lisp/org-notify.el:
* contrib/lisp/ox-taskjuggler.el:
* contrib/lisp/org-wikinodes.el:
* testing/lisp/test-org-src.el:
* testing/lisp/test-org.el: Silence byte-compiler.
2016-05-26 13:56:25 +02:00
Nicolas Goaziou
a54dd63e28
Remove org-colview-xemacs.el
...
* contrib/lisp/org-colview-xemacs.el: Remove file.
2016-05-26 12:16:09 +02:00
Nicolas Goaziou
4129ae6737
Remove some XEmacs compatibility layer
...
* lisp/ob-calc.el (calc-trail):
* lisp/ob-python.el (org-babel-python-mode):
* lisp/org-agenda.el (org-agenda-tags-column):
(org-agenda-show-new-time):
* lisp/org-clock.el (org-clock-update-mode-line):
(org-clock-put-overlay):
(org-clock-resolve):
* lisp/org-faces.el (org-faces):
* lisp/org-indent.el (org-indent-mode):
* lisp/org-macs.el (org-load-noerror-mustsuffix):
* lisp/org-table.el (orgtbl-setup):
* lisp/org.el (org-key):
(org-self-insert-cluster-for-undo):
(org-tags-column):
(org-emphasis-alist):
(org-mode):
(org-set-font-lock-defaults):
(org-cycle-internal-local):
(org-tree-to-indirect-buffer):
(org-set-frame-title):
(org-priority):
(org-set-tags):
(org-set-current-tags-overlay):
(org-toggle-time-stamp-overlays):
(org-display-custom-time):
(org-diary-to-ical-string):
(org--format-latex-make-overlay):
(org-dvipng-color):
(org-latex-color):
(org-mode-map):
(org-speed-commands-default):
(org-reload):
(org-display-warning):
(org-end-of-line):
* lisp/ox-man.el (org-man-inline-src-block):
* contrib/lisp/org-vm.el (org-vm-follow-link):
* contrib/lisp/ox-groff.el (org-groff-inline-src-block):
(org-groff-src-block): Remove some XEmacs compatibility layer.
2016-05-26 11:30:11 +02:00
Nicolas Goaziou
84f8c9a226
ox-latex: Use "cl-lib"
...
* lisp/ox-latex.el (org-latex--label):
(org-latex--caption/label-string):
(org-latex--find-verb-separator):
(org-latex--text-markup):
(org-latex-inline-src-block):
(org-latex-item):
(org-latex-keyword):
(org-latex--inline-image):
(org-latex-link):
(org-latex-plain-text):
(org-latex-matrices):
(org-latex--script-size):
(org-latex--align-string):
(org-latex--table.el-table):
(org-latex-timestamp): Use "cl-" prefix.
2016-05-26 11:03:11 +02:00
Nicolas Goaziou
5ac93681b2
Merge branch 'maint'
2016-05-26 10:55:00 +02:00
Nicolas Goaziou
655fb33967
org-agenda: Effectively preserve persistent bulk marks
...
* lisp/org-agenda.el (org-agenda-change-all-lines): Preserve bulk mark
overlay when replacing an entry.
Reported-by: Jesse Johnson <holocronweaver@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107299 >
2016-05-26 10:51:58 +02:00
Nicolas Goaziou
4c58ee0a4b
org-agenda: Add missing docstring
...
* lisp/org-agenda.el (org-agenda-bulk-marked-p): Add missing docstring.
2016-05-26 10:51:27 +02:00
Rasmus
9dbeaa278d
ox-latex: Fix bug introduced in 888ebfdeaf
...
* lisp/ox-latex.el (org-latex-footnote-reference): Handle anonymous
footnotes.
Reported-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
<http://permalink.gmane.org/gmane.emacs.orgmode/107381 >
2016-05-25 19:48:51 +02:00
Rasmus
888ebfdeaf
ox-latex: More robust repeated footnote references
...
* lisp/ox-latex.el (org-latex--delayed-footnotes-definitions): Fix typo
in docstring.
(org-latex-footnote-defined-format): New defcustom.
(org-latex-footnote-reference): Refer to repeated footnotes using
labels. Format using new defcustom.
* etc/ORG-NEWS: Mention change.
* doc/org.texi (Publishing options): Add new defcustom.
2016-05-25 09:14:52 +02:00
Rasmus
21fa7efa99
ox-org: Add footnote prefix
...
* lisp/ox-org.el (org-org-section): Add mandatory "fn" prefix to
footnotes.
Reported-by: Nick Dokos <ndokos@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107366 >
2016-05-25 08:51:13 +02:00
Feng Shu
2a8a8b3109
Fix typo
...
* org.el (org-preview-latex-process-alist): Fix typo in docstring.
2016-05-24 22:23:23 +02:00
Nicolas Goaziou
96cfef229d
ox: Small refactoring
...
* lisp/ox.el (org-export-get-loc): Refactor code. Speed-up processing
when the element doesn't require line numbering.
* testing/lisp/test-ox.el (test-org-gen-loc-list): Reformat code.
2016-05-24 21:40:43 +02:00
Brian Carlson
af8e3d84ee
ox: Provide offset to [+-]n in SRC/EXAMPLE export
...
* lisp/org-element.el (org-element-example-block-parser): Use cons cell
for :number-lines specifying offset in addition to type (new/continue).
('continue . offset) for :number-lines will add this offset count to
the last line number. ('new . offset) for :number-lines will reset the
line number counting starting at offset
(org-element-src-block-parser): same for SRC block as EXAMPLE block
* lisp/ox-html.el (org-html-format-code):
* lisp/ox-latex.el (org-latex-src-block):
* lisp/ox-odt.el (org-odt-format-code):
* lisp/ox.el (org-export-resolve-coderef):
(org-export-get-loc):
(org-export-format-code-default):
* contrib/lisp/ox-groff.el (org-groff-src-block): Use new cons cell
for :number-lines.
* testing/lisp/test-ox.el (ert-deftest test-org-export/get-loc): Tests for
changes
(test-org-gen-loc-list): Helper function for `test-org-export/get-loc'.
2016-05-24 21:40:35 +02:00
Feng Shu
6826ccdebc
Latex previewing: imagemagick use pdflatex by default
...
* org.el (org-preview-latex-process-alist): Use "pdflatex" instead of
"latex".
2016-05-24 19:27:29 +02:00
Trevor Murphy
c20f51ccc0
Place `org-clock-heading' outside clock time
...
* org-clock.el (org-clock-get-clock-string): When `org-clock-effort'
is nil, arrange the format string components separately, similar to
how they are arranged when o-c-e is not-nil.
2016-05-23 22:46:54 +02:00
Rasmus
9488d13094
Merge branch 'maint' of orgmode.org:org-mode into maint
2016-05-23 09:06:56 +02:00
Rasmus
58f5def625
ox-latex.el: Format-spec checks Polyglossia
...
* ox-latex.el (org-latex--format-spec): Also check Polyglossia language.
2016-05-23 09:00:54 +02:00
Rasmus
42bc27b473
Merge branch 'maint'
2016-05-23 08:59:29 +02:00
Rasmus
8c968a9697
ox-latex: Detect languages irrespective of case
...
* ox-latex.el (org-latex-guess-babel-language):
* ox-latex.el (org-latex--format-spec): Detect languages correctly
irrespective of case.
2016-05-23 08:45:54 +02:00
Nicolas Goaziou
3c729c7c0b
Merge branch 'maint'
2016-05-23 01:20:17 +02:00
Nicolas Goaziou
6105643903
org-table: Fix 4914f89
...
* lisp/org-table.el (orgtbl-setup): Fix improper key binding
specification.
Reported-by: Alex <agrambot@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107287 >
2016-05-23 01:19:29 +02:00
Nicolas Goaziou
dba7652445
Merge branch 'maint'
2016-05-23 01:17:23 +02:00
Nicolas Goaziou
f311921ad3
org-list: Fix `org-list-send-list' in LaTeX buffers
...
* lisp/org-list.el (org-list-send-list): Find correct translator.
Reported-by: Charles Millar <millarc@verizon.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/107290 >
2016-05-23 01:12:51 +02:00
Rasmus
9a7bf6d649
Merge branch 'maint'
2016-05-22 15:31:27 +02:00