diff options
| author | Ken Manheimer | 2011-02-07 13:55:33 -0500 |
|---|---|---|
| committer | Ken Manheimer | 2011-02-07 13:55:33 -0500 |
| commit | 3e2ee8896bc80197299b175afbf81c261d7effa2 (patch) | |
| tree | 01d4e84464b9f6577657c182d0d8a3448afd2b17 | |
| parent | 41d579ce4a2a86428f200788df4b15b936aa5076 (diff) | |
| download | emacs-3e2ee8896bc80197299b175afbf81c261d7effa2.tar.gz emacs-3e2ee8896bc80197299b175afbf81c261d7effa2.zip | |
(allout-listify-exposed): Copy text sans text properties.
| -rw-r--r-- | lisp/allout.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/allout.el b/lisp/allout.el index d965ac35338..a0bd8f7339c 100644 --- a/lisp/allout.el +++ b/lisp/allout.el | |||
| @@ -5406,8 +5406,10 @@ header and body. The elements of that list are: | |||
| 5406 | ;; Goto initial topic, and register preceeding stuff, if any: | 5406 | ;; Goto initial topic, and register preceeding stuff, if any: |
| 5407 | (if (> (allout-goto-prefix-doublechecked) start) | 5407 | (if (> (allout-goto-prefix-doublechecked) start) |
| 5408 | ;; First topic follows beginning point -- register preliminary stuff: | 5408 | ;; First topic follows beginning point -- register preliminary stuff: |
| 5409 | (setq result (list (list 0 "" nil | 5409 | (setq result |
| 5410 | (buffer-substring start (1- (point))))))) | 5410 | (list (list 0 "" nil |
| 5411 | (buffer-substring-no-properties start | ||
| 5412 | (1- (point))))))) | ||
| 5411 | (while (and (not done) | 5413 | (while (and (not done) |
| 5412 | (not (eobp)) ; Loop until we've covered the region. | 5414 | (not (eobp)) ; Loop until we've covered the region. |
| 5413 | (not (> (point) end))) | 5415 | (not (> (point) end))) |
| @@ -5426,7 +5428,7 @@ header and body. The elements of that list are: | |||
| 5426 | (setq strings nil) | 5428 | (setq strings nil) |
| 5427 | (while (> next (point)) ; Get all the exposed text in | 5429 | (while (> next (point)) ; Get all the exposed text in |
| 5428 | (setq strings | 5430 | (setq strings |
| 5429 | (cons (buffer-substring | 5431 | (cons (buffer-substring-no-properties |
| 5430 | beg | 5432 | beg |
| 5431 | ;To hidden text or end of line: | 5433 | ;To hidden text or end of line: |
| 5432 | (progn | 5434 | (progn |