aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman2007-05-24 22:12:25 +0000
committerRichard M. Stallman2007-05-24 22:12:25 +0000
commit913a8cda3525fdd39156ae203684ed9920bfc149 (patch)
treeac30b1420fc0c09de4042608fbfb180377aeb708 /lisp
parentc721aa42234fb4d4f74842f602ca3ee94f1f708d (diff)
downloademacs-913a8cda3525fdd39156ae203684ed9920bfc149.tar.gz
emacs-913a8cda3525fdd39156ae203684ed9920bfc149.zip
(flyspell-correct-word-before-point): Don't let opoint be nil.
(flyspell-emacs-popup): Explicit error if no dialogs.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/textmodes/flyspell.el3
2 files changed, 9 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b1763abd2ef..d06e66e38d3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-05-24 Richard Stallman <rms@gnu.org>
2
3 * textmodes/flyspell.el (flyspell-correct-word-before-point):
4 Don't let opoint be nil.
5 (flyspell-emacs-popup): Explicit error if no dialogs.
6
12007-05-23 Eli Zaretskii <eliz@gnu.org> 72007-05-23 Eli Zaretskii <eliz@gnu.org>
2 8
3 * tar-mode.el (tar-file-name-handler): New function. 9 * tar-mode.el (tar-file-name-handler): New function.
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index a509fdf7f6c..e02fec1362f 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -2025,6 +2025,7 @@ If OPOINT is non-nil, restore point there after adjusting it for replacement."
2025 (error "Pop-up menus do not work on this terminal")) 2025 (error "Pop-up menus do not work on this terminal"))
2026 ;; use the correct dictionary 2026 ;; use the correct dictionary
2027 (flyspell-accept-buffer-local-defs) 2027 (flyspell-accept-buffer-local-defs)
2028 (or opoint (setq opoint (point-marker)))
2028 (let ((cursor-location (point)) 2029 (let ((cursor-location (point))
2029 (word (flyspell-get-word nil))) 2030 (word (flyspell-get-word nil)))
2030 (if (consp word) 2031 (if (consp word)
@@ -2133,6 +2134,8 @@ If OPOINT is non-nil, restore point there after adjusting it for replacement."
2133;;*---------------------------------------------------------------------*/ 2134;;*---------------------------------------------------------------------*/
2134(defun flyspell-emacs-popup (event poss word) 2135(defun flyspell-emacs-popup (event poss word)
2135 "The Emacs popup menu." 2136 "The Emacs popup menu."
2137 (unless window-system
2138 (error "This command requires pop-up dialogs"))
2136 (if (not event) 2139 (if (not event)
2137 (let* ((mouse-pos (mouse-position)) 2140 (let* ((mouse-pos (mouse-position))
2138 (mouse-pos (if (nth 1 mouse-pos) 2141 (mouse-pos (if (nth 1 mouse-pos)