1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-12-15 09:47:01 +00:00
Commit Graph

2330 Commits

Author SHA1 Message Date
Carsten Dominik
8e34ea7b48 HTML export: Make table row tag customizable
Xin Shi writes:

> Hello Experts,
>
> I use org-mode to produce a lot of big tables with numbers in
> them. When I present these tables by HTML, I found it's hard to
> keep track which row it is. I'm wondering if it's possible to
> implement additional class attribute to the <tr>, such as:
>
> <table class="sample">
> <tr class="d0"><td>One</td><td>Fish</td></tr>
> <tr class="d1"><td>Two</td><td>Fish</td></tr>
>
> <tr class="d0"><td>Red</td><td>Fish</td></tr>
> <tr class="d1"><td>Blue</td><td>Fish</td></tr>
> </table>
>
> So, that in the CSS file, it'll be easier to implement the color:
>
>
> <style type="text/css">
> table.sample {
> 	border: 6px inset #8B8378;
> 	-moz-border-radius: 6px;
> }
> table.sample td {
> 	border: 1px solid black;
> 	padding: 0.2em 2ex 0.2em 2ex;
>
> 	color: black;
> }
> table.sample tr.d0 td {
> 	background-color: #FCF6CF;
> }
> table.sample tr.d1 td {
> 	background-color: #FEFEF2;
> }
> </style>

This commit introduces a new variable `org-export-table-row-tags'
that can be used for this and similar purposes.  For the example
of the poster, one could use:

 (setq org-export-table-row-tags
       (cons '(if head "<tr>"
                (if (= (mod nline 2) 1)
                    "<tr class=\"d1\">"
                  "<tr class=\"d0\">"))
             "</tr>"))
2009-06-18 07:07:22 +02:00
Carsten Dominik
5406183319 Blocks: Apply Erics patch for indented blocks in org-exp-blocks.el 2009-06-17 18:19:25 +02:00
Carsten Dominik
0cd85674a5 Fix stuff for org-exp-blocks.el 2009-06-17 18:16:26 +02:00
Carsten Dominik
cdb13c76e4 Remember: Allow template target headline to be a function
The target headline in a remember template may by be a function that
will be called to computer the real headline to be used.
2009-06-17 16:49:56 +02:00
Carsten Dominik
a5f080361a Clock: Manipulating effort strings, and a mode line menu
Clicking on the clock in the mode line now pops up a menu with
clocking options.

A new command `C-c C-x C-e' allows to set or change the effort
estimate of the task currently being clocked.  This is mainly useful
when using an alert notification when the task should be finished.

Based on a patch by Konstantin Antipin.
2009-06-17 07:40:22 +02:00
Carsten Dominik
951125da8d intermediate 2009-06-16 09:42:05 +02:00
Carsten Dominik
3825cc6bcb Export: Fix bug with empty lines in examples
Patch by Baoqiu Cui.
2009-06-14 18:05:02 +02:00
Carsten Dominik
1662b8a4e0 Makefile: Swap the order of lisp directories during compilation
Patch by Baoqui Cui.
2009-06-14 09:39:26 +02:00
Carsten Dominik
389a2cc336 Docstring improvement 2009-06-14 08:11:49 +02:00
Carsten Dominik
dc5bc0d443 Move variable `org-protecting-blocks' to org.el 2009-06-14 08:05:18 +02:00
Carsten Dominik
7a9275fd89 Consistent behavior when changing TODO keywords with S-cursor.
When the variable `org-treat-S-cursor-todo-selection-as-state-change'
is turned off, switching TODO keywords with S-cursor will not only
turn off logging, but also blocking.
2009-06-14 08:03:14 +02:00
Carsten Dominik
ff34672282 xxx 2009-06-12 16:14:04 +02:00
Carsten Dominik
620ca8dcaa new 2009-06-12 16:12:03 +02:00
Carsten Dominik
d1f1e63d22 Keep byte compiler happy 2009-06-11 22:18:47 +02:00
Carsten Dominik
92163f2518 Protect ditaa, r, R, and dot blocks from fontification
Since org-exp-blocks.el is now core, we protect these blocks from the
start.
2009-06-11 17:59:35 +02:00
Carsten Dominik
b15e173215 Export BBDB anniversaries to iCalendar.
When the variable `org-icalendar-include-bbdb-anniversaries' is set.
2009-06-11 17:42:28 +02:00
Carsten Dominik
7b3d0d40f5 New faces for checkbox statistics 2009-06-11 16:19:07 +02:00
Carsten Dominik
74e8c78b93 Move org-exp-blocks.el into the core 2009-06-11 16:17:50 +02:00
Carsten Dominik
ce2b2ea8f8 Fix bug. 2009-06-10 19:32:48 +02:00
Carsten Dominik
54b8e61524 Remove (debug) 2009-06-10 00:44:39 +02:00
Carsten Dominik
ae16e6ceca More exporter fixes. 2009-06-10 00:38:06 +02:00
Carsten Dominik
cdc108eb4d Fixes from downstream Emacs 2009-06-09 23:50:53 +02:00
Carsten Dominik
342b2d0884 Fix bugs in HTML and DOCBOOK exporters 2009-06-09 23:42:33 +02:00
Bernt Hansen
fab7da2d7c Fix typo in org-clock-get-clocked-time 2009-06-09 23:02:09 +02:00
Bernt Hansen
e0f9c00f10 Do not issue the 'task should be finished by now' message if the clock is stopped
This patch prevents the org-clock-sound notification and the

   "Task'BLAH' should be finished by now."

message when the termination time is reached and the clock is not
running.

Before this patch spurious notifications and messages were generated when
clocking in a task with estimated effort time remaining.  After clocking
out the task the remaining minutes would tick by and then the sound
and message that the task should be finished were generated - even though
you are not working on it anymore.
2009-06-09 23:02:01 +02:00
Bernt Hansen
7f9e53d6b1 Initialize org-clock-notification-was-shown on clock-in
This makes org-clock-sound a little more well-behaved.  The clock
sound was only being issued if you were already clocking a task that
was under its limit, and changed to clocking something else.  Now each
time you clock in a new task it checks the estimated effort limit and
issues the org-clock-sound if the limit is exceeded.

This patch issues the org-clock-sound whenever you clock in a task
that is already over its estimated effort amount.  This allows you to
use the estimated effort as a limit for the amount of time to spend on
a task.  Each time you clock in the task you'll be notified that you
are over the limit.  This is great for tasks where you want to limit
the amount of time spent (per day, since last repeat) and is a
reminder to go work on something else instead.
2009-06-09 23:01:34 +02:00
Carsten Dominik
a6449c0324 Fix positioning bug when returning from source code editing 2009-06-09 20:19:13 +02:00
Carsten Dominik
95a4be9088 Fix problem with unknown variable in org-exp-blocks.el 2009-06-09 19:26:06 +02:00
Carsten Dominik
05438ec08f Minor fixes 2009-06-09 19:23:59 +02:00
Carsten Dominik
7d20a088f5 Minor fixes 2009-06-09 12:10:27 +02:00
Carsten Dominik
d27d3e5fa6 LaTeX export: Fix problems with use of \verb in headlines
See http://article.gmane.org/gmane.emacs.orgmode/14257
2009-06-09 06:26:59 +02:00
Carsten Dominik
5c30228ee0 Fix bug with indentation interpretation during export 2009-06-08 19:57:19 +02:00
Carsten Dominik
28e95ee828 Abort remember if the remember buffer is empty
Following a report by Ryan C. Thompson
2009-06-08 19:45:19 +02:00
Carsten Dominik
737757a5fd Allow for extra indentation of block contents. 2009-06-08 09:39:19 +02:00
Carsten Dominik
5f3b2c275c New hook `org-src-mode-hook'.
This commit adds a new hook `org-src-mode-hook'.

The Hook  run after Org switched a source code snippet to
its Emacs mode.  This hook will run

- when editing a source code snippet with \"C-c '\".
- When formatting a source code snippet for export with htmlize.

You may want to use this hook for example to turn off `outline-minor-mode'
or similar things which you want to have when editing a source code file,
but which mess up the display of a snippet in Org exported files.
2009-06-08 08:52:25 +02:00
Carsten Dominik
a554e0ce5c Improve flyspell support in verbatim emphasis strings 2009-06-08 08:36:33 +02:00
Carsten Dominik
379b24cc63 Fix whitespace issues 2009-06-08 08:00:46 +02:00
Carsten Dominik
ef57d7b90c Indentation: Make #+end line up with #+begin 2009-06-07 23:21:55 +02:00
Carsten Dominik
ea846889f2 Base block indentation after editing on #+begin line 2009-06-07 23:10:36 +02:00
Carsten Dominik
cccd7b275c Fix order problem in org-macs.el 2009-06-07 22:14:33 +02:00
Carsten Dominik
5ccc098ebd Fix blockquote support 2009-06-07 22:10:05 +02:00
Carsten Dominik
a68ff7f101 Declare a function. 2009-06-07 22:05:03 +02:00
Tassilo Horn
118ee1deaf Require message.el in org-gnus-store-link if needed.
Conflicts:

	lisp/org-gnus.el
2009-06-07 22:02:02 +02:00
Carsten Dominik
cfa9738822 Document block indentation in the manual 2009-06-07 17:16:49 +02:00
Carsten Dominik
503e571e43 Keep byte compiler happy 2009-06-07 17:07:07 +02:00
Carsten Dominik
73c522f727 New file org-src.el, split out of org.el 2009-06-07 16:28:10 +02:00
Carsten Dominik
8a9e604a7a New indentation treatment for blocks during export
Now we also deal with center, quote, and verse blocks.
2009-06-07 16:11:14 +02:00
Carsten Dominik
d8e44c1fa0 Minor fix 2009-06-07 10:14:14 +02:00
Carsten Dominik
a1a6987bc3 Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode
Conflicts:
	lisp/org-docbook.el
2009-06-07 08:54:38 +02:00
Carsten Dominik
c4f90084d7 Docbook export: Respect example indentation when parsing plain lists
Examples and source code blocks that are not sufficiently indented
will now terminate plain lists.
2009-06-07 08:52:02 +02:00