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 [EMACS_22_B


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/textmodes/flyspell.el, v [EMACS_22_BASE]
Date: Thu, 24 May 2007 22:11:51 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Branch:         EMACS_22_BASE
Changes by:     Richard M. Stallman <rms>       07/05/24 22:11:51

Index: flyspell.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/textmodes/flyspell.el,v
retrieving revision 1.118.2.1
retrieving revision 1.118.2.2
diff -u -b -r1.118.2.1 -r1.118.2.2
--- flyspell.el 27 Apr 2007 18:53:31 -0000      1.118.2.1
+++ flyspell.el 24 May 2007 22:11:50 -0000      1.118.2.2
@@ -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]