Bastien Guerry
98cd4687a2
Update copyright years.
...
Happy new year!
2013-01-01 16:04:24 +01:00
Bastien Guerry
e4c31cf98b
Use generated-autoload-file: "org-loaddefs.el" as a local variable.
2012-10-02 08:50:46 +02:00
Bastien Guerry
70dd1196d2
Massive code clean-up.
...
Delete trailing whitespaces.
Indent all sexps correctly.
Sentences end with double spaces.
2012-08-11 19:10:44 +02:00
Matt Lundin
d59762b6fa
Don't call org-footnote-unique label if using random labels
...
* lisp/org-footnote.el (org-footnote-new): Don't call
org-footnote-unique-label if org-footnote-auto-label is set to
random.
Calling org-footnote-unique-label calls org-footnote-all-labels, which
can dramatically slow down footnote creation in a buffer with many
footnotes. This is unecessary if org-footnote-auto-label is set to
random.
2012-05-06 10:10:25 +02:00
Bastien Guerry
1c203d8d19
Match #+name/#+tblname/#+tblfm along with uppercase twins.
...
* org.el: Use (case-fold-search t).
(org-edit-special, org-ctrl-c-ctrl-c): Ditto.
* org-table.el:
(org-table-store-formulas, org-table-get-stored-formulas)
(org-table-fix-formulas, org-table-edit-formulas)
(org-old-auto-fill-inhibit-regexp, orgtbl-ctrl-c-ctrl-c)
(orgtbl-toggle-comment, org-table-get-remote-range): Ditto.
* org-footnote.el:
(org-footnote-goto-local-insertion-point): Ditto.
* org-exp.el: Ditto.
* org-colview.el:
(org-dblock-write:columnview, org-dblock-write:columnview):
Ditto.
* org-colview-xemacs.el:
(org-dblock-write:columnview): Ditto.
* org-clock.el (org-clocktable-write-default): Ditto.
* org-capture.el (org-capture-place-table-line): Ditto.
* ob.el (org-babel-data-names, org-babel-goto-named-src-block)
(org-babel-src-block-names)
(org-babel-where-is-src-block-result, org-babel-result-end)
(org-babel-where-is-src-block-head)
(org-babel-find-named-result, org-babel-result-names): Ditto.
2012-04-23 12:48:33 +02:00
Bastien Guerry
d5c0af72cf
Use (derived-mode-p 'org-mode) instead of (eq major-mode 'org-mode).
...
* org.el (org-show-hierarchy-above, org-cycle)
(org-global-cycle, org-files-list, org-store-link)
(org-link-search, org-open-file, org-display-outline-path)
(org-refile-get-location, org-update-all-dblocks)
(org-change-tag-in-region, org-entry-properties)
(org-save-all-org-buffers, org-revert-all-org-buffers)
(org-buffer-list, org-cdlatex-mode)
(org-install-agenda-files-menu, org-end-of-subtree)
(org-speedbar-set-agenda-restriction): Use (derived-mode-p
'org-mode) instead of (eq major-mode 'org-mode).
* org-timer.el (org-timer-set-timer): Ditto.
* org-table.el (orgtbl-mode, org-table-align, orgtbl-mode): Ditto.
* org-src.el (org-edit-src-exit, org-edit-src-code)
(org-edit-fixed-width-region, org-edit-src-exit): Ditto.
* org-remember.el (org-remember-handler): Ditto.
* org-mouse.el (dnd-open-file, org-mouse-insert-item): Ditto.
* org-macs.el (org-get-limited-outline-regexp): Ditto.
* org-lparse.el (org-replace-region-by): Ditto.
* org-latex.el (org-latex-to-pdf-process)
(org-replace-region-by-latex): Ditto.
* org-indent.el (org-indent-indent-buffer): Ditto.
* org-id.el (org-id-store-link, org-id-update-id-locations)
(org-id-store-link): Ditto.
* org-html.el (org-export-html-preprocess)
(org-replace-region-by-html): Ditto.
* org-footnote.el (org-footnote-normalize)
(org-footnote-goto-definition)
(org-footnote-create-definition, org-footnote-normalize): Ditto.
* org-docbook.el (org-replace-region-by-docbook): Ditto.
* org-ctags.el (find-tag): Ditto.
* org-colview.el (org-columns-redo)
(org-columns-display-here, org-columns-edit-value)
(org-columns-redo): Ditto.
* org-colview-xemacs.el (org-columns-redo)
(org-columns-display-here, org-columns-edit-value)
(org-columns-redo): Ditto.
* org-capture.el (org-capture-insert-template-here)
(org-capture, org-capture-finalize)
(org-capture-set-target-location)
(org-capture-insert-template-here): Ditto.
* org-ascii.el (org-replace-region-by-ascii): Ditto.
* org-archive.el (org-archive-subtree): Ditto.
* org-agenda.el (org-agenda)
(org-agenda-get-restriction-and-command)
(org-agenda-get-some-entry-text, org-search-view)
(org-tags-view, org-agenda-get-day-entries)
(org-agenda-format-item, org-agenda-goto, org-agenda-kill)
(org-agenda-archive-with, org-agenda-switch-to): Ditto.
2012-04-21 00:43:16 +02:00
Nicolas Goaziou
d17761a05a
Merge branch 'hotfix'
2012-04-20 11:16:33 +02:00
Nicolas Goaziou
8b18c50d4c
org-footnote: Fix positionning in HTML export without a footnote section
...
* lisp/org-footnote.el (org-footnote-normalize): Fix positionning in
HTML export without a footnote section.
2012-04-20 11:12:44 +02:00
Bastien Guerry
14e4d7ece9
Merge branch 'hotfix'
2012-04-09 12:47:58 +02:00
Mike Sperber
8dda2fc1ee
Fix bug ion `org-footnote-normalize'.
...
* org-footnote.el (org-footnote-normalize): Correctly pass keyword
arguments to `org-export-preprocess-string'.
TINYCHANGE
2012-04-09 12:47:44 +02:00
Nicolas Goaziou
d6faea24d4
org-footnote: Fix bug related to sorting and folded view
...
* lisp/org-footnote.el (org-footnote-delete-definitions): Remove blank
lines before the footnote definition instead of removing those after
it.
* testing/lisp/test-org-footnote.el: Adapt tests.
2012-04-08 12:01:57 +02:00
Nicolas Goaziou
4019559ee2
org-footnote: Don't grab trailing blank lines in a footnote definition
...
* lisp/org-footnote.el (org-footnote-at-definition-p): Don't grab
trailing blank lines in a footnote definition.
(org-footnote-delete-definitions): Remove both footnote definition and
trailing blank lines.
* testing/lisp/test-org-export.el (test-org-export/fuzzy-links): Fix
a docstring.
* contrib/lisp/org-element.el (org-element-footnote-definition-parser):
Apply change to footnote definitions.
2012-04-06 19:14:51 +02:00
Nicolas Goaziou
6427c6aeaa
Merge branch 'hotfix-7.8.06'
2012-03-24 20:35:31 +01:00
Nicolas Goaziou
6ad53828cc
org-footnote: Fix LaTeX export error when a src block produces fake footnotes
...
* lisp/org-footnote.el (org-footnote-delete-definitions): Fix LaTeX
export error when a src block produces fake footnotes.
2012-03-24 20:34:41 +01:00
Bastien Guerry
44bf4de900
Merge branch 'hotfix-7.8.06'
...
Conflicts:
lisp/org-agenda.el
2012-03-20 13:06:26 +01:00
Bastien Guerry
fc717f3eb7
Fix compiler warnings.
2012-03-20 13:04:55 +01:00
Bastien Guerry
ecd0562c5f
Fix the master branch.
...
I started from the 78ec8e commit then cherry-picked and squashed
commits that have been done in master since then, except the bad
commits that overwrote the tree (in master) with the tree in maint.
This commit also bumps the version number to 7.8.06.
The only "fix" that was made between 78ec8e and the previous commit
is e0072f which has been reported to break stuff.
2012-03-19 22:01:29 +01:00
Bastien Guerry
6e306f65ff
Fix copyright years in maint.
2012-03-17 16:31:04 +01:00
Bastien Guerry
de42649f7b
Manually revert maint to e85080.
...
e85080 is the last correct commit in the maint branch
before releasing 7.8.04. The 7.8.05 release should be
done from this commit.
2012-03-17 16:28:46 +01:00
Bastien Guerry
73bb18ba37
Manually revert to the Release 7.8.04 tag.
2012-03-17 15:52:24 +01:00
Bastien Guerry
38c5045725
Fix copyright years.
2012-03-17 14:36:25 +01:00
Bastien Guerry
6e534f9c61
Manually revert back to commit e85080.
...
This fixes a wrong merge that should not have happened:
commit 7e903a merges the master branch into the maint branch,
while we really want to keep the maint branch a bugfix-only
branch.
This commit reverts back the maint branch to its state before
merging the master branch. From there, we will fix remaining
problems with the maint branch (e.g. copyright issues) then
release this maint branch as Org-mode 7.8.05.
2012-03-17 14:34:01 +01:00
Eric Schulte
07ac15ef72
Merge branch 'origin-maint'
...
Conflicts:
lisp/org-src.el
2012-03-14 09:56:52 -04:00
Eric Schulte
4542824f2c
fix compiler warnings
...
* lisp/ob.el (org-strip-protective-commas): Declared.
* lisp/org-agenda.el (org-agenda-filtered-by-category): Declared.
(org-agenda-filter-apply): Capture free variable.
* lisp/org-footnote.el (org-skip-whitespace): Declared.
* lisp/org-mobile.el (org-agenda-filter): Declared.
* lisp/org-src.el (org-strip-protective-commas): Declared.
2012-03-14 09:55:04 -04:00
Nicolas Goaziou
6dab0cd71f
Merge branch 'maint'
2012-03-03 13:08:35 +01:00
Nicolas Goaziou
155ab73f77
org-footnote: Small fix to previous commit
...
* lisp/org-footnote.el (org-footnote-normalize): Do not normalize
labels when sort-only is non-nil.
2012-03-03 13:07:59 +01:00
Nicolas Goaziou
daa687411d
Merge branch 'maint'
2012-03-03 13:01:59 +01:00
Nicolas Goaziou
c8020dd42e
org-footnote: Clean-up `org-footnote-normalize'
...
* lisp/org-footnote.el (org-footnote-normalize): Remove an useless
part of the function.
(org-insert-footnote-reference-near-definition): Remove function.
2012-03-03 13:00:46 +01:00
Nicolas Goaziou
baa7321d17
Merge branch 'maint'
2012-03-02 22:38:26 +01:00
Nicolas Goaziou
6b91eb9e65
org-footnote: Fix normalization of inline footnotes with no footnote section
...
* lisp/org-footnote.el (org-footnote-normalize): Fix normalization of
inline footnotes with no footnote section.
* testing/lisp/test-org-footnote.el: New test file.
Thanks to Samuel Wales for reporting this.
2012-03-02 22:37:12 +01:00
Nicolas Goaziou
f0af36a348
Merge branch 'maint'
2012-02-29 23:06:17 +01:00
Jambunathan K
f6727a9dde
org-footnote: Workaround a limitation in the ODT exporter
...
* lisp/org-footnote.el (org-footnote-normalize): Force a paragraph
break after the last footnote definition. This is an an
implicit assumption made by the org-lparse.el library. With
this change, footnote definitions can reliably be exported
with ODT backend. See
http://lists.gnu.org/archive/html/emacs-orgmode/2012-02/msg01013.html .
2012-02-29 22:48:17 +01:00
Nicolas Goaziou
9ae171a86e
org-footnote: Allow footnotes in verse blocks
...
* lisp/org-footnote.el (org-footnote-forbidden-blocks): Allow
footnotes in verse blocks.
2012-02-24 09:44:36 +01:00
Nicolas Goaziou
a356059f38
org-footnote: Allow footnotes in verse blocks
...
* lisp/org-footnote.el (org-footnote-forbidden-blocks): Allow
footnotes in verse blocks.
2012-02-24 09:42:15 +01:00
Nicolas Goaziou
c4b233453c
Merge branch 'maint'
2012-02-07 08:43:41 +01:00
Nicolas Goaziou
b3721c2a66
org-footnote: Fix bogus defvar declares
...
* lisp/org-footnote.el (org-blank-before-new-entry,
org-export-footnotes-seen, org-export-footnotes-data): Fix bogus
declarations.
This fixes bug #10745 . Thanks to Steve Revilak for the report and to
Glenn Morris for the solution.
2012-02-07 08:43:09 +01:00
Nicolas Goaziou
e30e13b8c7
Merge branch 'maint'
2012-02-02 21:26:21 +01:00
Nicolas Goaziou
d10792510f
org-footnote: Better blank lines control when inserting a footnote
...
* lisp/org-footnote.el (org-footnote-create-definition): Fix space
insertion when creating a new footnote. This fixes newline munching
when `org-footnote-section' is nil and blank lines stacking when it
isn't nil.
Thanks to Eric Abrahamsen for reporting this.
2012-02-02 21:22:17 +01:00
Nicolas Goaziou
6de9f14cf5
Merge branch 'maint'
2012-02-02 20:41:20 +01:00
Nicolas Goaziou
acd743bdc0
org-footnote: Fix export bug introduced by previous commit
...
* lisp/org-footnote.el (org-footnote-normalize): Make sure that
footnotes are moved to a single place during export.
2012-02-02 20:39:40 +01:00
Nicolas Goaziou
36cc7b4983
Merge branch 'maint'
2012-02-02 10:03:42 +01:00
Nicolas Goaziou
b032a6d51b
org-footnote: Fix normalization when no footnote section is defined
...
* lisp/org-footnote.el (org-footnote-normalize): Ensure footnote
definition will be inserted at the end of the section corresponding
to to its first reference.
2012-02-02 10:01:50 +01:00
Nicolas Goaziou
6c0da676af
org-footnote: Fix definition ending retrieval with no footnote section
...
* lisp/org-footnote.el (org-footnote-at-definition-p): Make sure to
move point at the beginning of the separator before skiping white
spaces. Refactor code.
2012-02-02 09:08:28 +01:00
Bastien Guerry
e44d2975ff
Fix copyright (to 2012) year and Org version (to 7.8.03).
2012-01-03 18:47:01 +01:00
Nicolas Goaziou
d6898e589a
org-footnote: Remove opportunity to have inline footnotes at beginning of line
...
* lisp/org-footnote.el (org-footnote-new): Cannot insert an inline
footnote at beginning of line anymore.
(org-footnote-at-reference-p): Don't recognize inline footnotes at
beginning of line.
It is technically possible to allow inline footnotes at beginning of
line, their syntax being different enough from standard references.
Though, after normalizing them, they will become standard footnotes
still at beginning of line, which will break them.
2011-11-06 14:14:36 +01:00
Nicolas Goaziou
f2b3fe7318
org-footnote: Don't store text-properties of footnote definitions
...
* lisp/org-footnote.el (org-footnote-at-reference-p,
org-footnote-at-definition-p): Don't store text-properties of footnote definitions.
2011-10-29 14:21:56 +02:00
Nicolas Goaziou
711b7d7d3a
org-footnote: Remove text-properties from label
...
* lisp/org-footnote.el (org-footnote-at-reference-p,
org-footnote-at-definition-p): Remove text-properties from label.
2011-10-24 08:11:07 +02:00
Tassilo Horn
4bbdfd229d
Replace org-mode-p with usual (eq major-mode 'org-mode) check
...
Additionally, replace one
(or (org-mode-p) (derived-mode-p 'org-mode))
with
(derived-mode-p 'org-mode)
cause that is reflexive anyway (returns true, if the current mode is
org-mode).
Delete one check testing for org-mode or org derived mode
2011-10-22 11:29:24 +02:00
Carsten Dominik
54a9cb0d99
Maintain XEmacs compatibility
...
* lisp/ob-calc.el (featurep): Require calc-store.
* lisp/org-agenda.el (org-agenda-list-stuck-projects): Fix regexp
special handling.
* lisp/org-compat.el (fboundp): Support for XEmacs.
* lisp/org-exp.el (org-export): Protect XEmacs from `(redisplay)' call.
* lisp/org-footnote.el (org-footnote-re): Optimize macro processing.
* lisp/org.el (org-set-autofill-regexps): Xemacs compatibility.
Patch by Michael Sperber, checked and slightly modified by Carsten.
2011-10-21 22:36:53 +02:00
Nicolas Goaziou
0fff59cd43
org-footnote: Small refactoring
...
* lisp/org-footnote.el (org-footnote-renumber-fn:N): Small
refactoring.
2011-10-01 08:57:33 +02:00