diff options
| author | Roland McGrath | 1993-07-08 22:38:59 +0000 |
|---|---|---|
| committer | Roland McGrath | 1993-07-08 22:38:59 +0000 |
| commit | 0d28f0725d75b9a50e73d9c98d15fbb8ab7f402b (patch) | |
| tree | 5be94448ed5504c01174e0509f72178a36b486dd | |
| parent | 19d353745fd01b621b6deaadccfdae4030cd01be (diff) | |
| download | emacs-0d28f0725d75b9a50e73d9c98d15fbb8ab7f402b.tar.gz emacs-0d28f0725d75b9a50e73d9c98d15fbb8ab7f402b.zip | |
(ispell): Call deactivate-mark instead of setting mark-active directly. Do
this regardless of transient-mark-mode.
| -rw-r--r-- | lisp/textmodes/ispell4.el | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lisp/textmodes/ispell4.el b/lisp/textmodes/ispell4.el index ad95f3752bb..2fe07e823d4 100644 --- a/lisp/textmodes/ispell4.el +++ b/lisp/textmodes/ispell4.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; ispell.el --- this is the GNU EMACS interface to GNU ISPELL version 4. | 1 | ;;; ispell.el --- this is the GNU EMACS interface to GNU ISPELL version 4. |
| 2 | 2 | ||
| 3 | ;;Copyright (C) 1990, 1991 Free Software Foundation, Inc. | 3 | ;;Copyright (C) 1990, 1991, 1993 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Keywords: wp | 5 | ;; Keywords: wp |
| 6 | 6 | ||
| @@ -245,10 +245,7 @@ q, \\[keyboard-quit] Leave the command loop. You can come back later with \\[is | |||
| 245 | (error "Can't find buffer")) | 245 | (error "Can't find buffer")) |
| 246 | ;; Deactivate the mark, because we'll do it anyway if we change something, | 246 | ;; Deactivate the mark, because we'll do it anyway if we change something, |
| 247 | ;; and a region highlight while in the Ispell loop is distracting. | 247 | ;; and a region highlight while in the Ispell loop is distracting. |
| 248 | (if transient-mark-mode | 248 | (deactivate-mark) |
| 249 | (progn | ||
| 250 | (setq mark-active nil) | ||
| 251 | (run-hooks 'deactivate-mark-hook))) | ||
| 252 | (save-excursion | 249 | (save-excursion |
| 253 | (set-buffer buf) | 250 | (set-buffer buf) |
| 254 | (let ((filename buffer-file-name) | 251 | (let ((filename buffer-file-name) |