diff options
| author | Richard M. Stallman | 1993-09-12 11:25:16 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-09-12 11:25:16 +0000 |
| commit | 26ff8619bb91aea15614ab4ebdadc230f8b7312d (patch) | |
| tree | 49f4eb99bbc29e03af82352562dc0b96be0b0c23 | |
| parent | cd376b506bdfb398ddc126f0528e4b869c4e5677 (diff) | |
| download | emacs-26ff8619bb91aea15614ab4ebdadc230f8b7312d.tar.gz emacs-26ff8619bb91aea15614ab4ebdadc230f8b7312d.zip | |
(sc-glom-headers): Bind mark-active around calling region-...
(sc-cite-original): Likewise.
| -rw-r--r-- | lisp/sc.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/sc.el b/lisp/sc.el index cc8deb446b2..03eade6cba2 100644 --- a/lisp/sc.el +++ b/lisp/sc.el | |||
| @@ -1366,10 +1366,12 @@ Any old information is lost, unless an error occurs." | |||
| 1366 | (info (copy-sequence sc-gal-information))) | 1366 | (info (copy-sequence sc-gal-information))) |
| 1367 | (setq sc-gal-attributions nil | 1367 | (setq sc-gal-attributions nil |
| 1368 | sc-gal-information nil) | 1368 | sc-gal-information nil) |
| 1369 | (let ((start (region-beginning)) | 1369 | (let (start end |
| 1370 | (end (region-end)) | ||
| 1371 | (sc-force-confirmation-p t) | 1370 | (sc-force-confirmation-p t) |
| 1372 | (sc-cite-context nil)) | 1371 | (sc-cite-context nil)) |
| 1372 | (let ((mark-active t)) | ||
| 1373 | (setq start (region-beginning) | ||
| 1374 | end (region-end))) | ||
| 1373 | (sc-fetch-fields start end) | 1375 | (sc-fetch-fields start end) |
| 1374 | (if (null sc-gal-information) | 1376 | (if (null sc-gal-information) |
| 1375 | (progn | 1377 | (progn |
| @@ -1514,8 +1516,10 @@ original message but it does require a few things: | |||
| 1514 | (run-hooks 'sc-pre-hook) | 1516 | (run-hooks 'sc-pre-hook) |
| 1515 | (setq sc-gal-attributions nil) | 1517 | (setq sc-gal-attributions nil) |
| 1516 | (setq sc-gal-information nil) | 1518 | (setq sc-gal-information nil) |
| 1517 | (let ((start (region-beginning)) | 1519 | (let (start end) |
| 1518 | (end (region-end))) | 1520 | (let ((mark-active t)) |
| 1521 | (setq start (region-beginning) | ||
| 1522 | end (region-end))) | ||
| 1519 | (sc-fetch-fields start end) | 1523 | (sc-fetch-fields start end) |
| 1520 | (sc-mail-yank-clear-headers start end) | 1524 | (sc-mail-yank-clear-headers start end) |
| 1521 | (if (not sc-all-but-cite-p) | 1525 | (if (not sc-all-but-cite-p) |