Rasmus
81af689d0f
org-src: Src-blocks also inherit org-block face
...
* lisp/org-src.el (org-src-font-lock-fontify-block): Inherit org-block
face in addition to language specific faces.
* etc/ORG-NEWS: Add entry.
2016-06-09 16:18:17 +02:00
Marco Wahl
7f773f15d4
Merge remote-tracking branch 'origin/master'
2016-06-09 10:08:20 +02:00
Marco Wahl
7e57cf5d40
org: Fix tags extraction
...
* lisp/org.el (org-get-tags-at): Use non-greedy match up to colon to
match all tags (and not just the last.)
* testing/lisp/test-org.el (test-org/tags-at): One test to cover the
issue.
2016-06-09 10:06:14 +02:00
Marco Wahl
7989ebfb6e
org: Fix tags extraction
...
* lisp/org.el (org-get-tags-at): Use non-greedy match up to colon to
match all tags (and not just the last.)
2016-06-09 09:39:38 +02:00
Nicolas Goaziou
f94df5456f
ox-texinfo: Add support for strike-through and underline markup
...
* lisp/ox-texinfo.el (texinfo): Add transcoders.
(org-texinfo-text-markup-alist): Allow `strike-though' and `underline'
as keys. Remove unused `comment'.
(org-texinfo-strike-through):
(org-texinfo-underline): New functions.
By default, new markup produce no Texinfo code, but can be customized by
users for specific uses.
2016-06-04 22:40:21 +02:00
Nicolas Goaziou
6daad64277
org-compat: Silence byte-compiler
2016-06-04 22:09:15 +02:00
Nicolas Goaziou
480d3523bc
org-element: Fix failing test
...
* testing/lisp/test-org-element.el (test-org-element/link-parser): Fix
failing test. The bug was introduced in 827413e
.
2016-06-04 21:48:02 +02:00
Nicolas Goaziou
2c70283641
org-colview: Fix docstrings
...
* lisp/org-colview.el (org-columns--summary-min-age):
(org-columns--summary-max-age):
(org-columns--summary-mean-age): Fix argument name in docstrings.
2016-06-04 21:29:27 +02:00
Nicolas Goaziou
daa11e13de
Fix a test
2016-06-04 21:27:55 +02:00
Nicolas Goaziou
827413ef2f
Silence byte-compiler in "testing/"
2016-06-04 21:12:30 +02:00
Nicolas Goaziou
2e04db63ea
Merge branch 'maint'
2016-06-04 20:53:54 +02:00
Don March
bd49486db9
Make today's deadlines "close" without lead time
...
* lisp/org.el (org-deadline-close): A timestamp is close if the days
between now and the timestamp are less then or equal to the days of
lead time.
* testing/lisp/test-org.el: Add tests for org-deadline-close.
2016-06-04 20:45:41 +02:00
Don March
42620c1efa
Rename org-deadline-is-close to have -p suffix
...
* lisp/org-agenda.el
(org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item):
* lisp/org.el (org-deadline-close): Rename to...
(org-deadline-close-p): ...this.
* testing/lisp/test-org.el (test-org/deadline-close): Rename to...
(test-org/deadline-close-p): ...this.
2016-06-04 20:39:15 +02:00
Don March
43b5ca1626
Make today's deadlines "close" without lead time
...
* lisp/org.el (org-deadline-close): A timestamp is close if the days
between now and the timestamp are less then or equal to the days of
lead time.
* testing/lisp/test-org.el: Add tests for org-deadline-close.
2016-06-04 20:39:15 +02:00
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