Bastien
c83f889826
org-table.el: Adapt `org-table-set-header-line-format' again
...
* lisp/org-table.el (org-table-set-header-line-format): Adapt
to `display-line-numbers-mode'.
2020-01-31 21:24:12 +01:00
Bastien
fb9eb697d6
org-table.el: Fix `org-table-set-header-line-format' for org-indent-mode
...
* lisp/org-table.el (org-table-set-header-line-format): When
`org-indent-mode' is turned on, adapt the header's left space
to size of the line prefix.
2020-01-31 21:19:45 +01:00
Bastien
759c1567b1
org-table.el: Silence compiler warnings
2020-01-30 11:54:51 +01:00
Bastien
0aff90f499
Run `org-table-electric-header-mode' with a tiny timer
...
* lisp/org-table.el (org-table-electric-header-mode): Autoload and
run with timer.
2020-01-29 21:35:04 +01:00
Bastien
57721a1cb0
Handle header line scaling for `org-table-electric-header-mode'
...
* lisp/org-table.el (org-table-temp-header-remapping): New variable.
(org-table-set-header-line-format): Scale the header line properly.
(org-table-electric-header-mode): Don't run outside `org-mode'.
2020-01-29 17:14:12 +01:00
Bastien
b476ffd266
Implement the `org-table-electric-header-mode' minor mode
...
* lisp/org-table.el (org-table-electric-header-p): New option.
(org-table-temp-header-line, org-table-electric-header-mode): New
variables.
(org-table-set-header-line-format)
(org-table-electric-header-mode): New minor mode to display the
table's current first row as the header line when this first row
is not visible anymore.
* doc/org-manual.org (Miscellaneous): Document
`org-table-electric-header-mode'.
2020-01-29 15:17:32 +01:00
Bastien
241750b3c2
Use number-to-string' instead of
int-to-string'
...
* lisp/org.el (org-end-of-subtree): Use `number-to-string' instead
of `int-to-string'.
* lisp/org-table.el (org-table-edit-field)
(org-table-fix-formulas, org-table-analyze, orgtbl-make-binding)
(org-table-field-info): Ditto.
* lisp/org-macs.el (org-shorten-string): Ditto.
* lisp/org-agenda.el (org-get-time-of-day): Ditto.
2020-01-28 20:19:24 +01:00
Bastien
e982108445
Fix "Maintainer: " entry in the header
...
* lisp/org.el:
* lisp/org-table.el:
* lisp/org-list.el:
* lisp/org-attach.el:
* lisp/org-agenda.el: Fix "Maintainer: " entry in the header.
2020-01-27 14:55:15 +01:00
Bastien
3b3d577ee7
Add maintainer
...
(Continue testing post-receive hook.)
2020-01-26 12:57:53 +01:00
Kyle Meyer
ff5fc050d3
Update copyright year to 2020
2020-01-01 13:38:46 -05:00
Paul Eggert
ac90e86c32
Backport commit d1a791f8e from Emacs
...
Spelling fixes
d1a791f8edc1b8f2189b6f1b3be7b946fef1edbc
Paul Eggert
Mon Dec 9 18:45:18 2019 -0800
2019-12-11 21:19:55 -05:00
Paul Eggert
9c5174e235
Backport commit ab612302b from Emacs
...
* lisp/org-table.el (org-table-wrap-region): Avoid
repetition-of-repetition in regexp.
Fix regex repetition of repetitions
ab612302b4917fec5846922f3d8ffafa673c0d36
Paul Eggert
Wed Dec 4 16:54:24 2019 -0800
2019-12-04 21:19:51 -05:00
Jonas Bernoulli
5117d8a159
Fix typos
2019-11-16 17:17:36 -05:00
Kyle Meyer
6f5516953f
Merge branch 'maint'
2019-08-25 11:51:12 -04:00
Paul Eggert
190a3b6c4e
Backport commit 221a3272a from Emacs
...
* lisp/org-table.el (org-table-message-once-per-second):
Fix bug when clock difference goes past a 65536-second boundary.
Don’t assume particular format for current-time result.
Fix org-table 65536-second bug
221a3272ad4a1befb41dda2990d672782bc0257f
Paul Eggert
Mon Aug 19 18:05:15 2019 -0700
Note(km): time-less-p and time-subtract have been replaced with the
corresponding Org compatibility functions.
2019-08-25 11:47:17 -04:00
Kyle Meyer
57e254e67c
Merge branch 'maint'
2019-07-14 11:14:54 -04:00
Konstantin Kharlamov
c0d699e9ba
Backport commit dfc322d77 from Emacs
...
* lisp/org-mobile.el (org-mobile-copy-agenda-files)
(org-mobile-update-checksum-for-capture-file):
* lisp/org-table.el (org-table-number-regexp):
Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
(Bug#36167)
Replace manually crafted hex regexes with [:xdigit:]
dfc322d77fd1ce3aa4d852e0ff07bb36944f6432
Konstantin Kharlamov
Sat Jul 6 10:54:25 2019 +0300
2019-07-14 11:12:12 -04:00
Nicolas Goaziou
b855acc878
Merge branch 'maint'
2019-06-28 17:50:53 +02:00
Nicolas Goaziou
7bc6f8d619
org-table: Prevent formula evaluation from widening all tables
...
* lisp/org-table.el (org-table-recalculate): When a formula is
evaluated, do not expand shrunk columns across the whole buffer.
2019-06-28 17:49:25 +02:00
Nicolas Goaziou
9ddfe45314
org-table: Improve `org-table-copy-down'
...
* lisp/org-table.el (org-table--increment-field): New function.
(org-table-copy-down): Use new function.
* testing/lisp/test-org-table.el (test-org-table/copy-down): New test.
* doc/org-manual.org (Calculations): Update documentation.
2019-06-28 00:07:25 +02:00
Nicolas Goaziou
7e4847a554
Merge branch 'maint'
2019-06-28 00:06:58 +02:00
Nicolas Goaziou
0553f2e31c
org-table: Fix `org-table-next-row' at eob
...
* lisp/org-table.el (org-table-next-row): Fix misbehaviour when called
on the last row, at the end of the buffer, without a final newline.
2019-06-28 00:05:44 +02:00
Nicolas Goaziou
0f9b7114d1
org-table: Fix `org-table-map-tables'
...
* lisp/org-table.el (org-table-map-tables): Apply function at the
beginning of the table, not at the first affiliated keyword, if any.
Reported-by: Kaushal Modi <kaushal.modi@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2019-04/msg00167.html >
2019-04-23 10:35:31 +02:00
Kyle Meyer
4f05529ac5
Merge branch 'maint'
2019-04-14 22:11:27 -04:00
Paul Eggert
9bf1bdaf25
Backport commit 7ddd08bd3 from Emacs
...
* lisp/org-table.el (org-table-range-regexp):
Omit or rewrite useless repetitions that risk being very slow in
the backtracking regexp engine in Emacs.
Omit/rewrite useless regexp repetitions
7ddd08bd3ebc48998062a7d29274cf080256a48f
Paul Eggert
Fri Apr 12 19:43:41 2019 -0700
2019-04-14 22:08:07 -04:00
Nicolas Goaziou
ab311b85ae
Merge branch 'maint'
2019-04-13 09:43:32 +02:00
Nicolas Goaziou
222408d70a
org-table: Prevent expanding columns upon applying formulas
...
* lisp/org-table.el (org-table-recalculate): Prevent expanding columns
upon applying formulas.
* testing/lisp/test-org-table.el (test-org-table/shrunk-columns): Add
test.
Reported-by: Nick Dokos <ndokos@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2019-04/msg00079.html >
2019-04-13 09:40:27 +02:00
Nicolas Goaziou
96b507bea8
org-table: Fix harmless code typo
...
* lisp/org-table.el (org-table-recalculate): Fix harmless code typo.
2019-04-13 09:30:19 +02:00
Kyle Meyer
c2f3f1912e
Merge branch 'maint'
2019-03-17 22:56:24 -04:00
Paul Eggert
602f2280e3
Backport commit 3c94c7bc0 and db9c924d3 from Emacs
...
* lisp/ob-core.el (org-babel-string-read):
* lisp/org-agenda.el:
(org-agenda-add-entry-to-org-agenda-diary-file):
* lisp/org-element.el (org-element-keyword-parser):
* lisp/org-list.el (org-list-indent-item-generic):
* lisp/org-mhe.el (org-mhe-get-message-folder-from-index):
* lisp/org-mobile.el (org-mobile-apply):
* lisp/org-mouse.el (org-mouse-context-menu):
* lisp/org-plot.el (org-plot/gnuplot):
* lisp/org-protocol.el (org-protocol-flatten-greedy):
* lisp/org-table.el (org-table-copy-down)
(org-table-formula-make-cmp-string)
(org-table-get-stored-formulas, org-table-recalculate)
(org-table-edit-formulas):
* lisp/org.el (org-translate-link-from-planner)
(org-fill-line-break-nobreak-p):
* lisp/ox-ascii.el (org-ascii-item):
* lisp/ox-latex.el (org-latex-clean-invalid-line-breaks):
* lisp/ox.el (org-export-expand-include-keyword):
Fix regular-expression infelicities and typos.
Fix regular-expression glitches and typos
3c94c7bc02fcacb4a101188dddb0c44d53444178
Paul Eggert
Mon Mar 4 18:00:58 2019 -0800
More regexp corrections and tweaks
db9c924d3d53f46846ad8fd74a5d08f4586a520e
Paul Eggert
Fri Mar 8 09:09:40 2019 -0800
Note(km): These two commits are ported together because, with respect
to Org files, db9c924d3 is a fix of an error from 3c94c7bc0.
2019-03-17 22:52:27 -04:00
Nicolas Goaziou
98475b32d8
Move table-related variables and functions into "org-table"
...
Slightly re-organize file.
2019-03-15 00:15:30 +01:00
Nicolas Goaziou
e7c3f39a00
org-table: Do not require 'org
2019-03-14 23:41:20 +01:00
Nicolas Goaziou
3ae98eafd0
Merge branch 'maint'
2019-03-10 21:15:25 +01:00
Nicolas Goaziou
2c454d2913
org-table: Zoom tables properly
...
* lisp/org-table.el (org-table-separator-space): Use :relative-width
so that space obeys to text scale.
Reported-by: Vadim Zaliva <lord@crocodile.org>
<http://lists.gnu.org/r/emacs-orgmode/2019-03/msg00079.html >
2019-03-10 21:13:59 +01:00
Kyle Meyer
cded785a6a
Merge branch 'maint'
2019-03-03 22:55:07 -05:00
Paul Eggert
a6cead0d21
Backport commit 476066e89 from Emacs
...
* lisp/org-clock.el (org-clock-out):
* lisp/org.el (org-evaluate-time-range):
Avoid double-rounding of time-related values. Simplify.
* lisp/org-clock.el (org-resolve-clocks-if-idle):
Use time-since instead of open-coding most of it.
* lisp/org-agenda.el (org-agenda-show-clocking-issues):
* lisp/org-capture.el (org-capture-set-target-location):
* lisp/org-table.el (org-table-sum):
* lisp/org.el (org-babel-load-file, org-2ft, org-time-stamp)
(org-read-date-analyze, org-time-stamp-to-now):
Simplify.
Note(km): Many of the changes from 476066e89 have been dropped for
compatibility with older Emacsen.
Avoid some double-rounding of Lisp timestamps
476066e89d6f0bb87220da690b8a476bf9655b80
Paul Eggert
Fri Feb 22 18:33:57 2019 -0800
2019-03-03 22:49:42 -05:00
Nicolas Goaziou
dee2403754
Merge branch 'maint'
2019-02-19 17:06:41 +01:00
Nicolas Goaziou
6a9e847dec
org-table: Fix empty field narrowing
...
* lisp/org-table.el (org-table--shrink-field): Fix empty field
narrowing.
Reported-by: Nick Helm <nick@tenpoint.co.nz>
<http://lists.gnu.org/r/emacs-orgmode/2019-02/msg00214.html >
2019-02-19 17:05:56 +01:00
Nicolas Goaziou
7b951e6ebe
Merge branch 'maint'
2019-02-18 17:03:56 +01:00
Nicolas Goaziou
d647043431
org-table: Fix last commit
...
* lisp/org-table.el (org-table--shrink-field): Properly shrink empty
and blank fields.
2019-02-18 17:03:25 +01:00
Nicolas Goaziou
335c121451
Merge branch 'maint'
2019-02-17 18:46:46 +01:00
Nicolas Goaziou
1227ad468d
org-table: Shrunk columns obey to alignment cookies
...
* lisp/org-table.el (org-table--make-shrinking-overlay): Take care of
concatenating `org-table-separator-space' and
`org-table-shrunk-column-indicator'.
(org-table--shrink-field): Change signature to include column's
alignment. Improve algorithm.
(org-table--shrink-columns): Apply signature change.
2019-02-17 18:42:23 +01:00
Nicolas Goaziou
4bc21b135b
Merge branch 'maint'
2019-01-12 11:40:33 +01:00
Nicolas Goaziou
ae497f365e
org-table: Also copy special star marker upon creating a row
...
* lisp/org-table.el (org-table-insert-row): Copy "*" character when in
first column, as it is considered as a special marker then.
2019-01-12 11:36:40 +01:00
Bastien
7a22b8f93b
Merge branch 'maint'
2019-01-01 11:54:01 +01:00
Bastien
f584d37a67
Update copyright year
2019-01-01 11:50:56 +01:00
Chris Kauffman
d0a5308435
org-table: Adding single cell movement functions
...
* lisp/org-table.el (org-table--swap-cells):
(org-table--move-cell):
(org-table-move-cell-up):
(org-table-move-cell-down):
(org-table-move-cell-left):
(org-table-move-cell-right): New functions.
* testing/lisp/test-org-table.el (test-org-table/move-cell-down):
(test-org-table/move-cell-up):
(test-org-table/move-cell-right):
(test-org-table/move-cell-left): New tests.
* doc/org-manual.org (Column and row editing): Document functions and
keybindings for single cell movement.
2018-10-03 18:44:34 +02:00
Nicolas Goaziou
c475cc2886
org-table: Fix thinko
...
* lisp/org-table.el (org-table-line-to-dline): Do not assume dichotomy
failed.
Reported-by: Lem Ming <ramboman777@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-09/msg00035.html >
2018-09-05 18:50:03 +02:00
Nicolas Goaziou
ee4dbaff60
org-table: Avoid unnecessary table align
...
* lisp/org-table.el (org-table-copy-down): Avoid unnecessary table
align.
2018-08-30 23:49:57 +02:00
Nicolas Goaziou
c891b840d2
org-table: `org-table-fix-formulas-confirm' is not safe.
...
* lisp/org-table.el (org-table-fix-formulas-confirm): Funcall'ing
a symbol is never safe, no matter what the symbol is.
2018-06-21 11:48:54 +02:00