aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKaroly Lorentey2006-02-24 13:44:56 +0000
committerKaroly Lorentey2006-02-24 13:44:56 +0000
commit475789a7d6e602ceed2980c2f2a1c41fc46b56e7 (patch)
treeec1b5fc54d74959b669346020af0ad5a23eb8f0a /lisp
parent260a37ea6639a7872381615e8e2f4041240458ac (diff)
parent77343e1d1c4d26539f48e32754707df15e6e2ad2 (diff)
downloademacs-475789a7d6e602ceed2980c2f2a1c41fc46b56e7.tar.gz
emacs-475789a7d6e602ceed2980c2f2a1c41fc46b56e7.zip
Merged from
Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-116 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-117 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-118 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-119 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-38 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-39 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-520
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog123
-rw-r--r--lisp/allout.el22
-rw-r--r--lisp/compare-w.el25
-rw-r--r--lisp/gnus/ChangeLog37
-rw-r--r--lisp/gnus/flow-fill.el10
-rw-r--r--lisp/gnus/message.el4
-rw-r--r--lisp/gnus/mm-util.el4
-rw-r--r--lisp/gnus/mm-view.el9
-rw-r--r--lisp/gnus/nnimap.el1
-rw-r--r--lisp/gnus/qp.el2
-rw-r--r--lisp/gnus/utf7.el2
-rw-r--r--lisp/help.el10
-rw-r--r--lisp/info.el12
-rw-r--r--lisp/progmodes/gdb-ui.el78
-rw-r--r--lisp/progmodes/glasses.el14
-rw-r--r--lisp/progmodes/gud.el15
-rw-r--r--lisp/textmodes/org.el159
17 files changed, 388 insertions, 139 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fd03764b8d0..52c222bc36d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,61 @@
12006-02-24 Juanma Barranquero <lekktu@gmail.com>
2
3 * help.el (help): Revert last part of 2006-02-23 change (deletion
4 of the `provide' call).
5
62006-02-23 Juri Linkov <juri@jurta.org>
7
8 * compare-w.el (compare-windows-highlight): Add new value
9 `persistent' and change :type from `boolean' to `choice'.
10 (compare-windows-overlays1, compare-windows-overlays2):
11 New internal variables.
12 (compare-windows-highlight): If compare-windows-highlight is
13 `persistent', add current overlays to compare-windows-overlays[12]
14 instead of adding compare-windows-dehighlight to pre-command-hook.
15 (compare-windows-dehighlight): Delete all overlays from
16 compare-windows-overlays[12].
17
18 * info.el (Info-search): Don't bind search-spaces-regexp to
19 Info-search-whitespace-regexp in non-regexp isearch mode.
20
212006-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
22
23 * help.el (describe-mode): Pass `mode-name' to format-mode-line.
24
252006-02-23 Juanma Barranquero <lekktu@gmail.com>
26
27 * textmodes/org.el (org-xemacs-p)
28 (org-export-html-show-new-buffer, org-table-may-need-update)
29 (org-insert-item, org-mhe-get-message-real-folder)
30 (org-mhe-get-message-folder-from-index)
31 (org-mhe-get-message-folder, org-mhe-get-message-num)
32 (org-mhe-get-header, org-make-org-heading-search-string)
33 (org-make-org-heading-camel, org-table-sort-lines)
34 (org-format-org-table-html, org-format-table-table-html):
35 Fix typos in docstrings.
36
3712006-02-23 Carsten Dominik <dominik@science.uva.nl>
38
39 * textmodes/org.el (org-cleaned-string-for-export)
40 (org-solidify-link-text): New function.
41 (org-add-hook): Use `add-local-hook' instead of `make-local-hook' for
42 XEmacs, just to silence the compiler.
43 (org-export-as-ascii, org-export-as-html-and-open):
44 Use `org-cleaned-string-for-export' and create internal links.
45 (org-follow-mhe-link): Require mh-e, use folder.
46
472006-02-23 Nick Roberts <nickrob@snap.net.nz>
48
49 * progmodes/gud.el (gud-speedbar-buttons): Use shadow face properly.
50
51 * progmodes/gdb-ui.el (gdb-debug-ring-max): Rename from
52 gdb-debug-log-length.
53 (gdb-debug-ring): Rename from gdb-debug-log-ring. Don't make
54 it a real ring but...
55 (gud-gdba-marker-filter): ...make it work like mark-ring.
56 (gdb-enable-debug): Rename from gdb-enable-debug-log.
57 (gdb-mouse-jump): New function. Add bindings.
58
12006-02-23 Nick Roberts <nickrob@snap.net.nz> 592006-02-23 Nick Roberts <nickrob@snap.net.nz>
2 60
3 * progmodes/gdb-ui.el (gdb-signalled): New variable and function. 61 * progmodes/gdb-ui.el (gdb-signalled): New variable and function.
@@ -11,16 +69,14 @@
11 69
122006-02-22 Carsten Dominik <dominik@science.uva.nl> 702006-02-22 Carsten Dominik <dominik@science.uva.nl>
13 71
14 * textmodes/reftex.el (reftex-locate-file): Removed duplicate 72 * textmodes/reftex.el (reftex-locate-file): Remove duplicate function.
15 function.
16 73
17 * textmodes/reftex-vars.el: (reftex-try-all-extensions): New 74 * textmodes/reftex-vars.el (reftex-try-all-extensions): New option.
18 option.
19 75
20 * textmodes/reftex.el: (reftex-locate-file): Search all extensions 76 * textmodes/reftex.el (reftex-locate-file): Search all extensions
21 if `reftex-try-all-extensions' is set. 77 if `reftex-try-all-extensions' is set.
22 78
23 * textmodes/org.el: (org-mark-ring-previous, org-mark-ring-set): 79 * textmodes/org.el (org-mark-ring-push, org-mark-ring-goto):
24 New commands. 80 New commands.
25 (org-mark-ring): New variable. 81 (org-mark-ring): New variable.
26 (org-mark-ring-length): New option. 82 (org-mark-ring-length): New option.
@@ -28,12 +84,12 @@
28 onto the mark ring. 84 onto the mark ring.
29 (org-add-hook): New function. 85 (org-add-hook): New function.
30 (org-export-table-remove-special-lines): New option. 86 (org-export-table-remove-special-lines): New option.
31 (org-skip-comments, org-format-org-table-html): Respect new option 87 (org-skip-comments, org-format-org-table-html): Respect new
32 `org-export-table-remove-special-lines'. 88 option `org-export-table-remove-special-lines'.
33 (org-open-file): Allow special command configuration for directory 89 (org-open-file): Allow special command configuration for
34 link. 90 directory link.
35 (org-file-apps): Fixed bugs in customize type, added setting for 91 (org-file-apps): Fix bugs in customize type, added setting
36 directories. 92 for directories.
37 (org-activate-tags, org-format-agenda-item, org-complete) 93 (org-activate-tags, org-format-agenda-item, org-complete)
38 (org-get-tags-at, org-scan-tags, org-make-tags-matcher) 94 (org-get-tags-at, org-scan-tags, org-make-tags-matcher)
39 (org-get-tags, org-get-buffer-tags, org-open-at-point) 95 (org-get-tags, org-get-buffer-tags, org-open-at-point)
@@ -42,37 +98,38 @@
42 (org-radio-targets, org-file-link-context-use-camel-case) 98 (org-radio-targets, org-file-link-context-use-camel-case)
43 (org-activate-camels): New options. 99 (org-activate-camels): New options.
44 (org-update-radio-target-regexp, org-all-targets) 100 (org-update-radio-target-regexp, org-all-targets)
45 (org-make-target-link-regexp, org-activate-target-links): New 101 (org-make-target-link-regexp, org-activate-target-links):
46 functions. 102 New functions.
47 (org-make-org-heading-search-string): New function. 103 (org-make-org-heading-search-string): New function.
48 (org-store-link, org-insert-link): Use new option 104 (org-store-link, org-insert-link): Use new option
49 `org-file-link-context-use-camel-case'. 105 `org-file-link-context-use-camel-case'.
50 (org-activate-camels): Use new option `org-activate-camels'. 106 (org-activate-camels): Use new option `org-activate-camels'.
51 (org-link-regexp): Added mhe prefix. 107 (org-link-regexp): Add mhe prefix.
52 (org-open-at-point,org-store-link): Support for mhe links. 108 (org-open-at-point, org-store-link): Support for mhe links.
53 (org-mhe-get-message-id, org-mhe-get-message-folder) 109 (org-mhe-get-message-real-folder, org-mhe-get-message-folder)
54 (org-mhe-get-header,org-follow-mhe-link): New functions. 110 (org-mhe-get-message-folder-from-index, org-mhe-get-message-num)
55 (org-remove-angle-brackets, org-add-angle-brackets): New 111 (org-mhe-get-header, org-follow-mhe-link): New functions.
56 functions. 112 (org-remove-angle-brackets, org-add-angle-brackets):
57 (org-bracked-link-regexp): New constant. 113 New functions.
58 (org-read-date): Fixed bug that was rejecting all typed dates. 114 (org-bracket-link-regexp): New constant.
115 (org-read-date): Fix bug that was rejecting all typed dates.
59 (org-link-search): Make hierarchy above visible after a match. 116 (org-link-search): Make hierarchy above visible after a match.
60 (org-follow-bbdb-link): Inhibit electric mode for BBDB. 117 (org-follow-bbdb-link): Inhibit electric mode for BBDB.
61 (org-store-link): Fixed bug with link creation when cursor is in 118 (org-store-link): Fix bug with link creation when cursor is in
62 an empty line. 119 an empty line.
63 (org-open-at-point): Fixed bug with matching a link. Fixed buggy 120 (org-open-at-point): Fix bug with matching a link.
64 argument sequence in call to `org-view-tags'. 121 Fixed buggy argument sequence in call to `org-view-tags'.
65 (org-compile-prefix-format): Set `org-prefix-has-tag'. 122 (org-compile-prefix-format): Set `org-prefix-has-tag'.
66 (org-prefix-has-tag): New variable. 123 (org-prefix-has-tag): New variable.
67 (org-format-agenda-item): Remove tags from headline if 124 (org-format-agenda-item): Remove tags from headline
68 appropriate. 125 if appropriate.
69 (org-agenda-remove-tags-when-in-prefix): New option. 126 (org-agenda-remove-tags-when-in-prefix): New option.
70 127
712006-02-21 Michael Kifer <kifer@cs.stonybrook.edu> 1282006-02-21 Michael Kifer <kifer@cs.stonybrook.edu>
72 129
73 * ediff-diff.el (ediff-setup-diff-regions, ediff-setup-diff-regions3): 130 * ediff-diff.el (ediff-setup-diff-regions, ediff-setup-diff-regions3):
74 fix the regular expressions. 131 Fix the regular expressions.
75 132
762006-02-21 Richard M. Stallman <rms@gnu.org> 1332006-02-21 Richard M. Stallman <rms@gnu.org>
77 134
78 * progmodes/sh-script.el (sh-mode): Set shell type based on file name 135 * progmodes/sh-script.el (sh-mode): Set shell type based on file name
@@ -124,8 +181,8 @@
124 181
1252006-02-20 Chong Yidong <cyd@stupidchicken.com> 1822006-02-20 Chong Yidong <cyd@stupidchicken.com>
126 183
127 * custom.el (customize-mark-to-save, customize-mark-as-set): Load 184 * custom.el (customize-mark-to-save, customize-mark-as-set):
128 the symbol first. 185 Load the symbol first.
129 186
1302006-02-20 Juanma Barranquero <lekktu@gmail.com> 1872006-02-20 Juanma Barranquero <lekktu@gmail.com>
131 188
@@ -238,7 +295,7 @@
238 * progmodes/gdb-ui.el (gdb-var-evaluate-expression-handler) 295 * progmodes/gdb-ui.el (gdb-var-evaluate-expression-handler)
239 (gdb-var-update-handler): Detect out of scope variables with pre 296 (gdb-var-update-handler): Detect out of scope variables with pre
240 GDB 6.4 too. 297 GDB 6.4 too.
241 (gdb-post-prompt): Revert changet 2006-02-17 (force update). 298 (gdb-post-prompt): Revert change from 2006-02-17 (force update).
242 Reset status of variable objects to nil in update handlers. 299 Reset status of variable objects to nil in update handlers.
243 (gdb-var-update-handler-1): Detect when a variable object comes 300 (gdb-var-update-handler-1): Detect when a variable object comes
244 in scope. setcar on var changes gdb-var-list directly. 301 in scope. setcar on var changes gdb-var-list directly.
diff --git a/lisp/allout.el b/lisp/allout.el
index 69d72506fce..edce1e8d61e 100644
--- a/lisp/allout.el
+++ b/lisp/allout.el
@@ -1,7 +1,7 @@
1;;; allout.el --- extensive outline mode for use alone and with other modes 1;;; allout.el --- extensive outline mode for use alone and with other modes
2 2
3;; Copyright (C) 1992, 1993, 1994, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1992, 1993, 1994, 2001, 2002, 2003, 2004,
4;; 2005 Free Software Foundation, Inc. 4;; 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Author: Ken Manheimer <ken dot manheimer at gmail dot com> 6;; Author: Ken Manheimer <ken dot manheimer at gmail dot com>
7;; Maintainer: Ken Manheimer <ken dot manheimer at gmail dot com> 7;; Maintainer: Ken Manheimer <ken dot manheimer at gmail dot com>
@@ -5811,14 +5811,14 @@ the point does not move. To ignore field boundaries bind
5811(provide 'allout) 5811(provide 'allout)
5812 5812
5813;;;_* Local emacs vars. 5813;;;_* Local emacs vars.
5814;;; The following `allout-layout' local variable setting: 5814;; The following `allout-layout' local variable setting:
5815;;; - closes all topics from the first topic to just before the third-to-last, 5815;; - closes all topics from the first topic to just before the third-to-last,
5816;;; - shows the children of the third to last (config vars) 5816;; - shows the children of the third to last (config vars)
5817;;; - and the second to last (code section), 5817;; - and the second to last (code section),
5818;;; - and closes the last topic (this local-variables section). 5818;; - and closes the last topic (this local-variables section).
5819;;;Local variables: 5819;;Local variables:
5820;;;allout-layout: (0 : -1 -1 0) 5820;;allout-layout: (0 : -1 -1 0)
5821;;;End: 5821;;End:
5822 5822
5823;;; arch-tag: cf38fbc3-c044-450f-8bff-afed8ba5681c 5823;; arch-tag: cf38fbc3-c044-450f-8bff-afed8ba5681c
5824;;; allout.el ends here 5824;;; allout.el ends here
diff --git a/lisp/compare-w.el b/lisp/compare-w.el
index 2d23de8c54c..e61f24a0c7c 100644
--- a/lisp/compare-w.el
+++ b/lisp/compare-w.el
@@ -117,8 +117,14 @@ and the value `((4) (4))' for horizontally split windows."
117 :version "22.1") 117 :version "22.1")
118 118
119(defcustom compare-windows-highlight t 119(defcustom compare-windows-highlight t
120 "*Non-nil means compare-windows highlights the differences." 120 "*Non-nil means compare-windows highlights the differences.
121 :type 'boolean 121The value t removes highlighting immediately after invoking a command
122other than `compare-windows'.
123The value `persistent' leaves all highlighted differences. You can clear
124out all highlighting later with the command `compare-windows-dehighlight'."
125 :type '(choice (const :tag "No highlighting" nil)
126 (const :tag "Persistent highlighting" persistent)
127 (other :tag "Highlight until next command" t))
122 :group 'compare-w 128 :group 'compare-w
123 :version "22.1") 129 :version "22.1")
124 130
@@ -130,6 +136,8 @@ and the value `((4) (4))' for horizontally split windows."
130 136
131(defvar compare-windows-overlay1 nil) 137(defvar compare-windows-overlay1 nil)
132(defvar compare-windows-overlay2 nil) 138(defvar compare-windows-overlay2 nil)
139(defvar compare-windows-overlays1 nil)
140(defvar compare-windows-overlays2 nil)
133(defvar compare-windows-sync-point nil) 141(defvar compare-windows-sync-point nil)
134 142
135;;;###autoload 143;;;###autoload
@@ -351,13 +359,22 @@ on third call it again advances points to the next difference and so on."
351 (overlay-put compare-windows-overlay2 'face 'compare-windows) 359 (overlay-put compare-windows-overlay2 'face 'compare-windows)
352 (overlay-put compare-windows-overlay2 'priority 1000)) 360 (overlay-put compare-windows-overlay2 'priority 1000))
353 (overlay-put compare-windows-overlay2 'window w2) 361 (overlay-put compare-windows-overlay2 'window w2)
354 ;; Remove highlighting before next command is executed 362 (if (not (eq compare-windows-highlight 'persistent))
355 (add-hook 'pre-command-hook 'compare-windows-dehighlight))) 363 ;; Remove highlighting before next command is executed
364 (add-hook 'pre-command-hook 'compare-windows-dehighlight)
365 (when compare-windows-overlay1
366 (push (copy-overlay compare-windows-overlay1) compare-windows-overlays1)
367 (delete-overlay compare-windows-overlay1))
368 (when compare-windows-overlay2
369 (push (copy-overlay compare-windows-overlay2) compare-windows-overlays2)
370 (delete-overlay compare-windows-overlay2)))))
356 371
357(defun compare-windows-dehighlight () 372(defun compare-windows-dehighlight ()
358 "Remove highlighting created by `compare-windows-highlight'." 373 "Remove highlighting created by `compare-windows-highlight'."
359 (interactive) 374 (interactive)
360 (remove-hook 'pre-command-hook 'compare-windows-dehighlight) 375 (remove-hook 'pre-command-hook 'compare-windows-dehighlight)
376 (mapc 'delete-overlay compare-windows-overlays1)
377 (mapc 'delete-overlay compare-windows-overlays2)
361 (and compare-windows-overlay1 (delete-overlay compare-windows-overlay1)) 378 (and compare-windows-overlay1 (delete-overlay compare-windows-overlay1))
362 (and compare-windows-overlay2 (delete-overlay compare-windows-overlay2))) 379 (and compare-windows-overlay2 (delete-overlay compare-windows-overlay2)))
363 380
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index c77c92d05c7..87327dde482 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,38 @@
12006-02-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * flow-fill.el (fill-flowed): Bind adaptive-fill-mode to nil.
4 Remove space stuffing, and only do quotes that actually start with
5 ">" at the beginning of the lines.
6 Merge of 2005-11-17 and 2004-07-25 from the trunk.
7
82006-02-23 Reiner Steib <Reiner.Steib@gmx.de>
9
10 * utf7.el (utf7-utf-16-coding-system): Fix comment. utf-16-be is
11 also available in Emacs 21.3.
12
13 * message.el (message-fix-before-sending): Change "Emacs 22" to
14 "Emacs 23 (unicode)" in comment.
15
16 * qp.el (quoted-printable-encode-region): Change "Emacs 22" to
17 "Emacs 23 (unicode)" in comment.
18
19 * mm-util.el: Change "Emacs 22" to "Emacs 23 (unicode)" in
20 comment.
21 (mm-coding-system-p): Add comment about no-MULE XEmacs.
22
23 * mm-view.el (mm-fill-flowed): Add :version.
24
252006-02-23 Ralf Angeli <angeli@iwi.uni-sb.de>
26
27 * mm-view.el (mm-fill-flowed): New variable.
28 (mm-inline-text): Use it.
29
302006-02-21 Wolfram Fenske <wolfram.fenske@student.uni-magdeburg.de>
31 (tiny change)
32
33 * nnimap.el (nnimap-request-move-article): Change folder back to
34 source group before deleting.
35
12006-02-20 Katsumi Yamaoka <yamaoka@jpl.org> 362006-02-20 Katsumi Yamaoka <yamaoka@jpl.org>
2 37
3 * rfc2047.el (rfc2047-charset-to-coding-system): Don't check the 38 * rfc2047.el (rfc2047-charset-to-coding-system): Don't check the
@@ -1266,7 +1301,7 @@
1266 1301
1267 * gnus-topic.el (gnus-topic-mode): Ditto. 1302 * gnus-topic.el (gnus-topic-mode): Ditto.
1268 1303
12692005-07-08 Ralf Angeli <angeli@iwi.uni-sb.de> (tiny change) 13042005-07-08 Ralf Angeli <angeli@iwi.uni-sb.de>
1270 1305
1271 * gnus-art.el (gnus-article-next-page, gnus-article-next-page-1) 1306 * gnus-art.el (gnus-article-next-page, gnus-article-next-page-1)
1272 (gnus-article-prev-page): Take scroll-margin into consideration. 1307 (gnus-article-prev-page): Take scroll-margin into consideration.
diff --git a/lisp/gnus/flow-fill.el b/lisp/gnus/flow-fill.el
index c3f7f7bb20e..480505549c9 100644
--- a/lisp/gnus/flow-fill.el
+++ b/lisp/gnus/flow-fill.el
@@ -113,10 +113,15 @@ RFC 2646 suggests 66 characters for readability."
113 (save-excursion 113 (save-excursion
114 (set-buffer (or (current-buffer) buffer)) 114 (set-buffer (or (current-buffer) buffer))
115 (goto-char (point-min)) 115 (goto-char (point-min))
116 ;; Remove space stuffing.
117 (while (re-search-forward "^ " nil t)
118 (delete-char -1)
119 (forward-line 1))
120 (goto-char (point-min))
116 (while (re-search-forward " $" nil t) 121 (while (re-search-forward " $" nil t)
117 (when (save-excursion 122 (when (save-excursion
118 (beginning-of-line) 123 (beginning-of-line)
119 (looking-at "^\\(>*\\)\\( ?\\)")) 124 (looking-at "^\\(>+\\)\\( ?\\)"))
120 (let ((quote (match-string 1)) 125 (let ((quote (match-string 1))
121 sig) 126 sig)
122 (if (string= quote "") 127 (if (string= quote "")
@@ -146,7 +151,8 @@ RFC 2646 suggests 66 characters for readability."
146 (condition-case nil 151 (condition-case nil
147 (let ((fill-prefix (when quote (concat quote " "))) 152 (let ((fill-prefix (when quote (concat quote " ")))
148 (fill-column (eval fill-flowed-display-column)) 153 (fill-column (eval fill-flowed-display-column))
149 filladapt-mode) 154 filladapt-mode
155 adaptive-fill-mode)
150 (fill-region (fill-flowed-point-at-bol) 156 (fill-region (fill-flowed-point-at-bol)
151 (min (1+ (fill-flowed-point-at-eol)) 157 (min (1+ (fill-flowed-point-at-eol))
152 (point-max)) 158 (point-max))
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 28325b73e26..1bdc2f6a11f 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -3615,8 +3615,8 @@ It should typically alter the sending method in some way or other."
3615 (when (let ((char (char-after))) 3615 (when (let ((char (char-after)))
3616 (or (< (mm-char-int char) 128) 3616 (or (< (mm-char-int char) 128)
3617 (and (mm-multibyte-p) 3617 (and (mm-multibyte-p)
3618 ;; Fixme: Wrong for Emacs 22 and for things 3618 ;; FIXME: Wrong for Emacs 23 (unicode) and for
3619 ;; like undecable utf-8. Should at least 3619 ;; things like undecable utf-8. Should at least
3620 ;; use find-coding-systems-region. 3620 ;; use find-coding-systems-region.
3621 (memq (char-charset char) 3621 (memq (char-charset char)
3622 '(eight-bit-control eight-bit-graphic 3622 '(eight-bit-control eight-bit-graphic
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el
index 9bdbc3c72b1..a7f375aeba8 100644
--- a/lisp/gnus/mm-util.el
+++ b/lisp/gnus/mm-util.el
@@ -174,7 +174,7 @@ system object in XEmacs."
174 (if (fboundp 'coding-system-p) 174 (if (fboundp 'coding-system-p)
175 (when (coding-system-p cs) 175 (when (coding-system-p cs)
176 cs) 176 cs)
177 ;; Is this branch ever actually useful? 177 ;; no-MULE XEmacs:
178 (car (memq cs (mm-get-coding-system-list)))))) 178 (car (memq cs (mm-get-coding-system-list))))))
179 179
180(defvar mm-charset-synonym-alist 180(defvar mm-charset-synonym-alist
@@ -331,7 +331,7 @@ with Mule charsets. It is completely useless for Emacs."
331 cs mime mule alist) 331 cs mime mule alist)
332 (while css 332 (while css
333 (setq cs (pop css) 333 (setq cs (pop css)
334 mime (or (coding-system-get cs :mime-charset) ; Emacs 22 334 mime (or (coding-system-get cs :mime-charset) ; Emacs 23 (unicode)
335 (coding-system-get cs 'mime-charset))) 335 (coding-system-get cs 'mime-charset)))
336 (when (and mime 336 (when (and mime
337 (not (eq t (setq mule 337 (not (eq t (setq mule
diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el
index 43d6bddf194..c2b4e19f806 100644
--- a/lisp/gnus/mm-view.el
+++ b/lisp/gnus/mm-view.el
@@ -72,6 +72,12 @@
72 (html2text html2text)) 72 (html2text html2text))
73 "The attributes of washer types for text/html.") 73 "The attributes of washer types for text/html.")
74 74
75(defcustom mm-fill-flowed t
76 "If non-nil an format=flowed article will be displayed flowed."
77 :type 'boolean
78 :version "22.1"
79 :group 'mime-display)
80
75;;; Internal variables. 81;;; Internal variables.
76 82
77;;; 83;;;
@@ -407,7 +413,8 @@
407 (mm-insert-part handle) 413 (mm-insert-part handle)
408 (goto-char (point-max))) 414 (goto-char (point-max)))
409 (insert (mm-decode-string (mm-get-part handle) charset))) 415 (insert (mm-decode-string (mm-get-part handle) charset)))
410 (when (and (equal type "plain") 416 (when (and mm-fill-flowed
417 (equal type "plain")
411 (equal (cdr (assoc 'format (mm-handle-type handle))) 418 (equal (cdr (assoc 'format (mm-handle-type handle)))
412 "flowed")) 419 "flowed"))
413 (save-restriction 420 (save-restriction
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index 26c0f8901ee..3c05b3713ea 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -1492,6 +1492,7 @@ function is generally only called when Gnus is shutting down."
1492 (setq result (eval accept-form)) 1492 (setq result (eval accept-form))
1493 (kill-buffer buf) 1493 (kill-buffer buf)
1494 result) 1494 result)
1495 (nnimap-possibly-change-group group server)
1495 (imap-message-flags-add 1496 (imap-message-flags-add
1496 (imap-range-to-message-set (list article)) 1497 (imap-range-to-message-set (list article))
1497 "\\Deleted" 'silent nnimap-server-buffer)) 1498 "\\Deleted" 'silent nnimap-server-buffer))
diff --git a/lisp/gnus/qp.el b/lisp/gnus/qp.el
index cb89a3550ba..15914922d1c 100644
--- a/lisp/gnus/qp.el
+++ b/lisp/gnus/qp.el
@@ -118,7 +118,7 @@ encode lines starting with \"From\"."
118 (not (eobp))) 118 (not (eobp)))
119 (insert 119 (insert
120 (prog1 120 (prog1
121 ;; To unibyte in case of Emacs 22 eight-bit. 121 ;; To unibyte in case of Emacs 23 (unicode) eight-bit.
122 (format "=%02X" (mm-multibyte-char-to-unibyte (char-after))) 122 (format "=%02X" (mm-multibyte-char-to-unibyte (char-after)))
123 (delete-char 1)))) 123 (delete-char 1))))
124 ;; Encode white space at the end of lines. 124 ;; Encode white space at the end of lines.
diff --git a/lisp/gnus/utf7.el b/lisp/gnus/utf7.el
index bb47077612e..a1b7fdc6702 100644
--- a/lisp/gnus/utf7.el
+++ b/lisp/gnus/utf7.el
@@ -80,7 +80,7 @@
80(defconst utf7-utf-16-coding-system 80(defconst utf7-utf-16-coding-system
81 (cond ((mm-coding-system-p 'utf-16-be-no-signature) ; Mule-UCS 81 (cond ((mm-coding-system-p 'utf-16-be-no-signature) ; Mule-UCS
82 'utf-16-be-no-signature) 82 'utf-16-be-no-signature)
83 ((and (mm-coding-system-p 'utf-16-be) ; Emacs 22.1 83 ((and (mm-coding-system-p 'utf-16-be) ; Emacs 21.3, Emacs 22
84 ;; Avoid versions with BOM. 84 ;; Avoid versions with BOM.
85 (= 2 (length (encode-coding-string "a" 'utf-16-be)))) 85 (= 2 (length (encode-coding-string "a" 'utf-16-be))))
86 'utf-16-be) 86 'utf-16-be)
diff --git a/lisp/help.el b/lisp/help.el
index f74293b8dd6..bed25366aab 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -835,8 +835,9 @@ follows the description of the major mode.)\n\n"))
835 ;; Document the major mode. 835 ;; Document the major mode.
836 (let ((mode mode-name)) 836 (let ((mode mode-name))
837 (with-current-buffer standard-output 837 (with-current-buffer standard-output
838 (insert mode) 838 (let ((start (point)))
839 (add-text-properties (- (point) (length mode)) (point) '(face bold)))) 839 (insert (format-mode-line mode))
840 (add-text-properties start (point) '(face bold)))))
840 (princ " mode:\n") 841 (princ " mode:\n")
841 (princ (documentation major-mode))) 842 (princ (documentation major-mode)))
842 (print-help-return-message)))) 843 (print-help-return-message))))
@@ -932,7 +933,7 @@ is currently activated with completion."
932;;; Automatic resizing of temporary buffers. 933;;; Automatic resizing of temporary buffers.
933 934
934(defcustom temp-buffer-max-height (lambda (buffer) (/ (- (frame-height) 2) 2)) 935(defcustom temp-buffer-max-height (lambda (buffer) (/ (- (frame-height) 2) 2))
935 "*Maximum height of a window displaying a temporary buffer. 936 "Maximum height of a window displaying a temporary buffer.
936This is the maximum height (in text lines) which `resize-temp-buffer-window' 937This is the maximum height (in text lines) which `resize-temp-buffer-window'
937will give to a window displaying a temporary buffer. 938will give to a window displaying a temporary buffer.
938It can also be a function which will be called with the object corresponding 939It can also be a function which will be called with the object corresponding
@@ -971,8 +972,7 @@ out of view."
971 (funcall temp-buffer-max-height (current-buffer)) 972 (funcall temp-buffer-max-height (current-buffer))
972 temp-buffer-max-height)))) 973 temp-buffer-max-height))))
973 974
974;; Provide this for the sake of define-minor-mode which generates 975
975;; defcustoms which require 'help'.
976(provide 'help) 976(provide 'help)
977 977
978;; arch-tag: cf427352-27e9-49b7-9a6f-741ebab02423 978;; arch-tag: cf427352-27e9-49b7-9a6f-741ebab02423
diff --git a/lisp/info.el b/lisp/info.el
index e9d7f5ca2de..43ee5cabcbc 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -1642,7 +1642,9 @@ If DIRECTION is `backward', search in the reverse direction."
1642 (and (search-backward "\^_" nil t) 1642 (and (search-backward "\^_" nil t)
1643 (looking-at 1643 (looking-at
1644 "\^_\n\\(Tag Table\\|Local Variables\\)")))))) 1644 "\^_\n\\(Tag Table\\|Local Variables\\)"))))))
1645 (let ((search-spaces-regexp Info-search-whitespace-regexp)) 1645 (let ((search-spaces-regexp
1646 (if (or (not isearch-mode) isearch-regexp)
1647 Info-search-whitespace-regexp)))
1646 (if (if backward 1648 (if (if backward
1647 (re-search-backward regexp bound t) 1649 (re-search-backward regexp bound t)
1648 (re-search-forward regexp bound t)) 1650 (re-search-forward regexp bound t))
@@ -1660,7 +1662,9 @@ If DIRECTION is `backward', search in the reverse direction."
1660 ;; If no subfiles, give error now. 1662 ;; If no subfiles, give error now.
1661 (if give-up 1663 (if give-up
1662 (if (null Info-current-subfile) 1664 (if (null Info-current-subfile)
1663 (let ((search-spaces-regexp Info-search-whitespace-regexp)) 1665 (let ((search-spaces-regexp
1666 (if (or (not isearch-mode) isearch-regexp)
1667 Info-search-whitespace-regexp)))
1664 (if backward 1668 (if backward
1665 (re-search-backward regexp) 1669 (re-search-backward regexp)
1666 (re-search-forward regexp))) 1670 (re-search-forward regexp)))
@@ -1731,7 +1735,9 @@ If DIRECTION is `backward', search in the reverse direction."
1731 (and (search-backward "\^_" nil t) 1735 (and (search-backward "\^_" nil t)
1732 (looking-at 1736 (looking-at
1733 "\^_\n\\(Tag Table\\|Local Variables\\)")))))) 1737 "\^_\n\\(Tag Table\\|Local Variables\\)"))))))
1734 (let ((search-spaces-regexp Info-search-whitespace-regexp)) 1738 (let ((search-spaces-regexp
1739 (if (or (not isearch-mode) isearch-regexp)
1740 Info-search-whitespace-regexp)))
1735 (if (if backward 1741 (if (if backward
1736 (re-search-backward regexp nil t) 1742 (re-search-backward regexp nil t)
1737 (re-search-forward regexp nil t)) 1743 (re-search-forward regexp nil t))
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index 7e0cda786c7..db79d43d321 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -259,20 +259,19 @@ detailed description of this mode.
259 (gdb command-line) 259 (gdb command-line)
260 (gdb-init-1)) 260 (gdb-init-1))
261 261
262(defcustom gdb-debug-log-length 128 262(defcustom gdb-debug-ring-max 128
263 "Length of `gdb-debug-log-ring'." 263 "Maximum size of `gdb-debug-ring'."
264 :group 'gud 264 :group 'gud
265 :type 'integer 265 :type 'integer
266 :version "22.1") 266 :version "22.1")
267 267
268(defvar gdb-debug-log-ring (make-ring gdb-debug-log-length) 268(defvar gdb-debug-ring nil
269 "Ring of commands sent to and replies received from GDB. 269 "List of commands, most recent first, sent to and replies received from GDB.
270This variable is used to debug GDB-UI. Just need most recent 270This variable is used to debug GDB-UI.")
271messages and a ring limits the size.")
272 271
273;;;###autoload 272;;;###autoload
274(defcustom gdb-enable-debug-log nil 273(defcustom gdb-enable-debug nil
275 "Non-nil means record the process input and output in `gdb-debug-log-ring'." 274 "Non-nil means record the process input and output in `gdb-debug-ring'."
276 :type 'boolean 275 :type 'boolean
277 :group 'gud 276 :group 'gud
278 :version "22.1") 277 :version "22.1")
@@ -445,11 +444,21 @@ With arg, use separate IO iff arg is positive."
445 'gdb-mouse-set-clear-breakpoint) 444 'gdb-mouse-set-clear-breakpoint)
446 (define-key gud-minor-mode-map [left-fringe mouse-2] 445 (define-key gud-minor-mode-map [left-fringe mouse-2]
447 'gdb-mouse-until) 446 'gdb-mouse-until)
447 (define-key gud-minor-mode-map [left-margin drag-mouse-1]
448 'gdb-mouse-until)
448 (define-key gud-minor-mode-map [left-fringe drag-mouse-1] 449 (define-key gud-minor-mode-map [left-fringe drag-mouse-1]
449 'gdb-mouse-until) 450 'gdb-mouse-until)
450 (define-key gud-minor-mode-map [left-margin mouse-2] 451 (define-key gud-minor-mode-map [left-margin mouse-2]
451 'gdb-mouse-until) 452 'gdb-mouse-until)
452 (define-key gud-minor-mode-map [left-margin mouse-3] 453 (define-key gud-minor-mode-map [left-margin C-drag-mouse-1]
454 'gdb-mouse-jump)
455 (define-key gud-minor-mode-map [left-fringe C-drag-mouse-1]
456 'gdb-mouse-jump)
457 (define-key gud-minor-mode-map [left-fringe C-mouse-2]
458 'gdb-mouse-jump)
459 (define-key gud-minor-mode-map [left-margin C-mouse-2]
460 'gdb-mouse-jump)
461 (define-key gud-minor-mode-map [left-margin mouse-3]
453 'gdb-mouse-toggle-breakpoint-margin) 462 'gdb-mouse-toggle-breakpoint-margin)
454 (define-key gud-minor-mode-map [left-fringe mouse-3] 463 (define-key gud-minor-mode-map [left-fringe mouse-3]
455 'gdb-mouse-toggle-breakpoint-fringe) 464 'gdb-mouse-toggle-breakpoint-fringe)
@@ -479,7 +488,7 @@ With arg, use separate IO iff arg is positive."
479 gdb-error nil 488 gdb-error nil
480 gdb-macro-info nil 489 gdb-macro-info nil
481 gdb-buffer-fringe-width (car (window-fringes)) 490 gdb-buffer-fringe-width (car (window-fringes))
482 gdb-debug-log-ring (make-ring gdb-debug-log-length) 491 gdb-debug-ring nil
483 gdb-signalled nil) 492 gdb-signalled nil)
484 493
485 (setq gdb-buffer-type 'gdba) 494 (setq gdb-buffer-type 'gdba)
@@ -526,7 +535,9 @@ With arg, use separate IO iff arg is positive."
526 (gdb-init-2)) 535 (gdb-init-2))
527 536
528(defun gdb-mouse-until (event) 537(defun gdb-mouse-until (event)
529 "Execute source lines by dragging the overlay arrow (fringe) with the mouse." 538 "Continue running until a source line past the current line.
539The destination source line can be selected either by clicking with mouse-2
540on the fringe/margin or dragging the arrow with mouse-1 (default bindings)."
530 (interactive "e") 541 (interactive "e")
531 (if gud-overlay-arrow-position 542 (if gud-overlay-arrow-position
532 (let ((start (event-start event)) 543 (let ((start (event-start event))
@@ -552,6 +563,40 @@ With arg, use separate IO iff arg is positive."
552 (forward-char 2) 563 (forward-char 2)
553 (gud-call (concat "until *%a"))))))))) 564 (gud-call (concat "until *%a")))))))))
554 565
566(defun gdb-mouse-jump (event)
567 "Set execution address/line.
568The destination source line can be selected either by clicking with mouse-2
569on the fringe/margin or dragging the arrow with mouse-1 (default bindings).
570Unlike gdb-mouse-until the destination address can be before the current
571line, and no execution takes place."
572 (interactive "e")
573 (if gud-overlay-arrow-position
574 (let ((start (event-start event))
575 (end (event-end event))
576 (buffer (marker-buffer gud-overlay-arrow-position)) (line))
577 (if (not (string-match "Machine" mode-name))
578 (if (equal buffer (window-buffer (posn-window end)))
579 (with-current-buffer buffer
580 (when (or (equal start end)
581 (equal (posn-point start)
582 (marker-position
583 gud-overlay-arrow-position)))
584 (setq line (line-number-at-pos (posn-point end)))
585 (progn (gud-call (concat "tbreak " (number-to-string line)))
586 (gud-call (concat "jump " (number-to-string line)))))))
587 (if (equal (marker-buffer gdb-overlay-arrow-position)
588 (window-buffer (posn-window end)))
589 (when (or (equal start end)
590 (equal (posn-point start)
591 (marker-position
592 gdb-overlay-arrow-position)))
593 (save-excursion
594 (goto-line (line-number-at-pos (posn-point end)))
595 (forward-char 2)
596 (progn
597 (gud-call (concat "tbreak *%a"))
598 (gud-call (concat "jump *%a"))))))))))
599
555(defcustom gdb-speedbar-auto-raise nil 600(defcustom gdb-speedbar-auto-raise nil
556 "If non-nil raise speedbar every time display of watch expressions is\ 601 "If non-nil raise speedbar every time display of watch expressions is\
557 updated." 602 updated."
@@ -974,7 +1019,7 @@ This filter may simply queue input for a later time."
974 (let ((item (concat string "\n"))) 1019 (let ((item (concat string "\n")))
975 (if gud-running 1020 (if gud-running
976 (progn 1021 (progn
977 (if gdb-enable-debug-log (push (cons 'send item) gdb-debug-log-ring)) 1022 (if gdb-enable-debug (push (cons 'send item) gdb-debug-ring))
978 (process-send-string proc item)) 1023 (process-send-string proc item))
979 (gdb-enqueue-input item)))) 1024 (gdb-enqueue-input item))))
980 1025
@@ -997,8 +1042,7 @@ This filter may simply queue input for a later time."
997 1042
998(defun gdb-send-item (item) 1043(defun gdb-send-item (item)
999 (setq gdb-flush-pending-output nil) 1044 (setq gdb-flush-pending-output nil)
1000 (if gdb-enable-debug-log 1045 (if gdb-enable-debug (push (cons 'send-item item) gdb-debug-ring))
1001 (ring-insert gdb-debug-log-ring (cons 'send-item item)))
1002 (setq gdb-current-item item) 1046 (setq gdb-current-item item)
1003 (let ((process (get-buffer-process gud-comint-buffer))) 1047 (let ((process (get-buffer-process gud-comint-buffer)))
1004 (if (eq (buffer-local-value 'gud-minor-mode gud-comint-buffer) 'gdba) 1048 (if (eq (buffer-local-value 'gud-minor-mode gud-comint-buffer) 'gdba)
@@ -1248,8 +1292,10 @@ happens to be appropriate."
1248 "A gud marker filter for gdb. Handle a burst of output from GDB." 1292 "A gud marker filter for gdb. Handle a burst of output from GDB."
1249 (if gdb-flush-pending-output 1293 (if gdb-flush-pending-output
1250 nil 1294 nil
1251 (if gdb-enable-debug-log 1295 (when gdb-enable-debug
1252 (ring-insert gdb-debug-log-ring (cons 'recv string))) 1296 (push (cons 'recv string) gdb-debug-ring)
1297 (if (> (length gdb-debug-ring) gdb-debug-ring-max)
1298 (setcdr (nthcdr (1- gdb-debug-ring-max) gdb-debug-ring) nil)))
1253 ;; Recall the left over gud-marker-acc from last time. 1299 ;; Recall the left over gud-marker-acc from last time.
1254 (setq gud-marker-acc (concat gud-marker-acc string)) 1300 (setq gud-marker-acc (concat gud-marker-acc string))
1255 ;; Start accumulating output for the GUD buffer. 1301 ;; Start accumulating output for the GUD buffer.
diff --git a/lisp/progmodes/glasses.el b/lisp/progmodes/glasses.el
index a8d2d8b8fe1..dadc9cffc7a 100644
--- a/lisp/progmodes/glasses.el
+++ b/lisp/progmodes/glasses.el
@@ -67,7 +67,7 @@
67 67
68 68
69(defcustom glasses-separator "_" 69(defcustom glasses-separator "_"
70 "*String to be displayed as a visual separator in identifiers. 70 "String to be displayed as a visual separator in identifiers.
71It is used both for adding missing separators and for replacing separators 71It is used both for adding missing separators and for replacing separators
72defined by `glasses-original-separator'. If you don't want to add missing 72defined by `glasses-original-separator'. If you don't want to add missing
73separators, set `glasses-separator' to an empty string. If you don't want to 73separators, set `glasses-separator' to an empty string. If you don't want to
@@ -93,7 +93,7 @@ performed."
93 93
94 94
95(defcustom glasses-face nil 95(defcustom glasses-face nil
96 "*Face to be put on capitals of an identifier looked through glasses. 96 "Face to be put on capitals of an identifier looked through glasses.
97If it is nil, no face is placed at the capitalized letter. 97If it is nil, no face is placed at the capitalized letter.
98 98
99For example, you can set `glasses-separator' to an empty string and 99For example, you can set `glasses-separator' to an empty string and
@@ -106,13 +106,13 @@ but will have their capitals in bold."
106 106
107 107
108(defcustom glasses-separate-parentheses-p t 108(defcustom glasses-separate-parentheses-p t
109 "*If non-nil, ensure space between an identifier and an opening parenthesis." 109 "If non-nil, ensure space between an identifier and an opening parenthesis."
110 :group 'glasses 110 :group 'glasses
111 :type 'boolean) 111 :type 'boolean)
112 112
113 113
114(defcustom glasses-uncapitalize-p nil 114(defcustom glasses-uncapitalize-p nil
115 "*If non-nil, downcase embedded capital letters in identifiers. 115 "If non-nil, downcase embedded capital letters in identifiers.
116Only identifiers starting with lower case letters are affected, letters inside 116Only identifiers starting with lower case letters are affected, letters inside
117other identifiers are unchanged." 117other identifiers are unchanged."
118 :group 'glasses 118 :group 'glasses
@@ -122,7 +122,7 @@ other identifiers are unchanged."
122 122
123 123
124(defcustom glasses-uncapitalize-regexp "[a-z]" 124(defcustom glasses-uncapitalize-regexp "[a-z]"
125 "*Regexp matching beginnings of words to be uncapitalized. 125 "Regexp matching beginnings of words to be uncapitalized.
126Only words starting with this regexp are uncapitalized. 126Only words starting with this regexp are uncapitalized.
127The regexp is case sensitive. 127The regexp is case sensitive.
128It has any effect only when `glasses-uncapitalize-p' is non-nil." 128It has any effect only when `glasses-uncapitalize-p' is non-nil."
@@ -133,7 +133,7 @@ It has any effect only when `glasses-uncapitalize-p' is non-nil."
133 133
134 134
135(defcustom glasses-convert-on-write-p nil 135(defcustom glasses-convert-on-write-p nil
136 "*If non-nil, remove separators when writing glasses buffer to a file. 136 "If non-nil, remove separators when writing glasses buffer to a file.
137If you are confused by glasses so much, that you write the separators into code 137If you are confused by glasses so much, that you write the separators into code
138during coding, set this variable to t. The separators will be removed on each 138during coding, set this variable to t. The separators will be removed on each
139file write then. 139file write then.
@@ -313,5 +313,5 @@ at places they belong to."
313(provide 'glasses) 313(provide 'glasses)
314 314
315 315
316;;; arch-tag: a3515167-c89e-484f-90a1-d85143e52b12 316;; arch-tag: a3515167-c89e-484f-90a1-d85143e52b12
317;;; glasses.el ends here 317;;; glasses.el ends here
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index ea2586a31d6..5a09d5dd196 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -456,7 +456,8 @@ required by the caller."
456 (while var-list 456 (while var-list
457 (let* (char (depth 0) (start 0) (var (car var-list)) 457 (let* (char (depth 0) (start 0) (var (car var-list))
458 (expr (car var)) (varnum (nth 1 var)) 458 (expr (car var)) (varnum (nth 1 var))
459 (type (nth 3 var)) (status (nth 5 var))) 459 (type (nth 3 var)) (value (nth 4 var))
460 (status (nth 5 var)))
460 (put-text-property 461 (put-text-property
461 0 (length expr) 'face font-lock-variable-name-face expr) 462 0 (length expr) 'face font-lock-variable-name-face expr)
462 (put-text-property 463 (put-text-property
@@ -470,7 +471,7 @@ required by the caller."
470 (string-match "char \\*$" type))) 471 (string-match "char \\*$" type)))
471 (speedbar-make-tag-line 472 (speedbar-make-tag-line
472 'bracket ?? nil nil 473 'bracket ?? nil nil
473 (concat expr "\t" (nth 4 var)) 474 (concat expr "\t" value)
474 (if (or parent (eq status 'out-of-scope)) 475 (if (or parent (eq status 'out-of-scope))
475 nil 'gdb-edit-value) 476 nil 'gdb-edit-value)
476 nil 477 nil
@@ -491,14 +492,12 @@ required by the caller."
491 (speedbar-make-tag-line 492 (speedbar-make-tag-line
492 'bracket char 493 'bracket char
493 'gdb-speedbar-expand-node varnum 494 'gdb-speedbar-expand-node varnum
494 (concat expr "\t" 495 (concat expr "\t" type "\t" value)
495 type "\t" 496 (if (or parent status)
496 (nth 4 var))
497 (if (or parent status 'out-of-scope)
498 nil 'gdb-edit-value) 497 nil 'gdb-edit-value)
499 nil 498 nil
500 (if (and (or parent status) gdb-show-changed-values) 499 (if (and (or parent (eq status 'out-of-scope))
501 'shadow t) 500 gdb-show-changed-values) 'shadow t)
502 depth) 501 depth)
503 (speedbar-make-tag-line 502 (speedbar-make-tag-line
504 'bracket char 503 'bracket char
diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el
index 4b62eeb87a7..cecfe7f5164 100644
--- a/lisp/textmodes/org.el
+++ b/lisp/textmodes/org.el
@@ -5,7 +5,7 @@
5;; Author: Carsten Dominik <dominik at science dot uva dot nl> 5;; Author: Carsten Dominik <dominik at science dot uva dot nl>
6;; Keywords: outlines, hypermedia, calendar, wp 6;; Keywords: outlines, hypermedia, calendar, wp
7;; Homepage: http://www.astro.uva.nl/~dominik/Tools/org/ 7;; Homepage: http://www.astro.uva.nl/~dominik/Tools/org/
8;; Version: 4.05 8;; Version: 4.06
9;; 9;;
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11;; 11;;
@@ -81,6 +81,10 @@
81;; 81;;
82;; Changes since version 4.00: 82;; Changes since version 4.00:
83;; --------------------------- 83;; ---------------------------
84;; Version 4.06
85;; - HTML exporter treats targeted internal links.
86;; - Bug fixes.
87;;
84;; Version 4.05 88;; Version 4.05
85;; - Changes to internal link system (thanks to David Wainberg for ideas). 89;; - Changes to internal link system (thanks to David Wainberg for ideas).
86;; - in-file links: [[Search String]] instead of <file:::Search String> 90;; - in-file links: [[Search String]] instead of <file:::Search String>
@@ -126,7 +130,7 @@
126 130
127;;; Customization variables 131;;; Customization variables
128 132
129(defvar org-version "4.05" 133(defvar org-version "4.06"
130 "The version number of the file org.el.") 134 "The version number of the file org.el.")
131(defun org-version () 135(defun org-version ()
132 (interactive) 136 (interactive)
@@ -136,7 +140,7 @@
136;; versions (Emacs versus XEmacs) and with different versions of outline.el. 140;; versions (Emacs versus XEmacs) and with different versions of outline.el.
137;; The compatibility code in org.el is based on these two constants. 141;; The compatibility code in org.el is based on these two constants.
138(defconst org-xemacs-p (featurep 'xemacs) 142(defconst org-xemacs-p (featurep 'xemacs)
139 "Are we running xemacs?") 143 "Are we running XEmacs?")
140(defconst org-noutline-p (featurep 'noutline) 144(defconst org-noutline-p (featurep 'noutline)
141 "Are we using the new outline mode?") 145 "Are we using the new outline mode?")
142 146
@@ -1647,7 +1651,7 @@ Otherwise the buffer will just be saved to a file and stay hidden."
1647 :type 'boolean) 1651 :type 'boolean)
1648 1652
1649(defcustom org-export-html-show-new-buffer nil 1653(defcustom org-export-html-show-new-buffer nil
1650 "Non-nil means, popup buffer containing the exported html text. 1654 "Non-nil means, popup buffer containing the exported HTML text.
1651Otherwise, the buffer will just be saved to a file and stay hidden." 1655Otherwise, the buffer will just be saved to a file and stay hidden."
1652 :group 'org-export 1656 :group 'org-export
1653 :type 'boolean) 1657 :type 'boolean)
@@ -1995,8 +1999,8 @@ When this is non-nil, the headline after the keyword is set to the
1995;; an update. 1999;; an update.
1996(defvar org-table-may-need-update t 2000(defvar org-table-may-need-update t
1997 "Indicates that a table might need an update. 2001 "Indicates that a table might need an update.
1998This variable is set by `org-before-change-function'. `org-table-align' 2002This variable is set by `org-before-change-function'.
1999sets it back to nil.") 2003`org-table-align'sets it back to nil.")
2000(defvar org-mode-hook nil) 2004(defvar org-mode-hook nil)
2001(defvar org-inhibit-startup nil) ; Dynamically-scoped param. 2005(defvar org-inhibit-startup nil) ; Dynamically-scoped param.
2002(defvar org-agenda-keep-modes nil) ; Dynamically-scoped param. 2006(defvar org-agenda-keep-modes nil) ; Dynamically-scoped param.
@@ -2656,7 +2660,7 @@ or nil."
2656 2660
2657(defun org-insert-item () 2661(defun org-insert-item ()
2658 "Insert a new item at the current level. 2662 "Insert a new item at the current level.
2659Return t when tings worked, nil when we are not in an item." 2663Return t when things worked, nil when we are not in an item."
2660 (when (save-excursion 2664 (when (save-excursion
2661 (condition-case nil 2665 (condition-case nil
2662 (progn 2666 (progn
@@ -3367,7 +3371,7 @@ At all other locations, this simply calls `ispell-complete-word'."
3367 (save-excursion 3371 (save-excursion
3368 (goto-char (point-min)) 3372 (goto-char (point-min))
3369 (while (re-search-forward org-todo-line-regexp nil t) 3373 (while (re-search-forward org-todo-line-regexp nil t)
3370 (push (list 3374 (push (list
3371 (if org-file-link-context-use-camel-case 3375 (if org-file-link-context-use-camel-case
3372 (org-make-org-heading-camel (match-string 3) t) 3376 (org-make-org-heading-camel (match-string 3) t)
3373 (org-make-org-heading-search-string 3377 (org-make-org-heading-search-string
@@ -6984,7 +6988,7 @@ to read."
6984 (interactive) 6988 (interactive)
6985 (setq pos (or pos (point))) 6989 (setq pos (or pos (point)))
6986 (setq org-mark-ring (nthcdr (1- org-mark-ring-length) org-mark-ring)) 6990 (setq org-mark-ring (nthcdr (1- org-mark-ring-length) org-mark-ring))
6987 (move-marker (car org-mark-ring) 6991 (move-marker (car org-mark-ring)
6988 (or pos (point)) 6992 (or pos (point))
6989 (or buffer (current-buffer))) 6993 (or buffer (current-buffer)))
6990 (message 6994 (message
@@ -7132,14 +7136,14 @@ onto the ring."
7132;; mh-e integration based on planner-mode 7136;; mh-e integration based on planner-mode
7133(defun org-mhe-get-message-real-folder () 7137(defun org-mhe-get-message-real-folder ()
7134 "Return the name of the current message real folder, so if you use 7138 "Return the name of the current message real folder, so if you use
7135 sequences, it will now work." 7139sequences, it will now work."
7136 (save-excursion 7140 (save-excursion
7137 (let* ((folder 7141 (let* ((folder
7138 (if (equal major-mode 'mh-folder-mode) 7142 (if (equal major-mode 'mh-folder-mode)
7139 mh-current-folder 7143 mh-current-folder
7140 ;; Refer to the show buffer 7144 ;; Refer to the show buffer
7141 mh-show-folder-buffer)) 7145 mh-show-folder-buffer))
7142 (end-index 7146 (end-index
7143 (if (boundp 'mh-index-folder) 7147 (if (boundp 'mh-index-folder)
7144 (min (length mh-index-folder) (length folder)))) 7148 (min (length mh-index-folder) (length folder))))
7145 ) 7149 )
@@ -7162,8 +7166,7 @@ onto the ring."
7162 ))) 7166 )))
7163 7167
7164(defun org-mhe-get-message-folder-from-index () 7168(defun org-mhe-get-message-folder-from-index ()
7165 "Returns the name of the message folder in a index folder 7169 "Returns the name of the message folder in a index folder buffer."
7166 buffer."
7167 (save-excursion 7170 (save-excursion
7168 (mh-index-previous-folder) 7171 (mh-index-previous-folder)
7169 (if (not (re-search-forward "^\\(+.*\\)$" nil t)) 7172 (if (not (re-search-forward "^\\(+.*\\)$" nil t))
@@ -7171,8 +7174,8 @@ onto the ring."
7171 (message (match-string 1))))) 7174 (message (match-string 1)))))
7172 7175
7173(defun org-mhe-get-message-folder () 7176(defun org-mhe-get-message-folder ()
7174 "Return the name of the current message folder. Be careful if you 7177 "Return the name of the current message folder. Be careful if you
7175 use sequences." 7178use sequences."
7176 (save-excursion 7179 (save-excursion
7177 (if (equal major-mode 'mh-folder-mode) 7180 (if (equal major-mode 'mh-folder-mode)
7178 mh-current-folder 7181 mh-current-folder
@@ -7180,8 +7183,8 @@ onto the ring."
7180 mh-show-folder-buffer))) 7183 mh-show-folder-buffer)))
7181 7184
7182(defun org-mhe-get-message-num () 7185(defun org-mhe-get-message-num ()
7183 "Return the number of the current message. Be careful if you 7186 "Return the number of the current message. Be careful if you
7184 use sequences." 7187use sequences."
7185 (save-excursion 7188 (save-excursion
7186 (if (equal major-mode 'mh-folder-mode) 7189 (if (equal major-mode 'mh-folder-mode)
7187 (mh-get-msg-num nil) 7190 (mh-get-msg-num nil)
@@ -7189,9 +7192,9 @@ onto the ring."
7189 (mh-show-buffer-message-number)))) 7192 (mh-show-buffer-message-number))))
7190 7193
7191(defun org-mhe-get-header (header) 7194(defun org-mhe-get-header (header)
7192 "Return a header of the message in folder mode. This will create a 7195 "Return a header of the message in folder mode. This will create a
7193 show buffer for the corresponding message. If you have a more clever 7196show buffer for the corresponding message. If you have a more clever
7194 idea..." 7197idea..."
7195 (let* ((folder (org-mhe-get-message-folder)) 7198 (let* ((folder (org-mhe-get-message-folder))
7196 (num (org-mhe-get-message-num)) 7199 (num (org-mhe-get-message-num))
7197 (buffer (get-buffer-create (concat "show-" folder))) 7200 (buffer (get-buffer-create (concat "show-" folder)))
@@ -7211,13 +7214,14 @@ onto the ring."
7211(defun org-follow-mhe-link (folder article) 7214(defun org-follow-mhe-link (folder article)
7212 "Follow an MHE link to FOLDER and ARTICLE." 7215 "Follow an MHE link to FOLDER and ARTICLE."
7213 (setq article (org-add-angle-brackets article)) 7216 (setq article (org-add-angle-brackets article))
7214;; (require 'mh-e) 7217 (require 'mh-e)
7215 (mh-rmail) ;; mh-e is standard with emacs 22 7218 (mh-find-path)
7216 (let* ((show-buf (concat "show-" folder))) 7219 (let* ((show-buf (concat "show-" folder)))
7220 (mh-visit-folder folder)
7217 (get-buffer-create show-buf) 7221 (get-buffer-create show-buf)
7218 (mh-display-msg 7222 (mh-show-msg
7219 (string-to-number 7223 (string-to-number
7220 (car (split-string 7224 (car (split-string
7221 (with-temp-buffer 7225 (with-temp-buffer
7222 (call-process 7226 (call-process
7223 (expand-file-name "pick" mh-progs) 7227 (expand-file-name "pick" mh-progs)
@@ -7226,8 +7230,7 @@ onto the ring."
7226 "--message-id" 7230 "--message-id"
7227 article) 7231 article)
7228 (buffer-string)) 7232 (buffer-string))
7229 "\n"))) 7233 "\n"))))
7230 folder)
7231 (pop-to-buffer show-buf))) 7234 (pop-to-buffer show-buf)))
7232 7235
7233(defun org-open-file (path &optional in-emacs line search) 7236(defun org-open-file (path &optional in-emacs line search)
@@ -7383,7 +7386,7 @@ For file links, arg negates `org-context-in-file-links'."
7383 (setq cpltxt (concat from-header " on: " subject)) 7386 (setq cpltxt (concat from-header " on: " subject))
7384 (setq link (concat cpltxt "\n " 7387 (setq link (concat cpltxt "\n "
7385 (org-make-link 7388 (org-make-link
7386 "mhe:" (org-mhe-get-message-real-folder) "#" 7389 "mhe:" (org-mhe-get-message-real-folder) "#"
7387 (org-remove-angle-brackets 7390 (org-remove-angle-brackets
7388 (org-mhe-get-header "Message-Id:"))))))) 7391 (org-mhe-get-header "Message-Id:")))))))
7389 7392
@@ -7491,7 +7494,7 @@ For file links, arg negates `org-context-in-file-links'."
7491 (error "Cannot link to a buffer which is not visiting a file")) 7494 (error "Cannot link to a buffer which is not visiting a file"))
7492 7495
7493 (t (setq link nil))) 7496 (t (setq link nil)))
7494 7497
7495 (if (and (interactive-p) link) 7498 (if (and (interactive-p) link)
7496 (progn 7499 (progn
7497 (setq org-stored-links 7500 (setq org-stored-links
@@ -7500,7 +7503,7 @@ For file links, arg negates `org-context-in-file-links'."
7500 link))) 7503 link)))
7501 7504
7502(defun org-make-org-heading-search-string (&optional string heading) 7505(defun org-make-org-heading-search-string (&optional string heading)
7503 "Make search string for S or current headline." 7506 "Make search string for STRING or current headline."
7504 (interactive) 7507 (interactive)
7505 (let ((s (or string (org-get-heading)))) 7508 (let ((s (or string (org-get-heading))))
7506 (unless (and string (not heading)) 7509 (unless (and string (not heading))
@@ -7521,7 +7524,7 @@ For file links, arg negates `org-context-in-file-links'."
7521 (mapconcat 'identity (org-split-string s "[ \t]+") " "))) 7524 (mapconcat 'identity (org-split-string s "[ \t]+") " ")))
7522 7525
7523(defun org-make-org-heading-camel (&optional string heading) 7526(defun org-make-org-heading-camel (&optional string heading)
7524 "Make a CamelCase string for S or the current headline." 7527 "Make a CamelCase string for STRING or the current headline."
7525 (interactive) 7528 (interactive)
7526 (let ((s (or string (org-get-heading)))) 7529 (let ((s (or string (org-get-heading))))
7527 (unless (and string (not heading)) 7530 (unless (and string (not heading))
@@ -8638,8 +8641,8 @@ Point and mark define the first and last line to include. Both point and
8638mark should be in the column that is used for sorting. For example, to 8641mark should be in the column that is used for sorting. For example, to
8639sort according to column 3, put the mark in the first line to sort, in 8642sort according to column 3, put the mark in the first line to sort, in
8640table column 3. Put point into the last line to be included in the sorting, 8643table column 3. Put point into the last line to be included in the sorting,
8641also in table column 3. The command will prompt for the sorting method (n for 8644also in table column 3. The command will prompt for the sorting method
8642numerical, a for alphanumeric)." 8645\(n for numerical, a for alphanumeric)."
8643 (interactive "r\nsSorting method: [n]=numeric [a]=alpha: ") 8646 (interactive "r\nsSorting method: [n]=numeric [a]=alpha: ")
8644 (setq numericp (string-match "[nN]" numericp)) 8647 (setq numericp (string-match "[nN]" numericp))
8645 (org-table-align) ;; Just to be safe 8648 (org-table-align) ;; Just to be safe
@@ -9478,8 +9481,8 @@ not overwrite the stored one."
9478 (if (= c ?p) (setq modes (org-set-calc-mode 'calc-internal-prec n)) 9481 (if (= c ?p) (setq modes (org-set-calc-mode 'calc-internal-prec n))
9479 (setq modes (org-set-calc-mode 9482 (setq modes (org-set-calc-mode
9480 'calc-float-format 9483 'calc-float-format
9481 (list (cdr (assoc c '((?n. float) (?f. fix) 9484 (list (cdr (assoc c '((?n . float) (?f . fix)
9482 (?s. sci) (?e. eng)))) 9485 (?s . sci) (?e . eng))))
9483 n)))) 9486 n))))
9484 (setq fmt (replace-match "" t t fmt))) 9487 (setq fmt (replace-match "" t t fmt)))
9485 (while (string-match "[DRFS]" fmt) 9488 (while (string-match "[DRFS]" fmt)
@@ -10440,6 +10443,45 @@ The list contains HTML entities for Latin-1, Greek and other symbols.
10440It is supplemented by a number of commonly used TeX macros with appropriate 10443It is supplemented by a number of commonly used TeX macros with appropriate
10441translations. There is currently no way for users to extend this.") 10444translations. There is currently no way for users to extend this.")
10442 10445
10446(defun org-cleaned-string-for-export (string)
10447 "Cleanup a buffer substring so that links can be created safely."
10448 (interactive)
10449 (let* ((cb (current-buffer))
10450 (re-radio (concat "\\([^<]\\)\\(" org-target-link-regexp "\\)"))
10451 rtn)
10452 (save-excursion
10453 (set-buffer (get-buffer-create " org-mode-tmp"))
10454 (erase-buffer)
10455 (insert string)
10456 (org-mode)
10457 ;; Find targets in comments and move them out of comments
10458 (goto-char (point-min))
10459 (while (re-search-forward "^#.*?\\(<<<?[^>\r\n]+>>>?\\).*" nil t)
10460 (replace-match "\\1"))
10461 ;; Find matches for radio targets and turn them into links
10462 (goto-char (point-min))
10463 (while (re-search-forward re-radio nil t)
10464 (replace-match "\\1[[\\2]]"))
10465 ;; Find all links that contain a newline and put them into a single line
10466 (goto-char (point-min))
10467 (while (re-search-forward "\\(\\[\\[[^]]*?\\)[ \t]*\n[ \t]*\\([^]]*\\]\\]\\)" nil t)
10468 (replace-match "\\1 \\2")
10469 (goto-char (match-beginning 0)))
10470 ;; Remove comments
10471 (goto-char (point-min))
10472 (while (re-search-forward "^#.*\n?" nil t)
10473 (replace-match ""))
10474 (setq rtn (buffer-string)))
10475 (kill-buffer " org-mode-tmp")
10476 rtn))
10477
10478(defun org-solidify-link-text (s)
10479 "Take link text and make a safe target out of it."
10480 (save-match-data
10481 (mapconcat
10482 'identity
10483 (org-split-string s "[ \t\r\n]+") "--")))
10484
10443(defvar org-last-level nil) ; dynamically scoped variable 10485(defvar org-last-level nil) ; dynamically scoped variable
10444 10486
10445(defun org-export-as-ascii (arg) 10487(defun org-export-as-ascii (arg)
@@ -10454,7 +10496,10 @@ underlined headlines. The default is 3."
10454 (if (org-region-active-p) (region-beginning) (point-min)) 10496 (if (org-region-active-p) (region-beginning) (point-min))
10455 (if (org-region-active-p) (region-end) (point-max)))) 10497 (if (org-region-active-p) (region-end) (point-max))))
10456 (lines (org-export-find-first-heading-line 10498 (lines (org-export-find-first-heading-line
10457 (org-skip-comments (org-split-string region "[\r\n]")))) 10499 (org-skip-comments
10500 (org-split-string
10501 (org-cleaned-string-for-export region)
10502 "[\r\n]"))))
10458 (org-startup-with-deadline-check nil) 10503 (org-startup-with-deadline-check nil)
10459 (level 0) line txt 10504 (level 0) line txt
10460 (umax nil) 10505 (umax nil)
@@ -10543,6 +10588,14 @@ underlined headlines. The default is 3."
10543 (while (setq line (pop lines)) 10588 (while (setq line (pop lines))
10544 ;; Remove the quoted HTML tags. 10589 ;; Remove the quoted HTML tags.
10545 (setq line (org-html-expand-for-ascii line)) 10590 (setq line (org-html-expand-for-ascii line))
10591 ;; Remove targets
10592 (while (string-match "<<<?[^<>]*>>>?[ \t]*\n?" line)
10593 (setq line (replace-match "" t t line)))
10594 ;; Replace internal links
10595 (while (string-match org-bracket-link-regexp line)
10596 (setq line (replace-match
10597 (if (match-end 3) "[\\3]" "[\\1]")
10598 t nil line)))
10546 (cond 10599 (cond
10547 ((string-match "^\\(\\*+\\)[ \t]*\\(.*\\)" line) 10600 ((string-match "^\\(\\*+\\)[ \t]*\\(.*\\)" line)
10548 ;; a Headline 10601 ;; a Headline
@@ -10781,7 +10834,9 @@ headlines. The default is 3. Lower levels will become bulleted lists."
10781 (if region-p (region-beginning) (point-min)) 10834 (if region-p (region-beginning) (point-min))
10782 (if region-p (region-end) (point-max)))) 10835 (if region-p (region-end) (point-max))))
10783 (all_lines 10836 (all_lines
10784 (org-skip-comments (org-split-string region "[\r\n]"))) 10837 (org-skip-comments (org-split-string
10838 (org-cleaned-string-for-export region)
10839 "[\r\n]")))
10785 (lines (org-export-find-first-heading-line all_lines)) 10840 (lines (org-export-find-first-heading-line all_lines))
10786 (level 0) (line "") (origline "") txt todo 10841 (level 0) (line "") (origline "") txt todo
10787 (umax nil) 10842 (umax nil)
@@ -10944,7 +10999,26 @@ headlines. The default is 3. Lower levels will become bulleted lists."
10944 (insert "</pre>\n")) 10999 (insert "</pre>\n"))
10945 (throw 'nextline nil)) 11000 (throw 'nextline nil))
10946 11001
10947 ;; Protect the links 11002
11003 ;; make targets to anchors
11004 (while (string-match "<<<?\\([^<>]*\\)>>>?[ \t]*\n?" line)
11005 (setq line (replace-match
11006 (concat "@<a name=\""
11007 (org-solidify-link-text (match-string 1 line))
11008 "\">\\nbsp@</a>")
11009 t t line)))
11010 ;; Replace internal links
11011 (while (string-match org-bracket-link-regexp line)
11012 (setq line (replace-match
11013 (concat
11014 "@<a href=\"#"
11015 (org-solidify-link-text (match-string 1 line))
11016 "\">"
11017 (match-string (if (match-end 3) 3 1) line)
11018 "@</a>")
11019 t t line)))
11020
11021 ;; Protect the external links
10948 (setq start 0) 11022 (setq start 0)
10949 (while (string-match org-link-maybe-angles-regexp line start) 11023 (while (string-match org-link-maybe-angles-regexp line start)
10950 (setq start (match-end 0)) 11024 (setq start (match-end 0))
@@ -11122,7 +11196,7 @@ headlines. The default is 3. Lower levels will become bulleted lists."
11122 (org-format-table-table-html-using-table-generate-source olines))))) 11196 (org-format-table-table-html-using-table-generate-source olines)))))
11123 11197
11124(defun org-format-org-table-html (lines) 11198(defun org-format-org-table-html (lines)
11125 "Format a table into html." 11199 "Format a table into HTML."
11126 (if (string-match "^[ \t]*|-" (car lines)) (setq lines (cdr lines))) 11200 (if (string-match "^[ \t]*|-" (car lines)) (setq lines (cdr lines)))
11127 (setq lines (nreverse lines)) 11201 (setq lines (nreverse lines))
11128 (if (string-match "^[ \t]*|-" (car lines)) (setq lines (cdr lines))) 11202 (if (string-match "^[ \t]*|-" (car lines)) (setq lines (cdr lines)))
@@ -11149,7 +11223,7 @@ headlines. The default is 3. Lower levels will become bulleted lists."
11149 (string-match "^[ \t]*|[^|]*|" x)) 11223 (string-match "^[ \t]*|[^|]*|" x))
11150 (replace-match "|" t t x)))) 11224 (replace-match "|" t t x))))
11151 lines)))))) 11225 lines))))))
11152 11226
11153 (let ((head (and org-export-highlight-first-table-line 11227 (let ((head (and org-export-highlight-first-table-line
11154 (delq nil (mapcar 11228 (delq nil (mapcar
11155 (lambda (x) (string-match "^[ \t]*|-" x)) 11229 (lambda (x) (string-match "^[ \t]*|-" x))
@@ -11188,7 +11262,7 @@ headlines. The default is 3. Lower levels will become bulleted lists."
11188 newstr)) 11262 newstr))
11189 11263
11190(defun org-format-table-table-html (lines) 11264(defun org-format-table-table-html (lines)
11191 "Format a table generated by table.el into html. 11265 "Format a table generated by table.el into HTML.
11192This conversion does *not* use `table-generate-source' from table.el. 11266This conversion does *not* use `table-generate-source' from table.el.
11193This has the advantage that Org-mode's HTML conversions can be used. 11267This has the advantage that Org-mode's HTML conversions can be used.
11194But it has the disadvantage, that no cell- or row-spanning is allowed." 11268But it has the disadvantage, that no cell- or row-spanning is allowed."
@@ -12363,8 +12437,9 @@ work correctly."
12363 12437
12364(defun org-add-hook (hook function &optional append local) 12438(defun org-add-hook (hook function &optional append local)
12365 "Add-hook, compatible with both Emacsen." 12439 "Add-hook, compatible with both Emacsen."
12366 (if (and local org-xemacs-p) (make-local-hook hook)) ;; Needed for XEmacs 12440 (if (and local org-xemacs-p)
12367 (add-hook hook function append local)) 12441 (add-local-hook hook function append)
12442 (add-hook hook function append local)))
12368 12443
12369(defun org-region-active-p () 12444(defun org-region-active-p ()
12370 "Is `transient-mark-mode' on and the region active? 12445 "Is `transient-mark-mode' on and the region active?