all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* reftex-mouse-view-crossref: change point?
@ 2007-12-15 12:08 David Reitter
  2007-12-16  7:49 ` Ralf Angeli
  0 siblings, 1 reply; 4+ messages in thread
From: David Reitter @ 2007-12-15 12:08 UTC (permalink / raw)
  To: emacs- devel

Should functions like `reftex-mouse-view-crossref' really change the  
point?
This is isn't documented to do so, and in other GUIs, right (or shift- 
clicking) somewhere doesn't set the point either.


*** lisp/textmodes/reftex-dcr.el	25 Jul 2007 05:22:08 +0100	1.28.2.1
--- lisp/textmodes/reftex-dcr.el	15 Dec 2007 12:05:06 +0000	
***************
*** 231,238 ****
   If there is no such macro at point, search forward to find one.
   With argument, actually select the window showing the cross  
reference."
     (interactive "e")
!   (mouse-set-point ev)
!   (reftex-view-crossref current-prefix-arg))

   (defun reftex-view-crossref-when-idle ()
     ;; Display info about crossref at point in echo area or a window.
--- 231,239 ----
   If there is no such macro at point, search forward to find one.
   With argument, actually select the window showing the cross  
reference."
     (interactive "e")
!   (save-excursion
!     (mouse-set-point ev)
!     (reftex-view-crossref current-prefix-arg)))

   (defun reftex-view-crossref-when-idle ()
     ;; Display info about crossref at point in echo area or a window.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: reftex-mouse-view-crossref: change point?
  2007-12-15 12:08 reftex-mouse-view-crossref: change point? David Reitter
@ 2007-12-16  7:49 ` Ralf Angeli
  2007-12-16 19:19   ` David Reitter
  2007-12-21  0:07   ` Stefan Monnier
  0 siblings, 2 replies; 4+ messages in thread
From: Ralf Angeli @ 2007-12-16  7:49 UTC (permalink / raw)
  To: emacs-devel

* David Reitter (2007-12-15) writes:

> Should functions like `reftex-mouse-view-crossref' really change the  
> point?

It should.  Otherwise the referencing macro might get out of view in
the original window and then one does not see the matching macros with
their contexts.

-- 
Ralf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: reftex-mouse-view-crossref: change point?
  2007-12-16  7:49 ` Ralf Angeli
@ 2007-12-16 19:19   ` David Reitter
  2007-12-21  0:07   ` Stefan Monnier
  1 sibling, 0 replies; 4+ messages in thread
From: David Reitter @ 2007-12-16 19:19 UTC (permalink / raw)
  To: Ralf Angeli; +Cc: emacs-devel

On 16 Dec 2007, at 07:49, Ralf Angeli wrote:
>>
>> Should functions like `reftex-mouse-view-crossref' really change the
>> point?
>
> It should.  Otherwise the referencing macro might get out of view in
> the original window and then one does not see the matching macros with
> their contexts.

That makes sense  - except when in configurations with pop-up-frames  
set to t (and similar customizations) the original window always stays  
the same. 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: reftex-mouse-view-crossref: change point?
  2007-12-16  7:49 ` Ralf Angeli
  2007-12-16 19:19   ` David Reitter
@ 2007-12-21  0:07   ` Stefan Monnier
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2007-12-21  0:07 UTC (permalink / raw)
  To: Ralf Angeli; +Cc: emacs-devel

>> Should functions like `reftex-mouse-view-crossref' really change the  
>> point?

> It should.  Otherwise the referencing macro might get out of view in
> the original window and then one does not see the matching macros with
> their contexts.

Interesting detail, indeed.  Deserves a comment.


        Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-12-21  0:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-15 12:08 reftex-mouse-view-crossref: change point? David Reitter
2007-12-16  7:49 ` Ralf Angeli
2007-12-16 19:19   ` David Reitter
2007-12-21  0:07   ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.