emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/textmodes/flyspell.el,v


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/textmodes/flyspell.el,v
Date: Fri, 25 May 2007 04:55:50 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Miles Bader <miles>     07/05/25 04:55:49

Index: lisp/textmodes/flyspell.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/textmodes/flyspell.el,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -b -r1.119 -r1.120
--- lisp/textmodes/flyspell.el  27 Apr 2007 18:56:26 -0000      1.119
+++ lisp/textmodes/flyspell.el  25 May 2007 04:55:47 -0000      1.120
@@ -2025,6 +2025,7 @@
     (error "Pop-up menus do not work on this terminal"))
   ;; use the correct dictionary
   (flyspell-accept-buffer-local-defs)
+  (or opoint (setq opoint (point-marker)))
   (let ((cursor-location (point))
        (word (flyspell-get-word nil)))
     (if (consp word)
@@ -2133,6 +2134,8 @@
 ;;*---------------------------------------------------------------------*/
 (defun flyspell-emacs-popup (event poss word)
   "The Emacs popup menu."
+  (unless window-system
+    (error "This command requires pop-up dialogs"))
   (if (not event)
       (let* ((mouse-pos  (mouse-position))
             (mouse-pos  (if (nth 1 mouse-pos)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]