diff options
| author | Glenn Morris | 2012-04-13 18:46:06 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-04-13 18:46:06 -0700 |
| commit | 35dc09a19c606f9e7a078df32d030451c7c90ba1 (patch) | |
| tree | 8df2ade99ad8620568094d61bba9dd4ac8856c43 /lisp | |
| parent | 327732d994c98849c765659aa2164a7482b6beab (diff) | |
| parent | ad3a2b411dc2b34f5d6fa434aee3ca56fa7a88e7 (diff) | |
| download | emacs-35dc09a19c606f9e7a078df32d030451c7c90ba1.tar.gz emacs-35dc09a19c606f9e7a078df32d030451c7c90ba1.zip | |
Merge from emacs-24, up to 2012-04-10T02:06:19Z!larsi@gnus.org
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 69 | ||||
| -rw-r--r-- | lisp/calendar/holidays.el | 2 | ||||
| -rw-r--r-- | lisp/custom.el | 21 | ||||
| -rw-r--r-- | lisp/emulation/cua-base.el | 22 | ||||
| -rw-r--r-- | lisp/files.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 16 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-msg.el | 8 | ||||
| -rw-r--r-- | lisp/gnus/gnus-start.el | 4 | ||||
| -rw-r--r-- | lisp/international/characters.el | 12 | ||||
| -rw-r--r-- | lisp/international/mule.el | 5 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 2 | ||||
| -rw-r--r-- | lisp/net/rcirc.el | 18 | ||||
| -rw-r--r-- | lisp/org/ChangeLog | 46 | ||||
| -rw-r--r-- | lisp/org/ob-C.el | 2 | ||||
| -rw-r--r-- | lisp/org/org-agenda.el | 14 | ||||
| -rw-r--r-- | lisp/org/org-clock.el | 15 | ||||
| -rw-r--r-- | lisp/org/org-footnote.el | 2 | ||||
| -rw-r--r-- | lisp/org/org-pcomplete.el | 4 | ||||
| -rw-r--r-- | lisp/org/org-special-blocks.el | 12 | ||||
| -rw-r--r-- | lisp/org/org-table.el | 13 | ||||
| -rw-r--r-- | lisp/org/org.el | 40 | ||||
| -rw-r--r-- | lisp/pcmpl-rpm.el | 16 | ||||
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 5 | ||||
| -rw-r--r-- | lisp/progmodes/cc-menus.el | 41 | ||||
| -rw-r--r-- | lisp/simple.el | 6 | ||||
| -rw-r--r-- | lisp/startup.el | 5 | ||||
| -rw-r--r-- | lisp/textmodes/ispell.el | 3 |
28 files changed, 291 insertions, 118 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f6213bbd186..7ca8751216f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,72 @@ | |||
| 1 | 2012-04-14 Kim F. Storm <storm@cua.dk> | ||
| 2 | |||
| 3 | * emulation/cua-base.el (cua-exchange-point-and-mark): Just call | ||
| 4 | exchange-point-and-mark if cua-enable-cua-keys is nil (Bug#11191). | ||
| 5 | |||
| 6 | 2012-04-14 Chong Yidong <cyd@gnu.org> | ||
| 7 | |||
| 8 | * custom.el (custom-theme-set-variables): Doc fix. | ||
| 9 | |||
| 10 | 2012-04-14 Glenn Morris <rgm@gnu.org> | ||
| 11 | |||
| 12 | * international/mule.el (set-auto-coding-for-load): Doc fix. | ||
| 13 | |||
| 14 | 2012-04-14 Alan Mackenzie <acm@muc.de> | ||
| 15 | |||
| 16 | * progmodes/cc-menus.el (cc-imenu-objc-generic-expression): Make | ||
| 17 | imenu work again for Objective C Mode. Correct the *-index values, | ||
| 18 | these having been disturbed by a previous change in 2011-08. | ||
| 19 | |||
| 20 | * progmodes/cc-engine.el (c-before-change-check-<>-operators): | ||
| 21 | Correct two search limits. | ||
| 22 | |||
| 23 | 2012-04-14 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 24 | |||
| 25 | * startup.el (command-line-1): Inhibit splash from daemon (bug#10996). | ||
| 26 | |||
| 27 | 2012-04-14 Andreas Schwab <schwab@linux-m68k.org> | ||
| 28 | |||
| 29 | * international/characters.el: Fix sorting. | ||
| 30 | |||
| 31 | 2012-04-14 Eli Zaretskii <eliz@gnu.org> | ||
| 32 | |||
| 33 | * international/characters.el: Add more missing Latin case pairs. | ||
| 34 | |||
| 35 | 2012-04-14 Glenn Morris <rgm@gnu.org> | ||
| 36 | |||
| 37 | * files.el (dir-locals-set-class-variables): Doc fix. | ||
| 38 | |||
| 39 | 2012-04-14 Eli Zaretskii <eliz@gnu.org> | ||
| 40 | |||
| 41 | * international/characters.el: Add set-case-syntax-pair call for | ||
| 42 | LATIN CAPITAL LETTER Y WITH DIAERESIS RET and its lower-case | ||
| 43 | counterpart. (Bug#11209) | ||
| 44 | |||
| 45 | * simple.el (shell-command-on-region): Doc fix. (Bug#11208) | ||
| 46 | |||
| 47 | 2012-04-14 Glenn Morris <rgm@gnu.org> | ||
| 48 | |||
| 49 | * calendar/holidays.el (calendar-check-holidays): Doc fix. | ||
| 50 | |||
| 51 | 2012-04-14 Eli Zaretskii <eliz@gnu.org> | ||
| 52 | |||
| 53 | * textmodes/ispell.el (ispell-dictionary-base-alist): | ||
| 54 | Add data for Hebrew. | ||
| 55 | |||
| 56 | 2012-04-14 Chong Yidong <cyd@gnu.org> | ||
| 57 | |||
| 58 | * net/rcirc.el (rcirc-cmd-quit): | ||
| 59 | Revert 2012-03-18 change (Bug#11192). | ||
| 60 | |||
| 61 | 2012-04-14 Glenn Morris <rgm@gnu.org> | ||
| 62 | |||
| 63 | * pcmpl-rpm.el (pcomplete/rpm): Handle -qf. | ||
| 64 | |||
| 65 | 2012-04-14 Eli Zaretskii <eliz@gnu.org> | ||
| 66 | |||
| 67 | * minibuffer.el (completion-in-region-mode-map): | ||
| 68 | Bind completion-help-at-point to M-? rather than ?. (Bug#11182) | ||
| 69 | |||
| 1 | 2012-04-13 Vivek Dasmohapatra <vivek@etla.org> | 70 | 2012-04-13 Vivek Dasmohapatra <vivek@etla.org> |
| 2 | 71 | ||
| 3 | * hexl.el (hexl-insert-char): Make display sizes other than 16 work. | 72 | * hexl.el (hexl-insert-char): Make display sizes other than 16 work. |
diff --git a/lisp/calendar/holidays.el b/lisp/calendar/holidays.el index 37f511f7990..9edd353b889 100644 --- a/lisp/calendar/holidays.el +++ b/lisp/calendar/holidays.el | |||
| @@ -634,7 +634,7 @@ The optional LABEL is used to label the buffer created." | |||
| 634 | "Check the list of holidays for any that occur on DATE. | 634 | "Check the list of holidays for any that occur on DATE. |
| 635 | DATE is a list (month day year). This function considers the | 635 | DATE is a list (month day year). This function considers the |
| 636 | holidays from the list `calendar-holidays', and returns a list of | 636 | holidays from the list `calendar-holidays', and returns a list of |
| 637 | strings describing those holidays that apply on DATE." | 637 | strings describing those holidays that apply on DATE, or nil if none do." |
| 638 | (let ((displayed-month (calendar-extract-month date)) | 638 | (let ((displayed-month (calendar-extract-month date)) |
| 639 | (displayed-year (calendar-extract-year date)) | 639 | (displayed-year (calendar-extract-year date)) |
| 640 | holiday-list) | 640 | holiday-list) |
diff --git a/lisp/custom.el b/lisp/custom.el index d8909f8be92..611d5688f30 100644 --- a/lisp/custom.el +++ b/lisp/custom.el | |||
| @@ -936,16 +936,21 @@ Each of the arguments in ARGS should be a list of this form: | |||
| 936 | 936 | ||
| 937 | (SYMBOL EXP [NOW [REQUEST [COMMENT]]]) | 937 | (SYMBOL EXP [NOW [REQUEST [COMMENT]]]) |
| 938 | 938 | ||
| 939 | This stores EXP (without evaluating it) as the saved value for SYMBOL. | 939 | SYMBOL is the variable name, and EXP is an expression which |
| 940 | If NOW is present and non-nil, then also evaluate EXP and set | 940 | evaluates to the customized value. EXP will also be stored, |
| 941 | the default value for the SYMBOL to the value of EXP. | 941 | without evaluating it, in SYMBOL's `saved-value' property, so |
| 942 | that it can be restored via the Customize interface. It is also | ||
| 943 | added to the alist in SYMBOL's `theme-value' property \(by | ||
| 944 | calling `custom-push-theme'). | ||
| 942 | 945 | ||
| 943 | REQUEST is a list of features we must require in order to | 946 | NOW, if present and non-nil, means to install the variable's |
| 944 | handle SYMBOL properly. | 947 | value directly now, even if its `defcustom' declaration has not |
| 945 | COMMENT is a comment string about SYMBOL. | 948 | been executed. This is for internal use only. |
| 949 | |||
| 950 | REQUEST is a list of features to `require' (which are loaded | ||
| 951 | prior to evaluating EXP). | ||
| 946 | 952 | ||
| 947 | EXP itself is saved unevaluated as SYMBOL property `saved-value' and | 953 | COMMENT is a comment string about SYMBOL." |
| 948 | in SYMBOL's list property `theme-value' \(using `custom-push-theme')." | ||
| 949 | (custom-check-theme theme) | 954 | (custom-check-theme theme) |
| 950 | 955 | ||
| 951 | ;; Process all the needed autoloads before anything else, so that the | 956 | ;; Process all the needed autoloads before anything else, so that the |
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el index 22d80944e5c..ba6127b4cba 100644 --- a/lisp/emulation/cua-base.el +++ b/lisp/emulation/cua-base.el | |||
| @@ -1002,15 +1002,21 @@ behavior, see `cua-paste-pop-rotate-temporarily'." | |||
| 1002 | (setq this-command 'cua-paste-pop)))) | 1002 | (setq this-command 'cua-paste-pop)))) |
| 1003 | 1003 | ||
| 1004 | (defun cua-exchange-point-and-mark (arg) | 1004 | (defun cua-exchange-point-and-mark (arg) |
| 1005 | "Exchanges point and mark, but don't activate the mark. | 1005 | "Exchange point and mark. |
| 1006 | Activates the mark if a prefix argument is given." | 1006 | Don't activate the mark if `cua-enable-cua-keys' is non-nil. |
| 1007 | Otherwise, just activate the mark if a prefix ARG is given. | ||
| 1008 | |||
| 1009 | See also `exchange-point-and-mark'." | ||
| 1007 | (interactive "P") | 1010 | (interactive "P") |
| 1008 | (if arg | 1011 | (cond ((null cua-enable-cua-keys) |
| 1009 | (setq mark-active t) | 1012 | (exchange-point-and-mark arg)) |
| 1010 | (let (mark-active) | 1013 | (arg |
| 1011 | (exchange-point-and-mark) | 1014 | (setq mark-active t)) |
| 1012 | (if cua--rectangle | 1015 | (t |
| 1013 | (cua--rectangle-corner 0))))) | 1016 | (let (mark-active) |
| 1017 | (exchange-point-and-mark) | ||
| 1018 | (if cua--rectangle | ||
| 1019 | (cua--rectangle-corner 0)))))) | ||
| 1014 | 1020 | ||
| 1015 | ;; Typed text that replaced the highlighted region. | 1021 | ;; Typed text that replaced the highlighted region. |
| 1016 | (defvar cua--repeat-replace-text nil) | 1022 | (defvar cua--repeat-replace-text nil) |
diff --git a/lisp/files.el b/lisp/files.el index e623bc66080..fb4662e7ea8 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -3523,7 +3523,7 @@ LIST is a list of the form accepted by the function. | |||
| 3523 | When a file is visited, the file's class is found. A directory | 3523 | When a file is visited, the file's class is found. A directory |
| 3524 | may be assigned a class using `dir-locals-set-directory-class'. | 3524 | may be assigned a class using `dir-locals-set-directory-class'. |
| 3525 | Then variables are set in the file's buffer according to the | 3525 | Then variables are set in the file's buffer according to the |
| 3526 | class' LIST. The list is processed in order. | 3526 | VARIABLES list of the class. The list is processed in order. |
| 3527 | 3527 | ||
| 3528 | * If the element is of the form (MAJOR-MODE . ALIST), and the | 3528 | * If the element is of the form (MAJOR-MODE . ALIST), and the |
| 3529 | buffer's major mode is derived from MAJOR-MODE (as determined | 3529 | buffer's major mode is derived from MAJOR-MODE (as determined |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index ef0f1c5c852..23e800e0f3f 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | 2012-04-14 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * gnus-msg.el (gnus-inews-insert-gcc): Don't do the alist stuff when we | ||
| 4 | don't have a current group. | ||
| 5 | |||
| 6 | * gnus-msg.el (gnus-inews-insert-gcc): Protect against when we don't | ||
| 7 | have a group name. | ||
| 8 | |||
| 9 | * gnus-art.el (article-wash-html): Ensure that we insert the HTML into | ||
| 10 | a multibyte buffer (bug#7410). | ||
| 11 | (article-wash-html): Parse the original article buffer to get the | ||
| 12 | unencoded data (bug#7410). | ||
| 13 | |||
| 14 | * gnus-start.el (gnus-read-newsrc-el-file): Protect against broken | ||
| 15 | .newsrc.el files. | ||
| 16 | |||
| 1 | 2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org> | 17 | 2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 18 | ||
| 3 | * auth-source.el (auth-source-netrc-create): Quote tokens that contain | 19 | * auth-source.el (auth-source-netrc-create): Quote tokens that contain |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 048f8956567..b04615dc5a9 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -2754,9 +2754,11 @@ If READ-CHARSET, ask for a coding system." | |||
| 2754 | (let ((handles nil) | 2754 | (let ((handles nil) |
| 2755 | (buffer-read-only nil)) | 2755 | (buffer-read-only nil)) |
| 2756 | (when (gnus-buffer-live-p gnus-original-article-buffer) | 2756 | (when (gnus-buffer-live-p gnus-original-article-buffer) |
| 2757 | (setq handles (mm-dissect-buffer t t))) | 2757 | (with-current-buffer gnus-original-article-buffer |
| 2758 | (setq handles (mm-dissect-buffer t t)))) | ||
| 2758 | (article-goto-body) | 2759 | (article-goto-body) |
| 2759 | (delete-region (point) (point-max)) | 2760 | (delete-region (point) (point-max)) |
| 2761 | (mm-enable-multibyte) | ||
| 2760 | (mm-inline-text-html handles))) | 2762 | (mm-inline-text-html handles))) |
| 2761 | 2763 | ||
| 2762 | (defvar gnus-article-browse-html-temp-list nil | 2764 | (defvar gnus-article-browse-html-temp-list nil |
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index 500ace9e8ff..815bd9e44a6 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el | |||
| @@ -1664,17 +1664,19 @@ this is a reply." | |||
| 1664 | ((functionp var) | 1664 | ((functionp var) |
| 1665 | ;; A function. | 1665 | ;; A function. |
| 1666 | (funcall var group)) | 1666 | (funcall var group)) |
| 1667 | (t | 1667 | (group |
| 1668 | ;; An alist of regexps/functions/forms. | 1668 | ;; An alist of regexps/functions/forms. |
| 1669 | (while (and var | 1669 | (while (and var |
| 1670 | (not | 1670 | (not |
| 1671 | (setq result | 1671 | (setq result |
| 1672 | (cond | 1672 | (cond |
| 1673 | ((stringp (caar var)) | 1673 | ((and group |
| 1674 | (stringp (caar var))) | ||
| 1674 | ;; Regexp. | 1675 | ;; Regexp. |
| 1675 | (when (string-match (caar var) group) | 1676 | (when (string-match (caar var) group) |
| 1676 | (cdar var))) | 1677 | (cdar var))) |
| 1677 | ((functionp (car var)) | 1678 | ((and group |
| 1679 | (functionp (car var))) | ||
| 1678 | ;; Function. | 1680 | ;; Function. |
| 1679 | (funcall (car var) group)) | 1681 | (funcall (car var) group)) |
| 1680 | (t | 1682 | (t |
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index bb7dd76d590..f025960c348 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -2442,7 +2442,9 @@ If FORCE is non-nil, the .newsrc file is read." | |||
| 2442 | (when gnus-newsrc-assoc | 2442 | (when gnus-newsrc-assoc |
| 2443 | (setq gnus-newsrc-alist gnus-newsrc-assoc)))) | 2443 | (setq gnus-newsrc-alist gnus-newsrc-assoc)))) |
| 2444 | (dolist (elem gnus-newsrc-alist) | 2444 | (dolist (elem gnus-newsrc-alist) |
| 2445 | (setcar elem (mm-string-as-unibyte (car elem)))) | 2445 | ;; Protect against broken .newsrc.el files. |
| 2446 | (when (car elem) | ||
| 2447 | (setcar elem (mm-string-as-unibyte (car elem))))) | ||
| 2446 | (gnus-make-hashtable-from-newsrc-alist) | 2448 | (gnus-make-hashtable-from-newsrc-alist) |
| 2447 | (when (file-newer-than-file-p file ding-file) | 2449 | (when (file-newer-than-file-p file ding-file) |
| 2448 | ;; Old format quick file | 2450 | ;; Old format quick file |
diff --git a/lisp/international/characters.el b/lisp/international/characters.el index 1739b1f9ea3..c75ca8106ac 100644 --- a/lisp/international/characters.el +++ b/lisp/international/characters.el | |||
| @@ -576,9 +576,7 @@ with L, LRE, or LRO Unicode bidi character type.") | |||
| 576 | (set-case-syntax-pair from (1+ from) tbl) | 576 | (set-case-syntax-pair from (1+ from) tbl) |
| 577 | (setq from (+ from 2)))))) | 577 | (setq from (+ from 2)))))) |
| 578 | 578 | ||
| 579 | (set-case-syntax-pair #x178 #x0ff tbl) | 579 | (set-case-syntax-pair ?Ÿ ?ÿ tbl) |
| 580 | (set-case-syntax-pair #x189 #x256 tbl) | ||
| 581 | (set-case-syntax-pair #x18A #x257 tbl) | ||
| 582 | 580 | ||
| 583 | ;; In some languages, such as Turkish, U+0049 LATIN CAPITAL LETTER I | 581 | ;; In some languages, such as Turkish, U+0049 LATIN CAPITAL LETTER I |
| 584 | ;; and U+0131 LATIN SMALL LETTER DOTLESS I make a case pair, and so | 582 | ;; and U+0131 LATIN SMALL LETTER DOTLESS I make a case pair, and so |
| @@ -594,6 +592,8 @@ with L, LRE, or LRO Unicode bidi character type.") | |||
| 594 | 592 | ||
| 595 | (set-case-syntax-pair ?Ɓ ?ɓ tbl) | 593 | (set-case-syntax-pair ?Ɓ ?ɓ tbl) |
| 596 | (set-case-syntax-pair ?Ɔ ?ɔ tbl) | 594 | (set-case-syntax-pair ?Ɔ ?ɔ tbl) |
| 595 | (set-case-syntax-pair ?Ɖ ?ɖ tbl) | ||
| 596 | (set-case-syntax-pair ?Ɗ ?ɗ tbl) | ||
| 597 | (set-case-syntax-pair ?Ǝ ?ǝ tbl) | 597 | (set-case-syntax-pair ?Ǝ ?ǝ tbl) |
| 598 | (set-case-syntax-pair ?Ə ?ə tbl) | 598 | (set-case-syntax-pair ?Ə ?ə tbl) |
| 599 | (set-case-syntax-pair ?Ɛ ?ɛ tbl) | 599 | (set-case-syntax-pair ?Ɛ ?ɛ tbl) |
| @@ -622,6 +622,12 @@ with L, LRE, or LRO Unicode bidi character type.") | |||
| 622 | (set-case-syntax-pair ?Dz ?dz tbl) | 622 | (set-case-syntax-pair ?Dz ?dz tbl) |
| 623 | (set-case-syntax-pair ?Ƕ ?ƕ tbl) | 623 | (set-case-syntax-pair ?Ƕ ?ƕ tbl) |
| 624 | (set-case-syntax-pair ?Ƿ ?ƿ tbl) | 624 | (set-case-syntax-pair ?Ƿ ?ƿ tbl) |
| 625 | (set-case-syntax-pair ?Ⱥ ?ⱥ tbl) | ||
| 626 | (set-case-syntax-pair ?Ƚ ?ƚ tbl) | ||
| 627 | (set-case-syntax-pair ?Ⱦ ?ⱦ tbl) | ||
| 628 | (set-case-syntax-pair ?Ƀ ?ƀ tbl) | ||
| 629 | (set-case-syntax-pair ?Ʉ ?ʉ tbl) | ||
| 630 | (set-case-syntax-pair ?Ʌ ?ʌ tbl) | ||
| 625 | 631 | ||
| 626 | ;; Latin Extended Additional | 632 | ;; Latin Extended Additional |
| 627 | (modify-category-entry '(#x1e00 . #x1ef9) ?l) | 633 | (modify-category-entry '(#x1e00 . #x1ef9) ?l) |
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index 7bf15009687..1f88df52fd4 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -1754,8 +1754,9 @@ functions, so they won't be called at all." | |||
| 1754 | :type '(repeat function)) | 1754 | :type '(repeat function)) |
| 1755 | 1755 | ||
| 1756 | (defvar set-auto-coding-for-load nil | 1756 | (defvar set-auto-coding-for-load nil |
| 1757 | "Non-nil means look for `load-coding' property instead of `coding'. | 1757 | "Non-nil means respect a \"unibyte: t\" entry in file local variables. |
| 1758 | This is used for loading and byte-compiling Emacs Lisp files.") | 1758 | Emacs binds this variable to t when loading or byte-compiling Emacs Lisp |
| 1759 | files.") | ||
| 1759 | 1760 | ||
| 1760 | (defun auto-coding-alist-lookup (filename) | 1761 | (defun auto-coding-alist-lookup (filename) |
| 1761 | "Return the coding system specified by `auto-coding-alist' for FILENAME." | 1762 | "Return the coding system specified by `auto-coding-alist' for FILENAME." |
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index eb731897212..c7e14ca481b 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -1506,7 +1506,7 @@ exit." | |||
| 1506 | (let ((map (make-sparse-keymap))) | 1506 | (let ((map (make-sparse-keymap))) |
| 1507 | ;; FIXME: Only works if completion-in-region-mode was activated via | 1507 | ;; FIXME: Only works if completion-in-region-mode was activated via |
| 1508 | ;; completion-at-point called directly. | 1508 | ;; completion-at-point called directly. |
| 1509 | (define-key map "?" 'completion-help-at-point) | 1509 | (define-key map "\M-?" 'completion-help-at-point) |
| 1510 | (define-key map "\t" 'completion-at-point) | 1510 | (define-key map "\t" 'completion-at-point) |
| 1511 | map) | 1511 | map) |
| 1512 | "Keymap activated during `completion-in-region'.") | 1512 | "Keymap activated during `completion-in-region'.") |
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index be4dee5d265..485af6e1b5e 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el | |||
| @@ -2181,17 +2181,13 @@ CHANNELS is a comma- or space-separated string of channel names." | |||
| 2181 | (let ((channel (if (> (length channel) 0) channel target))) | 2181 | (let ((channel (if (> (length channel) 0) channel target))) |
| 2182 | (rcirc-send-string process (concat "PART " channel " :" rcirc-id-string)))) | 2182 | (rcirc-send-string process (concat "PART " channel " :" rcirc-id-string)))) |
| 2183 | 2183 | ||
| 2184 | (defun-rcirc-command quit (reason all) | 2184 | (defun-rcirc-command quit (reason) |
| 2185 | "Send a quit message to server with REASON. | 2185 | "Send a quit message to server with REASON." |
| 2186 | When called with prefix, quit all servers." | 2186 | (interactive "sQuit reason: ") |
| 2187 | (interactive "sQuit reason: \nP") | 2187 | (rcirc-send-string process (concat "QUIT :" |
| 2188 | (dolist (p (if all | 2188 | (if (not (zerop (length reason))) |
| 2189 | (rcirc-process-list) | 2189 | reason |
| 2190 | (list process))) | 2190 | rcirc-id-string)))) |
| 2191 | (rcirc-send-string p (concat "QUIT :" | ||
| 2192 | (if (not (zerop (length reason))) | ||
| 2193 | reason | ||
| 2194 | rcirc-id-string))))) | ||
| 2195 | 2191 | ||
| 2196 | (defun-rcirc-command nick (nick) | 2192 | (defun-rcirc-command nick (nick) |
| 2197 | "Change nick to NICK." | 2193 | "Change nick to NICK." |
diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index 618d5753a46..86f493a0a5b 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog | |||
| @@ -1,3 +1,49 @@ | |||
| 1 | 2012-04-14 Bastien Guerry <bzg@gnu.org> | ||
| 2 | |||
| 3 | * org.el (org-point-at-end-of-empty-headline): Only try to match | ||
| 4 | `org-todo-line-regexp' when the value is non-nil, e.g. in non-org | ||
| 5 | modes. | ||
| 6 | (org-fontify-meta-lines-and-blocks-1): Prevent errors when trying | ||
| 7 | to fontify beyond (point-max). | ||
| 8 | |||
| 9 | * org-clock.el (org-clock-task-overrun-text) | ||
| 10 | (org-task-overrun, org-clock-get-clock-string) | ||
| 11 | (org-clock-update-mode-line) | ||
| 12 | (org-clock-notify-once-if-expired): Rename `org-task-overrun' | ||
| 13 | and `org-task-overrun-text' to `org-clock-task-overrun' and | ||
| 14 | `org-clock-task-overrun-text' respectively. | ||
| 15 | (org-task-overrun-text): New alias. | ||
| 16 | |||
| 17 | * org-table.el (org-table-eval-formula): Fix bug about handling | ||
| 18 | remote references as durations. | ||
| 19 | (org-table-get-range): Fix bug: make sure references to $0 are | ||
| 20 | correctly handled. | ||
| 21 | |||
| 22 | * org-pcomplete.el (pcomplete/org-mode/file-option): | ||
| 23 | Fix bug in `pcomplete/org-mode/file-option'. | ||
| 24 | (org-thing-at-point): Also match line options like LATEX_CLASS | ||
| 25 | when pcompleting from LATEX_. | ||
| 26 | |||
| 27 | * org-agenda.el (org-agenda-filter-make-matcher) | ||
| 28 | (org-agenda-filter-apply): Allow filtering entries out by | ||
| 29 | category. Using `C-u <' from the agenda view will redisplay | ||
| 30 | the agenda without entries from categories of the current line. | ||
| 31 | |||
| 32 | 2012-04-14 Eric Schulte <eric.schulte@gmx.com> | ||
| 33 | |||
| 34 | * ob-C.el (org-babel-C-ensure-main-wrap): | ||
| 35 | Add an explicit return to automatically generated main methods. | ||
| 36 | |||
| 37 | 2012-04-14 Matt Lundin <mdl@imapmail.org> | ||
| 38 | |||
| 39 | * org.el (org-after-todo-state-change-hook): | ||
| 40 | Fix docstring to reflect name change of state to `org-state'. | ||
| 41 | |||
| 42 | 2012-04-14 Mike Sperber <sperber@deinprogramm.de> (tiny change) | ||
| 43 | |||
| 44 | * org-footnote.el (org-footnote-normalize): | ||
| 45 | Correctly pass keyword arguments to `org-export-preprocess-string'. | ||
| 46 | |||
| 1 | 2012-04-03 Bastien Guerry <bzg@gnu.org> | 47 | 2012-04-03 Bastien Guerry <bzg@gnu.org> |
| 2 | 48 | ||
| 3 | * org.el (org-todo): Fix regression: rename `state' to | 49 | * org.el (org-todo): Fix regression: rename `state' to |
diff --git a/lisp/org/ob-C.el b/lisp/org/ob-C.el index 5f6c1cb1dd1..583510ac618 100644 --- a/lisp/org/ob-C.el +++ b/lisp/org/ob-C.el | |||
| @@ -152,7 +152,7 @@ it's header arguments." | |||
| 152 | "Wrap body in a \"main\" function call if none exists." | 152 | "Wrap body in a \"main\" function call if none exists." |
| 153 | (if (string-match "^[ \t]*[intvod]+[ \t\n\r]*main[ \t]*(.*)" body) | 153 | (if (string-match "^[ \t]*[intvod]+[ \t\n\r]*main[ \t]*(.*)" body) |
| 154 | body | 154 | body |
| 155 | (format "int main() {\n%s\n}\n" body))) | 155 | (format "int main() {\n%s\nreturn(0);\n}\n" body))) |
| 156 | 156 | ||
| 157 | (defun org-babel-prep-session:C (session params) | 157 | (defun org-babel-prep-session:C (session params) |
| 158 | "This function does nothing as C is a compiled language with no | 158 | "This function does nothing as C is a compiled language with no |
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el index 324ddd27f9a..3bb0fc84897 100644 --- a/lisp/org/org-agenda.el +++ b/lisp/org/org-agenda.el | |||
| @@ -6365,7 +6365,9 @@ to switch to narrowing." | |||
| 6365 | (dolist (x (delete-dups | 6365 | (dolist (x (delete-dups |
| 6366 | (append (get 'org-agenda-category-filter | 6366 | (append (get 'org-agenda-category-filter |
| 6367 | :preset-filter) org-agenda-category-filter))) | 6367 | :preset-filter) org-agenda-category-filter))) |
| 6368 | (setq f1 (list 'equal (substring x 1) 'cat)) | 6368 | (if (equal "-" (substring x 0 1)) |
| 6369 | (setq f1 (list 'not (list 'equal (substring x 1) 'cat))) | ||
| 6370 | (setq f1 (list 'equal (substring x 1) 'cat))) | ||
| 6369 | (push f1 f)) | 6371 | (push f1 f)) |
| 6370 | (cons 'and (nreverse f)))) | 6372 | (cons 'and (nreverse f)))) |
| 6371 | 6373 | ||
| @@ -6396,9 +6398,13 @@ If the line does not have an effort defined, return nil." | |||
| 6396 | (let (tags cat) | 6398 | (let (tags cat) |
| 6397 | (if (eq type 'tag) | 6399 | (if (eq type 'tag) |
| 6398 | (setq org-agenda-tag-filter filter) | 6400 | (setq org-agenda-tag-filter filter) |
| 6399 | (setq org-agenda-category-filter filter | 6401 | (setq org-agenda-category-filter filter)) |
| 6400 | org-agenda-filtered-by-category t)) | ||
| 6401 | (setq org-agenda-filter-form (org-agenda-filter-make-matcher)) | 6402 | (setq org-agenda-filter-form (org-agenda-filter-make-matcher)) |
| 6403 | (if (and (eq type 'category) | ||
| 6404 | (not (equal (substring (car filter) 0 1) "-"))) | ||
| 6405 | ;; Only set `org-agenda-filtered-by-category' to t | ||
| 6406 | ;; when a unique category is used as the filter | ||
| 6407 | (setq org-agenda-filtered-by-category t)) | ||
| 6402 | (org-agenda-set-mode-name) | 6408 | (org-agenda-set-mode-name) |
| 6403 | (save-excursion | 6409 | (save-excursion |
| 6404 | (goto-char (point-min)) | 6410 | (goto-char (point-min)) |
| @@ -6412,7 +6418,7 @@ If the line does not have an effort defined, return nil." | |||
| 6412 | (beginning-of-line 2)) | 6418 | (beginning-of-line 2)) |
| 6413 | (beginning-of-line 2)))) | 6419 | (beginning-of-line 2)))) |
| 6414 | (if (get-char-property (point) 'invisible) | 6420 | (if (get-char-property (point) 'invisible) |
| 6415 | (org-agenda-previous-line)))) | 6421 | (ignore-errors (org-agenda-previous-line))))) |
| 6416 | 6422 | ||
| 6417 | (defun org-agenda-filter-hide-line (type) | 6423 | (defun org-agenda-filter-hide-line (type) |
| 6418 | (let (ov) | 6424 | (let (ov) |
diff --git a/lisp/org/org-clock.el b/lisp/org/org-clock.el index 7105bfe13dc..434f6a1d5f6 100644 --- a/lisp/org/org-clock.el +++ b/lisp/org/org-clock.el | |||
| @@ -219,7 +219,8 @@ auto Automatically, either `all', or `repeat' for repeating tasks" | |||
| 219 | (const :tag "All task time" all) | 219 | (const :tag "All task time" all) |
| 220 | (const :tag "Automatically, `all' or since `repeat'" auto))) | 220 | (const :tag "Automatically, `all' or since `repeat'" auto))) |
| 221 | 221 | ||
| 222 | (defcustom org-task-overrun-text nil | 222 | (defvaralias 'org-task-overrun-text 'org-clock-task-overrun-text) |
| 223 | (defcustom org-clock-task-overrun-text nil | ||
| 223 | "The extra modeline text that should indicate that the clock is overrun. | 224 | "The extra modeline text that should indicate that the clock is overrun. |
| 224 | The can be nil to indicate that instead of adding text, the clock time | 225 | The can be nil to indicate that instead of adding text, the clock time |
| 225 | should get a different face (`org-mode-line-clock-overrun'). | 226 | should get a different face (`org-mode-line-clock-overrun'). |
| @@ -495,7 +496,7 @@ pointing to it." | |||
| 495 | (insert (format "[%c] %-15s %s\n" i cat task)) | 496 | (insert (format "[%c] %-15s %s\n" i cat task)) |
| 496 | (cons i marker))))) | 497 | (cons i marker))))) |
| 497 | 498 | ||
| 498 | (defvar org-task-overrun nil | 499 | (defvar org-clock-task-overrun nil |
| 499 | "Internal flag indicating if the clock has overrun the planned time.") | 500 | "Internal flag indicating if the clock has overrun the planned time.") |
| 500 | (defvar org-clock-update-period 60 | 501 | (defvar org-clock-update-period 60 |
| 501 | "Number of seconds between mode line clock string updates.") | 502 | "Number of seconds between mode line clock string updates.") |
| @@ -516,7 +517,7 @@ If not, show simply the clocked time like 01:50." | |||
| 516 | (work-done-str | 517 | (work-done-str |
| 517 | (org-propertize | 518 | (org-propertize |
| 518 | (format org-time-clocksum-format h m) | 519 | (format org-time-clocksum-format h m) |
| 519 | 'face (if (and org-task-overrun (not org-task-overrun-text)) | 520 | 'face (if (and org-clock-task-overrun (not org-clock-task-overrun-text)) |
| 520 | 'org-mode-line-clock-overrun 'org-mode-line-clock))) | 521 | 'org-mode-line-clock-overrun 'org-mode-line-clock))) |
| 521 | (effort-str (format org-time-clocksum-format effort-h effort-m)) | 522 | (effort-str (format org-time-clocksum-format effort-h effort-m)) |
| 522 | (clockstr (org-propertize | 523 | (clockstr (org-propertize |
| @@ -532,7 +533,7 @@ If not, show simply the clocked time like 01:50." | |||
| 532 | (defun org-clock-update-mode-line () | 533 | (defun org-clock-update-mode-line () |
| 533 | (if org-clock-effort | 534 | (if org-clock-effort |
| 534 | (org-clock-notify-once-if-expired) | 535 | (org-clock-notify-once-if-expired) |
| 535 | (setq org-task-overrun nil)) | 536 | (setq org-clock-task-overrun nil)) |
| 536 | (setq org-mode-line-string | 537 | (setq org-mode-line-string |
| 537 | (org-propertize | 538 | (org-propertize |
| 538 | (let ((clock-string (org-clock-get-clock-string)) | 539 | (let ((clock-string (org-clock-get-clock-string)) |
| @@ -546,10 +547,10 @@ If not, show simply the clocked time like 01:50." | |||
| 546 | 'local-map org-clock-mode-line-map | 547 | 'local-map org-clock-mode-line-map |
| 547 | 'mouse-face (if (featurep 'xemacs) 'highlight 'mode-line-highlight) | 548 | 'mouse-face (if (featurep 'xemacs) 'highlight 'mode-line-highlight) |
| 548 | )) | 549 | )) |
| 549 | (if (and org-task-overrun org-task-overrun-text) | 550 | (if (and org-clock-task-overrun org-clock-task-overrun-text) |
| 550 | (setq org-mode-line-string | 551 | (setq org-mode-line-string |
| 551 | (concat (org-propertize | 552 | (concat (org-propertize |
| 552 | org-task-overrun-text | 553 | org-clock-task-overrun-text |
| 553 | 'face 'org-mode-line-clock-overrun) org-mode-line-string))) | 554 | 'face 'org-mode-line-clock-overrun) org-mode-line-string))) |
| 554 | (force-mode-line-update)) | 555 | (force-mode-line-update)) |
| 555 | 556 | ||
| @@ -606,7 +607,7 @@ Notification is shown only once." | |||
| 606 | (when (org-clocking-p) | 607 | (when (org-clocking-p) |
| 607 | (let ((effort-in-minutes (org-duration-string-to-minutes org-clock-effort)) | 608 | (let ((effort-in-minutes (org-duration-string-to-minutes org-clock-effort)) |
| 608 | (clocked-time (org-clock-get-clocked-time))) | 609 | (clocked-time (org-clock-get-clocked-time))) |
| 609 | (if (setq org-task-overrun | 610 | (if (setq org-clock-task-overrun |
| 610 | (if (or (null effort-in-minutes) (zerop effort-in-minutes)) | 611 | (if (or (null effort-in-minutes) (zerop effort-in-minutes)) |
| 611 | nil | 612 | nil |
| 612 | (>= clocked-time effort-in-minutes))) | 613 | (>= clocked-time effort-in-minutes))) |
diff --git a/lisp/org/org-footnote.el b/lisp/org/org-footnote.el index 34fc31f39d6..9319e0813c0 100644 --- a/lisp/org/org-footnote.el +++ b/lisp/org/org-footnote.el | |||
| @@ -704,7 +704,7 @@ Additional note on `org-footnote-insert-pos-for-preprocessor': | |||
| 704 | (org-combine-plists | 704 | (org-combine-plists |
| 705 | export-props | 705 | export-props |
| 706 | '(:todo-keywords t :tags t :priority t)))) | 706 | '(:todo-keywords t :tags t :priority t)))) |
| 707 | (org-export-preprocess-string def parameters)) | 707 | (apply #'org-export-preprocess-string def parameters)) |
| 708 | def) | 708 | def) |
| 709 | ;; Reference beginning position is a marker | 709 | ;; Reference beginning position is a marker |
| 710 | ;; to preserve it during further buffer | 710 | ;; to preserve it during further buffer |
diff --git a/lisp/org/org-pcomplete.el b/lisp/org/org-pcomplete.el index 0ca8777878c..5950d8e26da 100644 --- a/lisp/org/org-pcomplete.el +++ b/lisp/org/org-pcomplete.el | |||
| @@ -69,7 +69,7 @@ The return value is a string naming the thing at point." | |||
| 69 | (re-search-backward "^[ \t]*#\\+\\([A-Z_]+\\):.*" | 69 | (re-search-backward "^[ \t]*#\\+\\([A-Z_]+\\):.*" |
| 70 | (line-beginning-position) t)) | 70 | (line-beginning-position) t)) |
| 71 | (cons "file-option" (match-string-no-properties 1))) | 71 | (cons "file-option" (match-string-no-properties 1))) |
| 72 | ((string-match "\\`[ \t]*#\\+[a-zA-Z]*\\'" line-to-here) | 72 | ((string-match "\\`[ \t]*#\\+[a-zA-Z_]*\\'" line-to-here) |
| 73 | (cons "file-option" nil)) | 73 | (cons "file-option" nil)) |
| 74 | ((equal (char-before beg) ?\[) | 74 | ((equal (char-before beg) ?\[) |
| 75 | (cons "link" nil)) | 75 | (cons "link" nil)) |
| @@ -144,7 +144,7 @@ When completing for #+STARTUP, for example, this function returns | |||
| 144 | (if (string-match "^#\\+\\([A-Z_]+:?\\)" x) | 144 | (if (string-match "^#\\+\\([A-Z_]+:?\\)" x) |
| 145 | (match-string 1 x))) | 145 | (match-string 1 x))) |
| 146 | (org-split-string (org-get-current-options) "\n")) | 146 | (org-split-string (org-get-current-options) "\n")) |
| 147 | org-additional-option-like-keywords))))) | 147 | (copy-sequence org-additional-option-like-keywords)))))) |
| 148 | (substring pcomplete-stub 2))) | 148 | (substring pcomplete-stub 2))) |
| 149 | 149 | ||
| 150 | (defvar org-startup-options) | 150 | (defvar org-startup-options) |
diff --git a/lisp/org/org-special-blocks.el b/lisp/org/org-special-blocks.el index 5bf8362357f..43b37c64016 100644 --- a/lisp/org/org-special-blocks.el +++ b/lisp/org/org-special-blocks.el | |||
| @@ -80,17 +80,17 @@ seen. This is run after a few special cases are taken care of." | |||
| 80 | (add-hook 'org-export-latex-after-blockquotes-hook | 80 | (add-hook 'org-export-latex-after-blockquotes-hook |
| 81 | 'org-special-blocks-convert-latex-special-cookies) | 81 | 'org-special-blocks-convert-latex-special-cookies) |
| 82 | 82 | ||
| 83 | (defvar org-special-blocks-line) | 83 | (defvar line) |
| 84 | (defun org-special-blocks-convert-html-special-cookies () | 84 | (defun org-special-blocks-convert-html-special-cookies () |
| 85 | "Converts the special cookies into div blocks." | 85 | "Converts the special cookies into div blocks." |
| 86 | ;; Uses the dynamically-bound variable `org-special-blocks-line'. | 86 | ;; Uses the dynamically-bound variable `line'. |
| 87 | (when (string-match "^ORG-\\(.*\\)-\\(START\\|END\\)$" org-special-blocks-line) | 87 | (when (string-match "^ORG-\\(.*\\)-\\(START\\|END\\)$" line) |
| 88 | (message "%s" (match-string 1)) | 88 | (message "%s" (match-string 1)) |
| 89 | (when (equal (match-string 2 org-special-blocks-line) "START") | 89 | (when (equal (match-string 2 line) "START") |
| 90 | (org-close-par-maybe) | 90 | (org-close-par-maybe) |
| 91 | (insert "\n<div class=\"" (match-string 1 org-special-blocks-line) "\">") | 91 | (insert "\n<div class=\"" (match-string 1 line) "\">") |
| 92 | (org-open-par)) | 92 | (org-open-par)) |
| 93 | (when (equal (match-string 2 org-special-blocks-line) "END") | 93 | (when (equal (match-string 2 line) "END") |
| 94 | (org-close-par-maybe) | 94 | (org-close-par-maybe) |
| 95 | (insert "\n</div>") | 95 | (insert "\n</div>") |
| 96 | (org-open-par)) | 96 | (org-open-par)) |
diff --git a/lisp/org/org-table.el b/lisp/org/org-table.el index ae12cee2abe..08981b57e49 100644 --- a/lisp/org/org-table.el +++ b/lisp/org/org-table.el | |||
| @@ -2526,8 +2526,13 @@ not overwrite the stored one." | |||
| 2526 | (replace-match | 2526 | (replace-match |
| 2527 | (save-match-data | 2527 | (save-match-data |
| 2528 | (org-table-make-reference | 2528 | (org-table-make-reference |
| 2529 | (org-table-get-remote-range | 2529 | (let ((rmtrng (org-table-get-remote-range |
| 2530 | (match-string 1 form) (match-string 2 form)) | 2530 | (match-string 1 form) (match-string 2 form)))) |
| 2531 | (if duration | ||
| 2532 | (if (listp rmtrng) | ||
| 2533 | (mapcar (lambda(x) (org-table-time-string-to-seconds x)) rmtrng) | ||
| 2534 | (org-table-time-string-to-seconds rmtrng)) | ||
| 2535 | rmtrng)) | ||
| 2531 | keep-empty numbers lispp)) | 2536 | keep-empty numbers lispp)) |
| 2532 | t t form))) | 2537 | t t form))) |
| 2533 | ;; Insert complex ranges | 2538 | ;; Insert complex ranges |
| @@ -2663,8 +2668,8 @@ in the buffer and column1 and column2 are table column numbers." | |||
| 2663 | ; (setq r2 (or r2 r1) c2 (or c2 c1)) | 2668 | ; (setq r2 (or r2 r1) c2 (or c2 c1)) |
| 2664 | (if (not r1) (setq r1 thisline)) | 2669 | (if (not r1) (setq r1 thisline)) |
| 2665 | (if (not r2) (setq r2 thisline)) | 2670 | (if (not r2) (setq r2 thisline)) |
| 2666 | (if (not c1) (setq c1 col)) | 2671 | (if (or (not c1) (= 0 c1)) (setq c1 col)) |
| 2667 | (if (not c2) (setq c2 col)) | 2672 | (if (or (not c2) (= 0 c2)) (setq c2 col)) |
| 2668 | (if (and (not corners-only) | 2673 | (if (and (not corners-only) |
| 2669 | (or (not rangep) (and (= r1 r2) (= c1 c2)))) | 2674 | (or (not rangep) (and (= r1 r2) (= c1 c2)))) |
| 2670 | ;; just one field | 2675 | ;; just one field |
diff --git a/lisp/org/org.el b/lisp/org/org.el index 0f13223d0c1..c2cc2354439 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Maintainer: Bastien Guerry <bzg at gnu dot org> | 6 | ;; Maintainer: Bastien Guerry <bzg at gnu dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 7.8.08 | 9 | ;; Version: 7.8.09 |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
| @@ -206,7 +206,7 @@ identifier." | |||
| 206 | 206 | ||
| 207 | ;;; Version | 207 | ;;; Version |
| 208 | 208 | ||
| 209 | (defconst org-version "7.8.08" | 209 | (defconst org-version "7.8.09" |
| 210 | "The version number of the file org.el.") | 210 | "The version number of the file org.el.") |
| 211 | 211 | ||
| 212 | ;;;###autoload | 212 | ;;;###autoload |
| @@ -2225,7 +2225,7 @@ property and include the word \"recursive\" into the value." | |||
| 2225 | (defcustom org-after-todo-state-change-hook nil | 2225 | (defcustom org-after-todo-state-change-hook nil |
| 2226 | "Hook which is run after the state of a TODO item was changed. | 2226 | "Hook which is run after the state of a TODO item was changed. |
| 2227 | The new state (a string with a TODO keyword, or nil) is available in the | 2227 | The new state (a string with a TODO keyword, or nil) is available in the |
| 2228 | Lisp variable `state'." | 2228 | Lisp variable `org-state'." |
| 2229 | :group 'org-todo | 2229 | :group 'org-todo |
| 2230 | :type 'hook) | 2230 | :type 'hook) |
| 2231 | 2231 | ||
| @@ -5427,7 +5427,8 @@ will be prompted for." | |||
| 5427 | (when (re-search-forward | 5427 | (when (re-search-forward |
| 5428 | (concat "^[ \t]*#\\+end" (match-string 4) "\\>.*") | 5428 | (concat "^[ \t]*#\\+end" (match-string 4) "\\>.*") |
| 5429 | nil t) ;; on purpose, we look further than LIMIT | 5429 | nil t) ;; on purpose, we look further than LIMIT |
| 5430 | (setq end (match-end 0) end1 (1- (match-beginning 0))) | 5430 | (setq end (min (point-max) (match-end 0)) |
| 5431 | end1 (min (point-max) (1- (match-beginning 0)))) | ||
| 5431 | (setq block-end (match-beginning 0)) | 5432 | (setq block-end (match-beginning 0)) |
| 5432 | (when quoting | 5433 | (when quoting |
| 5433 | (remove-text-properties beg end | 5434 | (remove-text-properties beg end |
| @@ -5455,11 +5456,12 @@ will be prompted for." | |||
| 5455 | '(face org-block))) ; end of source block | 5456 | '(face org-block))) ; end of source block |
| 5456 | ((not org-fontify-quote-and-verse-blocks)) | 5457 | ((not org-fontify-quote-and-verse-blocks)) |
| 5457 | ((string= block-type "quote") | 5458 | ((string= block-type "quote") |
| 5458 | (add-text-properties beg1 (1+ end1) '(face org-quote))) | 5459 | (add-text-properties beg1 (min (point-max) (1+ end1)) '(face org-quote))) |
| 5459 | ((string= block-type "verse") | 5460 | ((string= block-type "verse") |
| 5460 | (add-text-properties beg1 (1+ end1) '(face org-verse)))) | 5461 | (add-text-properties beg1 (min (point-max) (1+ end1)) '(face org-verse)))) |
| 5461 | (add-text-properties beg beg1 '(face org-block-begin-line)) | 5462 | (add-text-properties beg beg1 '(face org-block-begin-line)) |
| 5462 | (add-text-properties (1+ end) (1+ end1) '(face org-block-end-line)) | 5463 | (add-text-properties (min (point-max) (1+ end)) (min (point-max) (1+ end1)) |
| 5464 | '(face org-block-end-line)) | ||
| 5463 | t)) | 5465 | t)) |
| 5464 | ((member dc1 '("title:" "author:" "email:" "date:")) | 5466 | ((member dc1 '("title:" "author:" "email:" "date:")) |
| 5465 | (add-text-properties | 5467 | (add-text-properties |
| @@ -5475,7 +5477,7 @@ will be prompted for." | |||
| 5475 | ((not (member (char-after beg) '(?\ ?\t))) | 5477 | ((not (member (char-after beg) '(?\ ?\t))) |
| 5476 | ;; just any other in-buffer setting, but not indented | 5478 | ;; just any other in-buffer setting, but not indented |
| 5477 | (add-text-properties | 5479 | (add-text-properties |
| 5478 | beg (1+ (match-end 0)) | 5480 | beg (match-end 0) |
| 5479 | '(font-lock-fontified t face org-meta-line)) | 5481 | '(font-lock-fontified t face org-meta-line)) |
| 5480 | t) | 5482 | t) |
| 5481 | ((or (member dc1 '("begin:" "end:" "caption:" "label:" | 5483 | ((or (member dc1 '("begin:" "end:" "caption:" "label:" |
| @@ -13422,8 +13424,7 @@ With prefix ARG, realign all tags in headings in the current buffer." | |||
| 13422 | ;; Get a new set of tags from the user | 13424 | ;; Get a new set of tags from the user |
| 13423 | (save-excursion | 13425 | (save-excursion |
| 13424 | (setq table (append org-tag-persistent-alist | 13426 | (setq table (append org-tag-persistent-alist |
| 13425 | org-tag-alist | 13427 | (or org-tag-alist (org-get-buffer-tags)) |
| 13426 | (org-get-buffer-tags) | ||
| 13427 | (and | 13428 | (and |
| 13428 | org-complete-tags-always-offer-all-agenda-tags | 13429 | org-complete-tags-always-offer-all-agenda-tags |
| 13429 | (org-global-tags-completion-table | 13430 | (org-global-tags-completion-table |
| @@ -13725,11 +13726,9 @@ Returns the new tags string, or nil to not change the current settings." | |||
| 13725 | (condition-case nil | 13726 | (condition-case nil |
| 13726 | (setq tg (org-icompleting-read | 13727 | (setq tg (org-icompleting-read |
| 13727 | "Tag: " | 13728 | "Tag: " |
| 13728 | (delete-dups | 13729 | (or buffer-tags |
| 13729 | (append (or buffer-tags | 13730 | (with-current-buffer buf |
| 13730 | (with-current-buffer buf | 13731 | (org-get-buffer-tags))))) |
| 13731 | (mapcar 'car (org-get-buffer-tags)))) | ||
| 13732 | (mapcar 'car table))))) | ||
| 13733 | (quit (setq tg ""))) | 13732 | (quit (setq tg ""))) |
| 13734 | (when (string-match "\\S-" tg) | 13733 | (when (string-match "\\S-" tg) |
| 13735 | (add-to-list 'buffer-tags (list tg)) | 13734 | (add-to-list 'buffer-tags (list tg)) |
| @@ -20775,11 +20774,12 @@ This version does not only check the character property, but also | |||
| 20775 | If the heading only contains a TODO keyword, it is still still considered | 20774 | If the heading only contains a TODO keyword, it is still still considered |
| 20776 | empty." | 20775 | empty." |
| 20777 | (and (looking-at "[ \t]*$") | 20776 | (and (looking-at "[ \t]*$") |
| 20778 | (save-excursion | 20777 | (when org-todo-line-regexp |
| 20779 | (beginning-of-line 1) | 20778 | (save-excursion |
| 20780 | (let ((case-fold-search nil)) | 20779 | (beginning-of-line 1) |
| 20781 | (looking-at org-todo-line-regexp))) | 20780 | (let ((case-fold-search nil)) |
| 20782 | (string= (match-string 3) ""))) | 20781 | (looking-at org-todo-line-regexp) |
| 20782 | (string= (match-string 3) "")))))) | ||
| 20783 | 20783 | ||
| 20784 | (defun org-at-heading-or-item-p () | 20784 | (defun org-at-heading-or-item-p () |
| 20785 | (or (org-at-heading-p) (org-at-item-p))) | 20785 | (or (org-at-heading-p) (org-at-item-p))) |
diff --git a/lisp/pcmpl-rpm.el b/lisp/pcmpl-rpm.el index 8019b876562..f28469d791b 100644 --- a/lisp/pcmpl-rpm.el +++ b/lisp/pcmpl-rpm.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; pcmpl-rpm.el --- functions for dealing with rpm completions | 1 | ;;; pcmpl-rpm.el --- functions for dealing with rpm completions |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1999-2012 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1999-2012 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Package: pcomplete | 5 | ;; Package: pcomplete |
| 6 | 6 | ||
| @@ -29,6 +29,13 @@ | |||
| 29 | 29 | ||
| 30 | ;; Functions: | 30 | ;; Functions: |
| 31 | 31 | ||
| 32 | ;; FIXME rpm -qa can be slow, so: | ||
| 33 | ;; Adding --nodigest --nosignature is MUCH faster. | ||
| 34 | ;; (Probably need to test --help for those options though.) | ||
| 35 | ;; Consider caching the result (cf woman). | ||
| 36 | ;; Consider printing an explanatory message before running -qa. | ||
| 37 | ;; | ||
| 38 | ;; Seems pointless for this to be a defsubst. | ||
| 32 | (defsubst pcmpl-rpm-packages () | 39 | (defsubst pcmpl-rpm-packages () |
| 33 | (split-string (pcomplete-process-result "rpm" "-q" "-a"))) | 40 | (split-string (pcomplete-process-result "rpm" "-q" "-a"))) |
| 34 | 41 | ||
| @@ -92,6 +99,7 @@ | |||
| 92 | '("--changelog" | 99 | '("--changelog" |
| 93 | "--dbpath" | 100 | "--dbpath" |
| 94 | "--dump" | 101 | "--dump" |
| 102 | "--file" | ||
| 95 | "--ftpport" ;nyi for the next four | 103 | "--ftpport" ;nyi for the next four |
| 96 | "--ftpproxy" | 104 | "--ftpproxy" |
| 97 | "--httpport" | 105 | "--httpport" |
| @@ -112,6 +120,8 @@ | |||
| 112 | (pcomplete-here*)) | 120 | (pcomplete-here*)) |
| 113 | ((pcomplete-test "--rcfile") | 121 | ((pcomplete-test "--rcfile") |
| 114 | (pcomplete-here* (pcomplete-entries))) | 122 | (pcomplete-here* (pcomplete-entries))) |
| 123 | ((pcomplete-test "--file") | ||
| 124 | (pcomplete-here* (pcomplete-entries))) | ||
| 115 | ((pcomplete-test "--root") | 125 | ((pcomplete-test "--root") |
| 116 | (pcomplete-here* (pcomplete-dirs))) | 126 | (pcomplete-here* (pcomplete-dirs))) |
| 117 | ((pcomplete-test "--scripts") | 127 | ((pcomplete-test "--scripts") |
| @@ -129,7 +139,9 @@ | |||
| 129 | (pcomplete-opt "af.p(pcmpl-rpm-files)ilsdcvR") | 139 | (pcomplete-opt "af.p(pcmpl-rpm-files)ilsdcvR") |
| 130 | (if (pcomplete-test "-[^-]*p" 'first 1) | 140 | (if (pcomplete-test "-[^-]*p" 'first 1) |
| 131 | (pcomplete-here (pcmpl-rpm-files)) | 141 | (pcomplete-here (pcmpl-rpm-files)) |
| 132 | (pcomplete-here (pcmpl-rpm-packages)))))) | 142 | (if (pcomplete-test "-[^-]*f" 'first 1) |
| 143 | (pcomplete-here* (pcomplete-entries)) | ||
| 144 | (pcomplete-here (pcmpl-rpm-packages))))))) | ||
| 133 | ((pcomplete-test "--pipe") | 145 | ((pcomplete-test "--pipe") |
| 134 | (pcomplete-here* (funcall pcomplete-command-completion-function))) | 146 | (pcomplete-here* (funcall pcomplete-command-completion-function))) |
| 135 | ((pcomplete-test "--rmsource") | 147 | ((pcomplete-test "--rmsource") |
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index cf38001c123..65e28c11e21 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -5382,7 +5382,7 @@ comment at the start of cc-engine.el for more info." | |||
| 5382 | new-beg new-end need-new-beg need-new-end) | 5382 | new-beg new-end need-new-beg need-new-end) |
| 5383 | ;; Locate the barrier before the changed region | 5383 | ;; Locate the barrier before the changed region |
| 5384 | (goto-char (if beg-lit-limits (car beg-lit-limits) beg)) | 5384 | (goto-char (if beg-lit-limits (car beg-lit-limits) beg)) |
| 5385 | (c-syntactic-skip-backward "^;{}" (max (- beg 2048) (point-min))) | 5385 | (c-syntactic-skip-backward "^;{}" (c-determine-limit 512)) |
| 5386 | (setq new-beg (point)) | 5386 | (setq new-beg (point)) |
| 5387 | 5387 | ||
| 5388 | ;; Remove the syntax-table properties from each pertinent <...> pair. | 5388 | ;; Remove the syntax-table properties from each pertinent <...> pair. |
| @@ -5393,8 +5393,7 @@ comment at the start of cc-engine.el for more info." | |||
| 5393 | 5393 | ||
| 5394 | ;; Locate the barrier after END. | 5394 | ;; Locate the barrier after END. |
| 5395 | (goto-char (if end-lit-limits (cdr end-lit-limits) end)) | 5395 | (goto-char (if end-lit-limits (cdr end-lit-limits) end)) |
| 5396 | (c-syntactic-re-search-forward "[;{}]" | 5396 | (c-syntactic-re-search-forward "[;{}]" (c-determine-+ve-limit 512) 'end) |
| 5397 | (min (+ end 2048) (point-max)) 'end) | ||
| 5398 | (setq new-end (point)) | 5397 | (setq new-end (point)) |
| 5399 | 5398 | ||
| 5400 | ;; Remove syntax-table properties from the remaining pertinent <...> | 5399 | ;; Remove syntax-table properties from the remaining pertinent <...> |
diff --git a/lisp/progmodes/cc-menus.el b/lisp/progmodes/cc-menus.el index f57fcbff5ca..a53d65f6307 100644 --- a/lisp/progmodes/cc-menus.el +++ b/lisp/progmodes/cc-menus.el | |||
| @@ -63,6 +63,20 @@ For example: | |||
| 63 | 63 | ||
| 64 | A sample value might look like: `\\(_P\\|_PROTO\\)'.") | 64 | A sample value might look like: `\\(_P\\|_PROTO\\)'.") |
| 65 | 65 | ||
| 66 | ;; *Warning for cc-mode developers* | ||
| 67 | ;; | ||
| 68 | ;; `cc-imenu-objc-generic-expression' elements depend on | ||
| 69 | ;; `cc-imenu-c++-generic-expression'. So if you change this | ||
| 70 | ;; expression, you need to change following variables, | ||
| 71 | ;; `cc-imenu-objc-generic-expression-*-index', | ||
| 72 | ;; too. `cc-imenu-objc-function' uses these *-index variables, in | ||
| 73 | ;; order to know where the each regexp *group \\(foobar\\)* elements | ||
| 74 | ;; are started. | ||
| 75 | ;; | ||
| 76 | ;; *-index variables are initialized during `cc-imenu-objc-generic-expression' | ||
| 77 | ;; being initialized. | ||
| 78 | ;; | ||
| 79 | |||
| 66 | (defvar cc-imenu-c++-generic-expression | 80 | (defvar cc-imenu-c++-generic-expression |
| 67 | `( | 81 | `( |
| 68 | ;; Try to match ::operator definitions first. Otherwise `X::operator new ()' | 82 | ;; Try to match ::operator definitions first. Otherwise `X::operator new ()' |
| @@ -187,23 +201,8 @@ A sample value might look like: `\\(_P\\|_PROTO\\)'.") | |||
| 187 | ")" | 201 | ")" |
| 188 | "[.," c-alnum " \t\n\r]*" | 202 | "[.," c-alnum " \t\n\r]*" |
| 189 | "{" | 203 | "{" |
| 190 | )) 1)) | 204 | )) 1)) |
| 191 | "Imenu generic expression for Java mode. See | 205 | "Imenu generic expression for Java mode. See `imenu-generic-expression'.") |
| 192 | `imenu-generic-expression'.") | ||
| 193 | |||
| 194 | ;; *Warning for cc-mode developers* | ||
| 195 | ;; | ||
| 196 | ;; `cc-imenu-objc-generic-expression' elements depend on | ||
| 197 | ;; `cc-imenu-c++-generic-expression'. So if you change this | ||
| 198 | ;; expression, you need to change following variables, | ||
| 199 | ;; `cc-imenu-objc-generic-expression-*-index', | ||
| 200 | ;; too. `cc-imenu-objc-function' uses these *-index variables, in | ||
| 201 | ;; order to know where the each regexp *group \\(foobar\\)* elements | ||
| 202 | ;; are started. | ||
| 203 | ;; | ||
| 204 | ;; *-index variables are initialized during `cc-imenu-objc-generic-expression' | ||
| 205 | ;; being initialized. | ||
| 206 | ;; | ||
| 207 | 206 | ||
| 208 | ;; Internal variables | 207 | ;; Internal variables |
| 209 | (defvar cc-imenu-objc-generic-expression-noreturn-index nil) | 208 | (defvar cc-imenu-objc-generic-expression-noreturn-index nil) |
| @@ -224,7 +223,7 @@ A sample value might look like: `\\(_P\\|_PROTO\\)'.") | |||
| 224 | "\\|" | 223 | "\\|" |
| 225 | ;; > General function name regexp | 224 | ;; > General function name regexp |
| 226 | ;; Pick a token by (match-string 3) | 225 | ;; Pick a token by (match-string 3) |
| 227 | (car (cdr (nth 2 cc-imenu-c++-generic-expression))) ; -> index += 5 | 226 | (car (cdr (nth 2 cc-imenu-c++-generic-expression))) ; -> index += 6 |
| 228 | (prog2 (setq cc-imenu-objc-generic-expression-general-func-index 3) "") | 227 | (prog2 (setq cc-imenu-objc-generic-expression-general-func-index 3) "") |
| 229 | ;; > Special case for definitions using phony prototype macros like: | 228 | ;; > Special case for definitions using phony prototype macros like: |
| 230 | ;; > `int main _PROTO( (int argc,char *argv[]) )'. | 229 | ;; > `int main _PROTO( (int argc,char *argv[]) )'. |
| @@ -233,11 +232,11 @@ A sample value might look like: `\\(_P\\|_PROTO\\)'.") | |||
| 233 | (concat | 232 | (concat |
| 234 | "\\|" | 233 | "\\|" |
| 235 | (car (cdr (nth 3 cc-imenu-c++-generic-expression))) ; -> index += 1 | 234 | (car (cdr (nth 3 cc-imenu-c++-generic-expression))) ; -> index += 1 |
| 236 | (prog2 (setq cc-imenu-objc-generic-expression-objc-base-index 9) "") | 235 | (prog2 (setq cc-imenu-objc-generic-expression-objc-base-index 10) "") |
| 237 | ) | 236 | ) |
| 238 | (prog2 (setq cc-imenu-objc-generic-expression-objc-base-index 8) "") | 237 | (prog2 (setq cc-imenu-objc-generic-expression-objc-base-index 9) "") |
| 239 | "") ; -> index += 0 | 238 | "") ; -> index += 0 |
| 240 | (prog2 (setq cc-imenu-objc-generic-expression-proto-index 8) "") | 239 | (prog2 (setq cc-imenu-objc-generic-expression-proto-index 9) "") |
| 241 | ;; | 240 | ;; |
| 242 | ;; For Objective-C | 241 | ;; For Objective-C |
| 243 | ;; Pick a token by (match-string 8 or 9) | 242 | ;; Pick a token by (match-string 8 or 9) |
diff --git a/lisp/simple.el b/lisp/simple.el index 54005ebd2b3..b8422f9923a 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2464,9 +2464,9 @@ COMMAND. | |||
| 2464 | To specify a coding system for converting non-ASCII characters | 2464 | To specify a coding system for converting non-ASCII characters |
| 2465 | in the input and output to the shell command, use \\[universal-coding-system-argument] | 2465 | in the input and output to the shell command, use \\[universal-coding-system-argument] |
| 2466 | before this command. By default, the input (from the current buffer) | 2466 | before this command. By default, the input (from the current buffer) |
| 2467 | is encoded in the same coding system that will be used to save the file, | 2467 | is encoded using coding-system specified by `process-coding-system-alist', |
| 2468 | `buffer-file-coding-system'. If the output is going to replace the region, | 2468 | falling back to `default-process-coding-system' if no match for COMMAND |
| 2469 | then it is decoded from that same coding system. | 2469 | is found in `process-coding-system-alist'. |
| 2470 | 2470 | ||
| 2471 | The noninteractive arguments are START, END, COMMAND, | 2471 | The noninteractive arguments are START, END, COMMAND, |
| 2472 | OUTPUT-BUFFER, REPLACE, ERROR-BUFFER, and DISPLAY-ERROR-BUFFER. | 2472 | OUTPUT-BUFFER, REPLACE, ERROR-BUFFER, and DISPLAY-ERROR-BUFFER. |
diff --git a/lisp/startup.el b/lisp/startup.el index b5dae92517a..4a8af55af2f 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -2316,6 +2316,7 @@ A fancy display is used on graphic displays, normal otherwise." | |||
| 2316 | (if (or inhibit-startup-screen | 2316 | (if (or inhibit-startup-screen |
| 2317 | initial-buffer-choice | 2317 | initial-buffer-choice |
| 2318 | noninteractive | 2318 | noninteractive |
| 2319 | (daemonp) | ||
| 2319 | inhibit-x-resources) | 2320 | inhibit-x-resources) |
| 2320 | 2321 | ||
| 2321 | ;; Not displaying a startup screen. If 3 or more files | 2322 | ;; Not displaying a startup screen. If 3 or more files |
| @@ -2358,9 +2359,7 @@ A fancy display is used on graphic displays, normal otherwise." | |||
| 2358 | ;; (with-no-warnings | 2359 | ;; (with-no-warnings |
| 2359 | ;; (setq menubar-bindings-done t)) | 2360 | ;; (setq menubar-bindings-done t)) |
| 2360 | 2361 | ||
| 2361 | (if (> file-count 0) | 2362 | (display-startup-screen (> file-count 0))))) |
| 2362 | (display-startup-screen t) | ||
| 2363 | (display-startup-screen nil))))) | ||
| 2364 | 2363 | ||
| 2365 | (defun command-line-normalize-file-name (file) | 2364 | (defun command-line-normalize-file-name (file) |
| 2366 | "Collapse multiple slashes to one, to handle non-Emacs file names." | 2365 | "Collapse multiple slashes to one, to handle non-Emacs file names." |
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 74c32817734..37311b7337d 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -684,7 +684,8 @@ re-start Emacs." | |||
| 684 | ("svenska" ; Swedish mode | 684 | ("svenska" ; Swedish mode |
| 685 | "[A-Za-z\345\344\366\351\340\374\350\346\370\347\305\304\326\311\300\334\310\306\330\307]" | 685 | "[A-Za-z\345\344\366\351\340\374\350\346\370\347\305\304\326\311\300\334\310\306\330\307]" |
| 686 | "[^A-Za-z\345\344\366\351\340\374\350\346\370\347\305\304\326\311\300\334\310\306\330\307]" | 686 | "[^A-Za-z\345\344\366\351\340\374\350\346\370\347\305\304\326\311\300\334\310\306\330\307]" |
| 687 | "[']" nil ("-C") "~list" iso-8859-1)) | 687 | "[']" nil ("-C") "~list" iso-8859-1) |
| 688 | ("hebrew" "[\340\341\342\343\344\345\346\347\350\351\353\352\354\356\355\360\357\361\362\364\363\367\366\365\370\371\372]" "[^\340\341\342\343\344\345\346\347\350\351\353\352\354\356\355\360\357\361\362\364\363\367\366\365\370\371\372]" "" nil ("-B") nil cp1255)) | ||
| 688 | "Base value for `ispell-dictionary-alist'.") | 689 | "Base value for `ispell-dictionary-alist'.") |
| 689 | 690 | ||
| 690 | (defvar ispell-dictionary-alist nil | 691 | (defvar ispell-dictionary-alist nil |