Re: Error in `pre-command-hook`

Markus Heiser <[email protected]> Thu, 01 Dec 2005 12:41:19 +0100
Newsgroups gmane.emacs.xemacs.general
Organization Contact GmbH
Message-ID <[email protected]>
Hello

[email protected] schrieb:
> Hello,
> 
> I think it was in an emacs wiki, where I found this nice isearch hook:
> 
> (add-hook 'isearch-mode-end-hook '(lambda ()
>                                     (when isearch-forward (goto-char 
> isearch-other-end))))

indeed that's nice! I fixed it that way ...

(add-hook 'isearch-mode-end-hook
           '(lambda ()
              (when (and isearch-forward isearch-other-end)
                (goto-char isearch-other-end))))

... put this in your dot-emacs file and don't forget to restart
     your emacs-session (to get lost of the old handle).

-- 

Mit freundlichem Gruss

     -- M.Heiser --

  -----------------------------------------------------------------
     Markus Heiser                   Dipl. Ing. Physiktechnik (FH)
     CONTACT Software GmbH           Tel. : +49 (0) 421 20153 91
     Software Entwicklung            FAX  : +49 (0) 421 20153 41
     Wiener Str. 1-3                 eMail: [email protected]
     D-28359 Bremen                  www  : http://www.contact.de
  -----------------------------------------------------------------