From: Magnus H. <leg...@us...> - 2008-09-12 20:24:50
|
Update of /cvsroot/emacs-jabber/emacs-jabber In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv29448 Modified Files: jabber-roster.el Log Message: Revision: ma...@fr...--2005/emacs-jabber--cvs-head--0--patch-574 Creator: Magnus Henoch <ma...@fr...> Don't use goto-line in jabber-display-roster, for it sets the mark Index: jabber-roster.el =================================================================== RCS file: /cvsroot/emacs-jabber/emacs-jabber/jabber-roster.el,v retrieving revision 1.55 retrieving revision 1.56 diff -u -d -r1.55 -r1.56 --- jabber-roster.el 11 Sep 2008 08:22:56 -0000 1.55 +++ jabber-roster.el 12 Sep 2008 20:24:45 -0000 1.56 @@ -396,7 +396,11 @@ (dolist (hook '(jabber-info-message-hooks jabber-alert-info-message-hooks)) (run-hook-with-args hook 'roster (current-buffer) (funcall jabber-alert-info-message-function 'roster (current-buffer))))) (when current-line - (goto-line current-line) + ;; Go back to previous line - don't use goto-line, since it + ;; sets the mark. + (goto-char (point-min)) + (forward-line (1- current-line)) + ;; ...and go back to previous column (move-to-column current-column))))) (defun jabber-display-roster-entry (jc buddy) |