diff options
| author | Miles Bader | 2005-06-10 10:44:55 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-06-10 10:44:55 +0000 |
| commit | 8e49668e158c821282803531670ee84138787635 (patch) | |
| tree | da0e515ef35aa92487defa97ec143c5312988b24 | |
| parent | 25c066491cdea8f3f388461d37d1d1edd0876622 (diff) | |
| download | emacs-8e49668e158c821282803531670ee84138787635.tar.gz emacs-8e49668e158c821282803531670ee84138787635.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-389
Remove "-face" suffix from org faces
2005-06-10 Miles Bader <miles@gnu.org>
* lisp/textmodes/org.el (org-level-1, org-level-2, org-level-3)
(org-level-4, org-level-5, org-level-6, org-level-7)
(org-level-8, org-warning, org-headline-done)
(org-deadline-announce, org-scheduled-today)
(org-scheduled-previously, org-link, org-done, org-table)
(org-time-grid): Remove "-face" suffix from face names.
(org-level-1-face, org-level-2-face, org-level-3-face)
(org-level-4-face, org-level-5-face, org-level-6-face)
(org-level-7-face, org-level-8-face, org-warning-face)
(org-headline-done-face, org-deadline-announce-face)
(org-scheduled-today-face, org-scheduled-previously-face)
(org-link-face, org-done-face, org-table-face)
(org-time-grid-face):
New backward-compatibility aliases for renamed faces.
(org-level-faces, org-set-font-lock-defaults, org-timeline)
(org-agenda, org-agenda-get-todos, org-agenda-get-deadlines)
(org-agenda-get-timestamps, org-agenda-get-scheduled)
(org-agenda-add-time-grid-maybe, org-table-p): Use renamed org faces.
| -rw-r--r-- | lisp/ChangeLog | 19 | ||||
| -rw-r--r-- | lisp/textmodes/org.el | 153 |
2 files changed, 111 insertions, 61 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7b37c9e5bb3..5fe427d299f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,24 @@ | |||
| 1 | 2005-06-10 Miles Bader <miles@gnu.org> | 1 | 2005-06-10 Miles Bader <miles@gnu.org> |
| 2 | 2 | ||
| 3 | * textmodes/org.el (org-level-1, org-level-2, org-level-3) | ||
| 4 | (org-level-4, org-level-5, org-level-6, org-level-7) | ||
| 5 | (org-level-8, org-warning, org-headline-done) | ||
| 6 | (org-deadline-announce, org-scheduled-today) | ||
| 7 | (org-scheduled-previously, org-link, org-done, org-table) | ||
| 8 | (org-time-grid): Remove "-face" suffix from face names. | ||
| 9 | (org-level-1-face, org-level-2-face, org-level-3-face) | ||
| 10 | (org-level-4-face, org-level-5-face, org-level-6-face) | ||
| 11 | (org-level-7-face, org-level-8-face, org-warning-face) | ||
| 12 | (org-headline-done-face, org-deadline-announce-face) | ||
| 13 | (org-scheduled-today-face, org-scheduled-previously-face) | ||
| 14 | (org-link-face, org-done-face, org-table-face) | ||
| 15 | (org-time-grid-face): | ||
| 16 | New backward-compatibility aliases for renamed faces. | ||
| 17 | (org-level-faces, org-set-font-lock-defaults, org-timeline) | ||
| 18 | (org-agenda, org-agenda-get-todos, org-agenda-get-deadlines) | ||
| 19 | (org-agenda-get-timestamps, org-agenda-get-scheduled) | ||
| 20 | (org-agenda-add-time-grid-maybe, org-table-p): Use renamed org faces. | ||
| 21 | |||
| 3 | * emulation/viper-init.el (viper-search, viper-replace-overlay) | 22 | * emulation/viper-init.el (viper-search, viper-replace-overlay) |
| 4 | (viper-minibuffer-emacs, viper-minibuffer-insert) | 23 | (viper-minibuffer-emacs, viper-minibuffer-insert) |
| 5 | (viper-minibuffer-vi): Remove "-face" suffix from face names. | 24 | (viper-minibuffer-vi): Remove "-face" suffix from face names. |
diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el index d13a7514c16..1a9e97dd0b9 100644 --- a/lisp/textmodes/org.el +++ b/lisp/textmodes/org.el | |||
| @@ -1314,31 +1314,37 @@ Otherwise, the buffer will just be saved to a file and stay hidden." | |||
| 1314 | :tag "Org Faces" | 1314 | :tag "Org Faces" |
| 1315 | :group 'org) | 1315 | :group 'org) |
| 1316 | 1316 | ||
| 1317 | (defface org-level-1-face ;; font-lock-function-name-face | 1317 | (defface org-level-1 ;; font-lock-function-name-face |
| 1318 | '((((type tty) (class color)) (:foreground "blue" :weight bold)) | 1318 | '((((type tty) (class color)) (:foreground "blue" :weight bold)) |
| 1319 | (((class color) (background light)) (:foreground "Blue")) | 1319 | (((class color) (background light)) (:foreground "Blue")) |
| 1320 | (((class color) (background dark)) (:foreground "LightSkyBlue")) | 1320 | (((class color) (background dark)) (:foreground "LightSkyBlue")) |
| 1321 | (t (:inverse-video t :bold t))) | 1321 | (t (:inverse-video t :bold t))) |
| 1322 | "Face used for level 1 headlines." | 1322 | "Face used for level 1 headlines." |
| 1323 | :group 'org-faces) | 1323 | :group 'org-faces) |
| 1324 | ;; backward-compatibility alias | ||
| 1325 | (put 'org-level-1-face 'face-alias 'org-level-1) | ||
| 1324 | 1326 | ||
| 1325 | (defface org-level-2-face ;; font-lock-variable-name-face | 1327 | (defface org-level-2 ;; font-lock-variable-name-face |
| 1326 | '((((type tty) (class color)) (:foreground "yellow" :weight light)) | 1328 | '((((type tty) (class color)) (:foreground "yellow" :weight light)) |
| 1327 | (((class color) (background light)) (:foreground "DarkGoldenrod")) | 1329 | (((class color) (background light)) (:foreground "DarkGoldenrod")) |
| 1328 | (((class color) (background dark)) (:foreground "LightGoldenrod")) | 1330 | (((class color) (background dark)) (:foreground "LightGoldenrod")) |
| 1329 | (t (:bold t :italic t))) | 1331 | (t (:bold t :italic t))) |
| 1330 | "Face used for level 2 headlines." | 1332 | "Face used for level 2 headlines." |
| 1331 | :group 'org-faces) | 1333 | :group 'org-faces) |
| 1334 | ;; backward-compatibility alias | ||
| 1335 | (put 'org-level-2-face 'face-alias 'org-level-2) | ||
| 1332 | 1336 | ||
| 1333 | (defface org-level-3-face ;; font-lock-keyword-face | 1337 | (defface org-level-3 ;; font-lock-keyword-face |
| 1334 | '((((type tty) (class color)) (:foreground "cyan" :weight bold)) | 1338 | '((((type tty) (class color)) (:foreground "cyan" :weight bold)) |
| 1335 | (((class color) (background light)) (:foreground "Purple")) | 1339 | (((class color) (background light)) (:foreground "Purple")) |
| 1336 | (((class color) (background dark)) (:foreground "Cyan")) | 1340 | (((class color) (background dark)) (:foreground "Cyan")) |
| 1337 | (t (:bold t))) | 1341 | (t (:bold t))) |
| 1338 | "Face used for level 3 headlines." | 1342 | "Face used for level 3 headlines." |
| 1339 | :group 'org-faces) | 1343 | :group 'org-faces) |
| 1344 | ;; backward-compatibility alias | ||
| 1345 | (put 'org-level-3-face 'face-alias 'org-level-3) | ||
| 1340 | 1346 | ||
| 1341 | (defface org-level-4-face ;; font-lock-comment-face | 1347 | (defface org-level-4 ;; font-lock-comment-face |
| 1342 | '((((type tty pc) (class color) (background light)) (:foreground "red")) | 1348 | '((((type tty pc) (class color) (background light)) (:foreground "red")) |
| 1343 | (((type tty pc) (class color) (background dark)) (:foreground "red1")) | 1349 | (((type tty pc) (class color) (background dark)) (:foreground "red1")) |
| 1344 | (((class color) (background light)) (:foreground "Firebrick")) | 1350 | (((class color) (background light)) (:foreground "Firebrick")) |
| @@ -1346,40 +1352,50 @@ Otherwise, the buffer will just be saved to a file and stay hidden." | |||
| 1346 | (t (:bold t :italic t))) | 1352 | (t (:bold t :italic t))) |
| 1347 | "Face used for level 4 headlines." | 1353 | "Face used for level 4 headlines." |
| 1348 | :group 'org-faces) | 1354 | :group 'org-faces) |
| 1355 | ;; backward-compatibility alias | ||
| 1356 | (put 'org-level-4-face 'face-alias 'org-level-4) | ||
| 1349 | 1357 | ||
| 1350 | (defface org-level-5-face ;; font-lock-type-face | 1358 | (defface org-level-5 ;; font-lock-type-face |
| 1351 | '((((type tty) (class color)) (:foreground "green")) | 1359 | '((((type tty) (class color)) (:foreground "green")) |
| 1352 | (((class color) (background light)) (:foreground "ForestGreen")) | 1360 | (((class color) (background light)) (:foreground "ForestGreen")) |
| 1353 | (((class color) (background dark)) (:foreground "PaleGreen")) | 1361 | (((class color) (background dark)) (:foreground "PaleGreen")) |
| 1354 | (t (:bold t :underline t))) | 1362 | (t (:bold t :underline t))) |
| 1355 | "Face used for level 5 headlines." | 1363 | "Face used for level 5 headlines." |
| 1356 | :group 'org-faces) | 1364 | :group 'org-faces) |
| 1365 | ;; backward-compatibility alias | ||
| 1366 | (put 'org-level-5-face 'face-alias 'org-level-5) | ||
| 1357 | 1367 | ||
| 1358 | (defface org-level-6-face ;; font-lock-constant-face | 1368 | (defface org-level-6 ;; font-lock-constant-face |
| 1359 | '((((type tty) (class color)) (:foreground "magenta")) | 1369 | '((((type tty) (class color)) (:foreground "magenta")) |
| 1360 | (((class color) (background light)) (:foreground "CadetBlue")) | 1370 | (((class color) (background light)) (:foreground "CadetBlue")) |
| 1361 | (((class color) (background dark)) (:foreground "Aquamarine")) | 1371 | (((class color) (background dark)) (:foreground "Aquamarine")) |
| 1362 | (t (:bold t :underline t))) | 1372 | (t (:bold t :underline t))) |
| 1363 | "Face used for level 6 headlines." | 1373 | "Face used for level 6 headlines." |
| 1364 | :group 'org-faces) | 1374 | :group 'org-faces) |
| 1375 | ;; backward-compatibility alias | ||
| 1376 | (put 'org-level-6-face 'face-alias 'org-level-6) | ||
| 1365 | 1377 | ||
| 1366 | (defface org-level-7-face ;; font-lock-builtin-face | 1378 | (defface org-level-7 ;; font-lock-builtin-face |
| 1367 | '((((type tty) (class color)) (:foreground "blue" :weight light)) | 1379 | '((((type tty) (class color)) (:foreground "blue" :weight light)) |
| 1368 | (((class color) (background light)) (:foreground "Orchid")) | 1380 | (((class color) (background light)) (:foreground "Orchid")) |
| 1369 | (((class color) (background dark)) (:foreground "LightSteelBlue")) | 1381 | (((class color) (background dark)) (:foreground "LightSteelBlue")) |
| 1370 | (t (:bold t))) | 1382 | (t (:bold t))) |
| 1371 | "Face used for level 7 headlines." | 1383 | "Face used for level 7 headlines." |
| 1372 | :group 'org-faces) | 1384 | :group 'org-faces) |
| 1385 | ;; backward-compatibility alias | ||
| 1386 | (put 'org-level-7-face 'face-alias 'org-level-7) | ||
| 1373 | 1387 | ||
| 1374 | (defface org-level-8-face ;; font-lock-string-face | 1388 | (defface org-level-8 ;; font-lock-string-face |
| 1375 | '((((type tty) (class color)) (:foreground "green")) | 1389 | '((((type tty) (class color)) (:foreground "green")) |
| 1376 | (((class color) (background light)) (:foreground "RosyBrown")) | 1390 | (((class color) (background light)) (:foreground "RosyBrown")) |
| 1377 | (((class color) (background dark)) (:foreground "LightSalmon")) | 1391 | (((class color) (background dark)) (:foreground "LightSalmon")) |
| 1378 | (t (:italic t))) | 1392 | (t (:italic t))) |
| 1379 | "Face used for level 8 headlines." | 1393 | "Face used for level 8 headlines." |
| 1380 | :group 'org-faces) | 1394 | :group 'org-faces) |
| 1395 | ;; backward-compatibility alias | ||
| 1396 | (put 'org-level-8-face 'face-alias 'org-level-8) | ||
| 1381 | 1397 | ||
| 1382 | (defface org-warning-face ;; font-lock-warning-face | 1398 | (defface org-warning ;; font-lock-warning-face |
| 1383 | '((((type tty) (class color)) (:foreground "red")) | 1399 | '((((type tty) (class color)) (:foreground "red")) |
| 1384 | (((class color) (background light)) (:foreground "Red" :bold t)) | 1400 | (((class color) (background light)) (:foreground "Red" :bold t)) |
| 1385 | (((class color) (background dark)) (:foreground "Red1" :bold t)) | 1401 | (((class color) (background dark)) (:foreground "Red1" :bold t)) |
| @@ -1387,6 +1403,8 @@ Otherwise, the buffer will just be saved to a file and stay hidden." | |||
| 1387 | (t (:inverse-video t :bold t))) | 1403 | (t (:inverse-video t :bold t))) |
| 1388 | "Face for deadlines and TODO keywords." | 1404 | "Face for deadlines and TODO keywords." |
| 1389 | :group 'org-faces) | 1405 | :group 'org-faces) |
| 1406 | ;; backward-compatibility alias | ||
| 1407 | (put 'org-warning-face 'face-alias 'org-warning) | ||
| 1390 | 1408 | ||
| 1391 | (defcustom org-fontify-done-headline nil | 1409 | (defcustom org-fontify-done-headline nil |
| 1392 | "Non-nil means, change the face of a headline if it is marked DONE. | 1410 | "Non-nil means, change the face of a headline if it is marked DONE. |
| @@ -1396,7 +1414,7 @@ When this is non-nil, the headline after the keyword is set to the | |||
| 1396 | :group 'org-faces | 1414 | :group 'org-faces |
| 1397 | :type 'boolean) | 1415 | :type 'boolean) |
| 1398 | 1416 | ||
| 1399 | (defface org-headline-done-face ;; font-lock-string-face | 1417 | (defface org-headline-done ;; font-lock-string-face |
| 1400 | '((((type tty) (class color)) (:foreground "green")) | 1418 | '((((type tty) (class color)) (:foreground "green")) |
| 1401 | (((class color) (background light)) (:foreground "RosyBrown")) | 1419 | (((class color) (background light)) (:foreground "RosyBrown")) |
| 1402 | (((class color) (background dark)) (:foreground "LightSalmon")) | 1420 | (((class color) (background dark)) (:foreground "LightSalmon")) |
| @@ -1404,26 +1422,32 @@ When this is non-nil, the headline after the keyword is set to the | |||
| 1404 | "Face used to indicate that a headline is DONE. See also the variable | 1422 | "Face used to indicate that a headline is DONE. See also the variable |
| 1405 | `org-fontify-done-headline'." | 1423 | `org-fontify-done-headline'." |
| 1406 | :group 'org-faces) | 1424 | :group 'org-faces) |
| 1425 | ;; backward-compatibility alias | ||
| 1426 | (put 'org-headline-done-face 'face-alias 'org-headline-done) | ||
| 1407 | 1427 | ||
| 1408 | ;; Inheritance does not yet work for xemacs. So we just copy... | 1428 | ;; Inheritance does not yet work for xemacs. So we just copy... |
| 1409 | 1429 | ||
| 1410 | (defface org-deadline-announce-face | 1430 | (defface org-deadline-announce |
| 1411 | '((((type tty) (class color)) (:foreground "blue" :weight bold)) | 1431 | '((((type tty) (class color)) (:foreground "blue" :weight bold)) |
| 1412 | (((class color) (background light)) (:foreground "Blue")) | 1432 | (((class color) (background light)) (:foreground "Blue")) |
| 1413 | (((class color) (background dark)) (:foreground "LightSkyBlue")) | 1433 | (((class color) (background dark)) (:foreground "LightSkyBlue")) |
| 1414 | (t (:inverse-video t :bold t))) | 1434 | (t (:inverse-video t :bold t))) |
| 1415 | "Face for upcoming deadlines." | 1435 | "Face for upcoming deadlines." |
| 1416 | :group 'org-faces) | 1436 | :group 'org-faces) |
| 1437 | ;; backward-compatibility alias | ||
| 1438 | (put 'org-deadline-announce-face 'face-alias 'org-deadline-announce) | ||
| 1417 | 1439 | ||
| 1418 | (defface org-scheduled-today-face | 1440 | (defface org-scheduled-today |
| 1419 | '((((type tty) (class color)) (:foreground "green")) | 1441 | '((((type tty) (class color)) (:foreground "green")) |
| 1420 | (((class color) (background light)) (:foreground "DarkGreen")) | 1442 | (((class color) (background light)) (:foreground "DarkGreen")) |
| 1421 | (((class color) (background dark)) (:foreground "PaleGreen")) | 1443 | (((class color) (background dark)) (:foreground "PaleGreen")) |
| 1422 | (t (:bold t :underline t))) | 1444 | (t (:bold t :underline t))) |
| 1423 | "Face for items scheduled for a certain day." | 1445 | "Face for items scheduled for a certain day." |
| 1424 | :group 'org-faces) | 1446 | :group 'org-faces) |
| 1447 | ;; backward-compatibility alias | ||
| 1448 | (put 'org-scheduled-today-face 'face-alias 'org-scheduled-today) | ||
| 1425 | 1449 | ||
| 1426 | (defface org-scheduled-previously-face | 1450 | (defface org-scheduled-previously |
| 1427 | '((((type tty pc) (class color) (background light)) (:foreground "red")) | 1451 | '((((type tty pc) (class color) (background light)) (:foreground "red")) |
| 1428 | (((type tty pc) (class color) (background dark)) (:foreground "red1")) | 1452 | (((type tty pc) (class color) (background dark)) (:foreground "red1")) |
| 1429 | (((class color) (background light)) (:foreground "Firebrick")) | 1453 | (((class color) (background light)) (:foreground "Firebrick")) |
| @@ -1431,49 +1455,59 @@ When this is non-nil, the headline after the keyword is set to the | |||
| 1431 | (t (:bold t :italic t))) | 1455 | (t (:bold t :italic t))) |
| 1432 | "Face for items scheduled previously, and not yet done." | 1456 | "Face for items scheduled previously, and not yet done." |
| 1433 | :group 'org-faces) | 1457 | :group 'org-faces) |
| 1458 | ;; backward-compatibility alias | ||
| 1459 | (put 'org-scheduled-previously-face 'face-alias 'org-scheduled-previously) | ||
| 1434 | 1460 | ||
| 1435 | (defface org-link-face | 1461 | (defface org-link |
| 1436 | '((((type tty) (class color)) (:foreground "cyan" :weight bold)) | 1462 | '((((type tty) (class color)) (:foreground "cyan" :weight bold)) |
| 1437 | (((class color) (background light)) (:foreground "Purple")) | 1463 | (((class color) (background light)) (:foreground "Purple")) |
| 1438 | (((class color) (background dark)) (:foreground "Cyan")) | 1464 | (((class color) (background dark)) (:foreground "Cyan")) |
| 1439 | (t (:bold t))) | 1465 | (t (:bold t))) |
| 1440 | "Face for links." | 1466 | "Face for links." |
| 1441 | :group 'org-faces) | 1467 | :group 'org-faces) |
| 1468 | ;; backward-compatibility alias | ||
| 1469 | (put 'org-link-face 'face-alias 'org-link) | ||
| 1442 | 1470 | ||
| 1443 | (defface org-done-face ;; font-lock-type-face | 1471 | (defface org-done ;; font-lock-type-face |
| 1444 | '((((type tty) (class color)) (:foreground "green")) | 1472 | '((((type tty) (class color)) (:foreground "green")) |
| 1445 | (((class color) (background light)) (:foreground "ForestGreen" :bold t)) | 1473 | (((class color) (background light)) (:foreground "ForestGreen" :bold t)) |
| 1446 | (((class color) (background dark)) (:foreground "PaleGreen" :bold t)) | 1474 | (((class color) (background dark)) (:foreground "PaleGreen" :bold t)) |
| 1447 | (t (:bold t :underline t))) | 1475 | (t (:bold t :underline t))) |
| 1448 | "Face used for DONE." | 1476 | "Face used for DONE." |
| 1449 | :group 'org-faces) | 1477 | :group 'org-faces) |
| 1478 | ;; backward-compatibility alias | ||
| 1479 | (put 'org-done-face 'face-alias 'org-done) | ||
| 1450 | 1480 | ||
| 1451 | (defface org-table-face ;; font-lock-function-name-face | 1481 | (defface org-table ;; font-lock-function-name-face |
| 1452 | '((((type tty) (class color)) (:foreground "blue" :weight bold)) | 1482 | '((((type tty) (class color)) (:foreground "blue" :weight bold)) |
| 1453 | (((class color) (background light)) (:foreground "Blue")) | 1483 | (((class color) (background light)) (:foreground "Blue")) |
| 1454 | (((class color) (background dark)) (:foreground "LightSkyBlue")) | 1484 | (((class color) (background dark)) (:foreground "LightSkyBlue")) |
| 1455 | (t (:inverse-video t :bold t))) | 1485 | (t (:inverse-video t :bold t))) |
| 1456 | "Face used for tables." | 1486 | "Face used for tables." |
| 1457 | :group 'org-faces) | 1487 | :group 'org-faces) |
| 1488 | ;; backward-compatibility alias | ||
| 1489 | (put 'org-table-face 'face-alias 'org-table) | ||
| 1458 | 1490 | ||
| 1459 | (defface org-time-grid-face ;; font-lock-variable-name-face | 1491 | (defface org-time-grid ;; font-lock-variable-name-face |
| 1460 | '((((type tty) (class color)) (:foreground "yellow" :weight light)) | 1492 | '((((type tty) (class color)) (:foreground "yellow" :weight light)) |
| 1461 | (((class color) (background light)) (:foreground "DarkGoldenrod")) | 1493 | (((class color) (background light)) (:foreground "DarkGoldenrod")) |
| 1462 | (((class color) (background dark)) (:foreground "LightGoldenrod")) | 1494 | (((class color) (background dark)) (:foreground "LightGoldenrod")) |
| 1463 | (t (:bold t :italic t))) | 1495 | (t (:bold t :italic t))) |
| 1464 | "Face used for level 2 headlines." | 1496 | "Face used for level 2 headlines." |
| 1465 | :group 'org-faces) | 1497 | :group 'org-faces) |
| 1498 | ;; backward-compatibility alias | ||
| 1499 | (put 'org-time-grid-face 'face-alias 'org-time-grid) | ||
| 1466 | 1500 | ||
| 1467 | (defvar org-level-faces | 1501 | (defvar org-level-faces |
| 1468 | '( | 1502 | '( |
| 1469 | org-level-1-face | 1503 | org-level-1 |
| 1470 | org-level-2-face | 1504 | org-level-2 |
| 1471 | org-level-3-face | 1505 | org-level-3 |
| 1472 | org-level-4-face | 1506 | org-level-4 |
| 1473 | org-level-5-face | 1507 | org-level-5 |
| 1474 | org-level-6-face | 1508 | org-level-6 |
| 1475 | org-level-7-face | 1509 | org-level-7 |
| 1476 | org-level-8-face | 1510 | org-level-8 |
| 1477 | )) | 1511 | )) |
| 1478 | (defvar org-n-levels (length org-level-faces)) | 1512 | (defvar org-n-levels (length org-level-faces)) |
| 1479 | 1513 | ||
| @@ -1654,31 +1688,31 @@ The following commands are available: | |||
| 1654 | (defun org-set-font-lock-defaults () | 1688 | (defun org-set-font-lock-defaults () |
| 1655 | (let ((org-font-lock-extra-keywords | 1689 | (let ((org-font-lock-extra-keywords |
| 1656 | (list | 1690 | (list |
| 1657 | '(org-activate-links (0 'org-link-face)) | 1691 | '(org-activate-links (0 'org-link)) |
| 1658 | '(org-activate-dates (0 'org-link-face)) | 1692 | '(org-activate-dates (0 'org-link)) |
| 1659 | (list (concat "^\\*+[ \t]*" org-not-done-regexp) | 1693 | (list (concat "^\\*+[ \t]*" org-not-done-regexp) |
| 1660 | '(1 'org-warning-face t)) | 1694 | '(1 'org-warning t)) |
| 1661 | (list (concat "\\[#[A-Z]\\]") '(0 'org-warning-face t)) | 1695 | (list (concat "\\[#[A-Z]\\]") '(0 'org-warning t)) |
| 1662 | (list (concat "\\<" org-deadline-string) '(0 'org-warning-face t)) | 1696 | (list (concat "\\<" org-deadline-string) '(0 'org-warning t)) |
| 1663 | (list (concat "\\<" org-scheduled-string) '(0 'org-warning-face t)) | 1697 | (list (concat "\\<" org-scheduled-string) '(0 'org-warning t)) |
| 1664 | ;; '("\\(\\s-\\|^\\)\\(\\*\\([a-zA-Z]+\\)\\*\\)\\([^a-zA-Z*]\\|$\\)" | 1698 | ;; '("\\(\\s-\\|^\\)\\(\\*\\([a-zA-Z]+\\)\\*\\)\\([^a-zA-Z*]\\|$\\)" |
| 1665 | ;; (3 'bold)) | 1699 | ;; (3 'bold)) |
| 1666 | ;; '("\\(\\s-\\|^\\)\\(/\\([a-zA-Z]+\\)/\\)\\([^a-zA-Z*]\\|$\\)" | 1700 | ;; '("\\(\\s-\\|^\\)\\(/\\([a-zA-Z]+\\)/\\)\\([^a-zA-Z*]\\|$\\)" |
| 1667 | ;; (3 'italic)) | 1701 | ;; (3 'italic)) |
| 1668 | ;; '("\\(\\s-\\|^\\)\\(_\\([a-zA-Z]+\\)_\\)\\([^a-zA-Z*]\\|$\\)" | 1702 | ;; '("\\(\\s-\\|^\\)\\(_\\([a-zA-Z]+\\)_\\)\\([^a-zA-Z*]\\|$\\)" |
| 1669 | ;; (3 'underline)) | 1703 | ;; (3 'underline)) |
| 1670 | '("\\<FIXME\\>" (0 'org-warning-face t)) | 1704 | '("\\<FIXME\\>" (0 'org-warning t)) |
| 1671 | (list (concat "^\\*+[ \t]*\\<\\(" org-comment-string "\\)\\>") | 1705 | (list (concat "^\\*+[ \t]*\\<\\(" org-comment-string "\\)\\>") |
| 1672 | '(1 'org-warning-face t)) | 1706 | '(1 'org-warning t)) |
| 1673 | '("^#.*" (0 'font-lock-comment-face t)) | 1707 | '("^#.*" (0 font-lock-comment-face t)) |
| 1674 | (if org-fontify-done-headline | 1708 | (if org-fontify-done-headline |
| 1675 | (list (concat "^[*]+ +\\<\\(" org-done-string "\\)\\(.*\\)\\>") | 1709 | (list (concat "^[*]+ +\\<\\(" org-done-string "\\)\\(.*\\)\\>") |
| 1676 | '(1 'org-done-face t) '(2 'org-headline-done-face t)) | 1710 | '(1 'org-done t) '(2 'org-headline-done t)) |
| 1677 | (list (concat "^[*]+ +\\<\\(" org-done-string "\\)\\>") | 1711 | (list (concat "^[*]+ +\\<\\(" org-done-string "\\)\\>") |
| 1678 | '(1 'org-done-face t))) | 1712 | '(1 'org-done t))) |
| 1679 | '("^[ \t]*\\(\\(|\\|\\+-[-+]\\).*\\S-\\)" | 1713 | '("^[ \t]*\\(\\(|\\|\\+-[-+]\\).*\\S-\\)" |
| 1680 | (1 'org-table-face t)) | 1714 | (1 'org-table t)) |
| 1681 | '("^[ \t]*\\(:.*\\)" (1 'org-table-face t))))) | 1715 | '("^[ \t]*\\(:.*\\)" (1 'org-table t))))) |
| 1682 | (set (make-local-variable 'org-font-lock-keywords) | 1716 | (set (make-local-variable 'org-font-lock-keywords) |
| 1683 | (append | 1717 | (append |
| 1684 | (if org-noutline-p ; FIXME: I am not sure if eval will work | 1718 | (if org-noutline-p ; FIXME: I am not sure if eval will work |
| @@ -3339,8 +3373,7 @@ dates." | |||
| 3339 | (number-to-string (extract-calendar-day date)) " " | 3373 | (number-to-string (extract-calendar-day date)) " " |
| 3340 | (calendar-month-name (extract-calendar-month date)) " " | 3374 | (calendar-month-name (extract-calendar-month date)) " " |
| 3341 | (number-to-string (extract-calendar-year date)) "\n") | 3375 | (number-to-string (extract-calendar-year date)) "\n") |
| 3342 | (put-text-property s (1- (point)) 'face | 3376 | (put-text-property s (1- (point)) 'face 'org-link) |
| 3343 | 'org-link-face) | ||
| 3344 | (if (equal d today) | 3377 | (if (equal d today) |
| 3345 | (put-text-property s (1- (point)) 'org-today t)) | 3378 | (put-text-property s (1- (point)) 'org-today t)) |
| 3346 | (insert (org-finalize-agenda-entries rtn) "\n") | 3379 | (insert (org-finalize-agenda-entries rtn) "\n") |
| @@ -3419,7 +3452,7 @@ NDAYS defaults to `org-agenda-ndays'." | |||
| 3419 | (when rtnall | 3452 | (when rtnall |
| 3420 | (insert "ALL CURRENTLY OPEN TODO ITEMS:\n") | 3453 | (insert "ALL CURRENTLY OPEN TODO ITEMS:\n") |
| 3421 | (add-text-properties (point-min) (1- (point)) | 3454 | (add-text-properties (point-min) (1- (point)) |
| 3422 | (list 'face 'org-link-face)) | 3455 | (list 'face 'org-link)) |
| 3423 | (insert (org-finalize-agenda-entries rtnall) "\n"))) | 3456 | (insert (org-finalize-agenda-entries rtnall) "\n"))) |
| 3424 | (while (setq d (pop day-numbers)) | 3457 | (while (setq d (pop day-numbers)) |
| 3425 | (setq date (calendar-gregorian-from-absolute d) | 3458 | (setq date (calendar-gregorian-from-absolute d) |
| @@ -3448,8 +3481,7 @@ NDAYS defaults to `org-agenda-ndays'." | |||
| 3448 | (extract-calendar-day date) | 3481 | (extract-calendar-day date) |
| 3449 | (calendar-month-name (extract-calendar-month date)) | 3482 | (calendar-month-name (extract-calendar-month date)) |
| 3450 | (extract-calendar-year date))) | 3483 | (extract-calendar-year date))) |
| 3451 | (put-text-property s (1- (point)) 'face | 3484 | (put-text-property s (1- (point)) 'face 'org-link) |
| 3452 | 'org-link-face) | ||
| 3453 | (if rtnall (insert | 3485 | (if rtnall (insert |
| 3454 | (org-finalize-agenda-entries ;; FIXME: condition needed | 3486 | (org-finalize-agenda-entries ;; FIXME: condition needed |
| 3455 | (org-agenda-add-time-grid-maybe | 3487 | (org-agenda-add-time-grid-maybe |
| @@ -3936,7 +3968,7 @@ the documentation of `org-diary'." | |||
| 3936 | (defun org-agenda-get-todos () | 3968 | (defun org-agenda-get-todos () |
| 3937 | "Return the TODO information for agenda display." | 3969 | "Return the TODO information for agenda display." |
| 3938 | (let* ((props (list 'face nil | 3970 | (let* ((props (list 'face nil |
| 3939 | 'done-face 'org-done-face | 3971 | 'done-face 'org-done |
| 3940 | 'mouse-face 'highlight | 3972 | 'mouse-face 'highlight |
| 3941 | 'keymap org-agenda-keymap | 3973 | 'keymap org-agenda-keymap |
| 3942 | 'help-echo | 3974 | 'help-echo |
| @@ -4023,18 +4055,17 @@ the documentation of `org-diary'." | |||
| 4023 | (if deadlinep | 4055 | (if deadlinep |
| 4024 | (add-text-properties | 4056 | (add-text-properties |
| 4025 | 0 (length txt) | 4057 | 0 (length txt) |
| 4026 | (list 'face | 4058 | (list 'face (if donep 'org-done 'org-warning) |
| 4027 | (if donep 'org-done-face 'org-warning-face) | 4059 | 'undone-face 'org-warning |
| 4028 | 'undone-face 'org-warning-face | 4060 | 'done-face 'org-done |
| 4029 | 'done-face 'org-done-face | ||
| 4030 | 'priority (+ 100 priority)) | 4061 | 'priority (+ 100 priority)) |
| 4031 | txt) | 4062 | txt) |
| 4032 | (if scheduledp | 4063 | (if scheduledp |
| 4033 | (add-text-properties | 4064 | (add-text-properties |
| 4034 | 0 (length txt) | 4065 | 0 (length txt) |
| 4035 | (list 'face 'org-scheduled-today-face | 4066 | (list 'face 'org-scheduled-today |
| 4036 | 'undone-face 'org-scheduled-today-face | 4067 | 'undone-face 'org-scheduled-today |
| 4037 | 'done-face 'org-done-face | 4068 | 'done-face 'org-done |
| 4038 | priority (+ 99 priority)) | 4069 | priority (+ 99 priority)) |
| 4039 | txt) | 4070 | txt) |
| 4040 | (add-text-properties | 4071 | (add-text-properties |
| @@ -4088,14 +4119,14 @@ the documentation of `org-diary'." | |||
| 4088 | (list 'org-marker (org-agenda-new-marker pos) | 4119 | (list 'org-marker (org-agenda-new-marker pos) |
| 4089 | 'org-hd-marker (org-agenda-new-marker pos1) | 4120 | 'org-hd-marker (org-agenda-new-marker pos1) |
| 4090 | 'priority (+ (- 10 diff) (org-get-priority txt)) | 4121 | 'priority (+ (- 10 diff) (org-get-priority txt)) |
| 4091 | 'face (cond ((<= diff 0) 'org-warning-face) | 4122 | 'face (cond ((<= diff 0) 'org-warning) |
| 4092 | ((<= diff 5) 'org-scheduled-previously-face) | 4123 | ((<= diff 5) 'org-scheduled-previously) |
| 4093 | (t nil)) | 4124 | (t nil)) |
| 4094 | 'undone-face (cond | 4125 | 'undone-face (cond |
| 4095 | ((<= diff 0) 'org-warning-face) | 4126 | ((<= diff 0) 'org-warning) |
| 4096 | ((<= diff 5) 'org-scheduled-previously-face) | 4127 | ((<= diff 5) 'org-scheduled-previously) |
| 4097 | (t nil)) | 4128 | (t nil)) |
| 4098 | 'done-face 'org-done-face) | 4129 | 'done-face 'org-done) |
| 4099 | props) | 4130 | props) |
| 4100 | txt) | 4131 | txt) |
| 4101 | (push txt ee))))) | 4132 | (push txt ee))))) |
| @@ -4103,9 +4134,9 @@ the documentation of `org-diary'." | |||
| 4103 | 4134 | ||
| 4104 | (defun org-agenda-get-scheduled () | 4135 | (defun org-agenda-get-scheduled () |
| 4105 | "Return the scheduled information for agenda display." | 4136 | "Return the scheduled information for agenda display." |
| 4106 | (let* ((props (list 'face 'org-scheduled-previously-face | 4137 | (let* ((props (list 'face 'org-scheduled-previously |
| 4107 | 'undone-face 'org-scheduled-previously-face | 4138 | 'undone-face 'org-scheduled-previously |
| 4108 | 'done-face 'org-done-face | 4139 | 'done-face 'org-done |
| 4109 | 'mouse-face 'highlight | 4140 | 'mouse-face 'highlight |
| 4110 | 'keymap org-agenda-keymap | 4141 | 'keymap org-agenda-keymap |
| 4111 | 'help-echo | 4142 | 'help-echo |
| @@ -4319,7 +4350,7 @@ only the correctly processes TXT should be returned - this is used by | |||
| 4319 | (concat (substring time 0 -2) ":" (substring time -2))) | 4350 | (concat (substring time 0 -2) ":" (substring time -2))) |
| 4320 | new) | 4351 | new) |
| 4321 | (put-text-property | 4352 | (put-text-property |
| 4322 | 1 (length (car new)) 'face 'org-time-grid-face (car new)))) | 4353 | 1 (length (car new)) 'face 'org-time-grid (car new)))) |
| 4323 | (if (member 'time-up org-agenda-sorting-strategy) | 4354 | (if (member 'time-up org-agenda-sorting-strategy) |
| 4324 | (append new list) | 4355 | (append new list) |
| 4325 | (append list new))))) | 4356 | (append list new))))) |
| @@ -8210,7 +8241,7 @@ When LEVEL is non-nil, increase section numbers on that level." | |||
| 8210 | 8241 | ||
| 8211 | (defsubst org-table-p () | 8242 | (defsubst org-table-p () |
| 8212 | (if (and (eq major-mode 'org-mode) font-lock-mode) | 8243 | (if (and (eq major-mode 'org-mode) font-lock-mode) |
| 8213 | (eq (get-text-property (point) 'face) 'org-table-face) | 8244 | (eq (get-text-property (point) 'face) 'org-table) |
| 8214 | (save-match-data (org-at-table-p)))) | 8245 | (save-match-data (org-at-table-p)))) |
| 8215 | 8246 | ||
| 8216 | (defun org-self-insert-command (N) | 8247 | (defun org-self-insert-command (N) |