Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-09-29 Thread Mosè Giordano
Hi,

2017-09-28 18:32 GMT+02:00 Ikumi Keita :
> Hi all,
>
>> Ikumi Keita  writes:
>> Hi Mosè,
>> Mosè Giordano  writes:
>>> Hi Keita,
>>> the same feature has been asked for Okular on TeX.se:
>>> https://emacs.stackexchange.com/q/35788/620  Is there any chance to
>>> generalize it to any viewer?
>
>> OK, I'll take a look and see if it is possible in a clean manner.
>
> I think the attached patch does the supposed job basically.  It inserts
> addtional process at the end of `TeX-command' and brings the focus back
> to emacs if the relavant user option is non-nil and the command is
> "View".

The patch looks good, but... doesn't work for me, at least with
Okular.  Instead it works with Evince.

> In this patch, the user option is renamed from
> `TeX-view-evince-keep-focus' to `TeX-view-keep-focus'.

Good idea.

Bye,
Mosè

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-09-28 Thread Ikumi Keita
Hi all,

> Ikumi Keita  writes:
> Hi Mosè,
> Mosè Giordano  writes:
>> Hi Keita,
>> the same feature has been asked for Okular on TeX.se:
>> https://emacs.stackexchange.com/q/35788/620  Is there any chance to
>> generalize it to any viewer?

> OK, I'll take a look and see if it is possible in a clean manner.

I think the attached patch does the supposed job basically.  It inserts
addtional process at the end of `TeX-command' and brings the focus back
to emacs if the relavant user option is non-nil and the command is
"View".  In this patch, the user option is renamed from
`TeX-view-evince-keep-focus' to `TeX-view-keep-focus'.

How do you think about this?

Regards,
Ikumi Keita

--- tex-buf.el~	2017-09-29 01:14:51.554511000 +0900
+++ tex-buf.el	2017-09-29 01:22:41.640439000 +0900
@@ -540,7 +540,16 @@
 ;; Now start the process
 (setq file (funcall file))
 (TeX-process-set-variable file 'TeX-command-next TeX-command-Show)
-(funcall hook name command file)))
+(funcall hook name command file)
+
+(if (and TeX-view-keep-focus
+	 (string= name "View"))
+	(cond ((fboundp #'select-frame-set-input-focus)
+		   (select-frame-set-input-focus (selected-frame)))
+		  ((fboundp #'x-focus-frame)
+		   (x-focus-frame (selected-frame)))
+		  ((fboundp #'focus-frame)
+		   (focus-frame (selected-frame)))
 
 (defvar TeX-command-text)   ;Dynamically scoped.
 (defvar TeX-command-pos);Dynamically scoped.
___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-09-28 Thread Ikumi Keita
Hi Mosè,

> Mosè Giordano  writes:
> Hi Keita,
> the same feature has been asked for Okular on TeX.se:
> https://emacs.stackexchange.com/q/35788/620  Is there any chance to
> generalize it to any viewer?

OK, I'll take a look and see if it is possible in a clean manner.

Bye,
Ikumi Keita

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-09-27 Thread Mosè Giordano
Hi Keita,

the same feature has been asked for Okular on TeX.se:
https://emacs.stackexchange.com/q/35788/620  Is there any chance to
generalize it to any viewer?

Bye,
Mosè


2017-09-16 16:03 GMT+02:00 Ikumi Keita :
> Hi Hong,
>
>> Hong Xu  writes:
>
>> Thanks for picking up this patch. I like this plan -- and I can't think
>> of a better plan.
>
> OK, now I have just commited the change according to the plan.  Thank
> you.
>
> Bye,
> Ikumi Keita
>
> ___
> auctex-devel mailing list
> auctex-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/auctex-devel
>

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-09-16 Thread Ikumi Keita
Hi Hong,

> Hong Xu  writes:

> Thanks for picking up this patch. I like this plan -- and I can't think
> of a better plan.

OK, now I have just commited the change according to the plan.  Thank
you.

Bye,
Ikumi Keita

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-09-15 Thread Hong Xu
On 09/15/2017 09:05 AM, Ikumi Keita wrote:
> Hi Hong and all,
> 
>> Hong Xu  writes:
>>> Hi everyone,
>>>
>>> I've now attached an updated version to add an option for that.
>>>
>>> Hong
>>>
> 
>> Are we still interested in this patch? :)
> 
>> Hong
> 
> If no one else is going to pick up this patch, I will take up this job.
> Hong, thank you for providing a useful feature.  There is one problem
> about your proposal, however.  The function
> `select-frame-set-input-focus' is not available on older emacsens, so I
> have to modify it a bit.  The current idea is:
> - If the function is avalable, use it,
> - else use `x-focus-frame', if available,
> - else use `focus-frame', if available,
> - else do nothing.
> Do you have any comments about this plan?  If you have better idea, I
> would appreciate.
> 

I Ikumi,

Thanks for picking up this patch. I like this plan -- and I can't think
of a better plan.

Hong


___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-09-15 Thread Ikumi Keita
Hi Hong and all,

> Hong Xu  writes:
>> Hi everyone,
>> 
>> I've now attached an updated version to add an option for that.
>> 
>> Hong
>> 

> Are we still interested in this patch? :)

> Hong

If no one else is going to pick up this patch, I will take up this job.
Hong, thank you for providing a useful feature.  There is one problem
about your proposal, however.  The function
`select-frame-set-input-focus' is not available on older emacsens, so I
have to modify it a bit.  The current idea is:
- If the function is avalable, use it,
- else use `x-focus-frame', if available,
- else use `focus-frame', if available,
- else do nothing.
Do you have any comments about this plan?  If you have better idea, I
would appreciate.

Best,
Ikumi Keita

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-09-11 Thread Hong Xu
On 09/06/2017 01:09 PM, Hong Xu wrote:
> On 08/20/2017 08:33 AM, Mosè Giordano wrote:
>> Hi!
>>
>> 2017-08-20 17:21 GMT+02:00  :
>>> Dear Mosè and Hong,
>>>
>>> I also use a setup similar to Hong's: I have the pdf viewer and emacs side 
>>> by side; at times I update the pdf just to see how the text looks like, but 
>>> I still keep on working on the tex file.
>>
>> Eventually someone explained it clearly, thanks!  Emacs and the viewer
>> are side by side.  That's not my usual setup and couldn't figure out
>> this was Hong's one.  Ok, now I see the point of the proposed patch.
>>
>>> I imagine that maybe 50% of users might like Hong's proposed behaviour, and 
>>> the other 50% might not like it.
>>
>> If this is optional, it shouldn't upset anyone.
>>
> 
> Hi everyone,
> 
> I've now attached an updated version to add an option for that.
> 
> Hong
> 

Are we still interested in this patch? :)

Hong


___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-08-26 Thread Colin Baxter
> gojjoe   writes:

> It's code but also and foremost a typographic tool. When finishing
> to latex-typeset a document – and "finishing" can take quite some
> time in itself – I think it's inevitable to alternately compile
> and check the output continuously, to see if some parts of text
> look better in a certain disposition or another, or to find the
> best position for that important figure. Especially if you know
> the text will be printed. Not even auctex's preview can help for
> this; its purpose is different. I'm sure this is the case for most
> latex users, or for many of them at least.


I'm sure you're right. As an old timer (TeX since 1980s) I'm probably
stuck in my ways :-(.

-- 
--
Colin Baxter
m43...@yandex.com
GnuPG fingerprint: 68A8 799C 0230 16E7 BF68  2A27 BBFA 2492 91F5 41C8

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-08-26 Thread Colin Baxter
> "David" == David Kastrup  writes:

David> Colin Baxter  writes:
>>> "Tassilo" == Tassilo Horn  writes:
>> 
Tassilo> Mosè Giordano  writes: Hi!
>> 
>> >>> Do you all agree to make this an option? If so, I can update
>> the >>> patch to accommodate that.  >> >> I'm not still convinced
>> that the patch you propose is a good >> idea.  Why should people
>> run "View" command to *not* view the >> document?
>> 
Tassilo> I know what Hong's referring to.  You want to view the
Tassilo> document in Evince but keep editing in emacs, thus the
Tassilo> input focus should stick there.
>> 
>> To me, and assuming I have not totally misunderstood the
>> proposal, there seems to be a philosophical issue here. If you
>> were to write a program, you wouldn't expect to view the output
>> of the compilation as you enter the code. You might look at an
>> initial output but then you would concentrate on the code before
>> compiling again - you surely wouldn't do both
>> simultaneously. TeX/LaTeX is also code, so why would not the same
>> expectation apply? I apologise if I have misunderstood.

David> Well, your philosophy did not manage to prevent
David> preview-latex.

Very true. I can only claim never to have used it.

-- 
--
Colin Baxter
m43...@yandex.com
GnuPG fingerprint: 68A8 799C 0230 16E7 BF68  2A27 BBFA 2492 91F5 41C8

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-08-26 Thread Colin Baxter
> "Tassilo" == Tassilo Horn  writes:

Tassilo> Mosè Giordano  writes: Hi!

>>> Do you all agree to make this an option? If so, I can update the
>>> patch to accommodate that.
>> 
>> I'm not still convinced that the patch you propose is a good
>> idea.  Why should people run "View" command to *not* view the
>> document?

Tassilo> I know what Hong's referring to.  You want to view the
Tassilo> document in Evince but keep editing in emacs, thus the
Tassilo> input focus should stick there.

To me, and assuming I have not totally misunderstood the proposal, there
seems to be a philosophical issue here. If you were to write a program,
you wouldn't expect to view the output of the compilation as you
enter the code. You might look at an initial output but then you would
concentrate on the code before compiling again - you surely wouldn't do
both simultaneously. TeX/LaTeX is also code, so why would not the same
expectation apply? I apologise if I have misunderstood.

-- 
--
Colin Baxter
m43...@yandex.com
GnuPG fingerprint: 68A8 799C 0230 16E7 BF68  2A27 BBFA 2492 91F5 41C8

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-08-26 Thread gojjoe
Hi Colin,

On 2017-08-26 10:08, Colin Baxter wrote:
> you wouldn't expect to view the output of the compilation as you
> enter the code. You might look at an initial output but then you would
> concentrate on the code before compiling again - you surely wouldn't do
> both simultaneously. TeX/LaTeX is also code, so why would not the same
> expectation apply? I apologise if I have misunderstood.

It's code but also and foremost a typographic tool. When finishing to 
latex-typeset a document – and "finishing" can take quite some time in itself – 
I think it's inevitable to alternately compile and check the output 
continuously, to see if some parts of text look better in a certain disposition 
or another, or to find the best position for that important figure. Especially 
if you know the text will be printed. Not even auctex's preview can help for 
this; its purpose is different. I'm sure this is the case for most latex users, 
or for many of them at least.

Cheers,
J

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-08-26 Thread David Kastrup
Colin Baxter  writes:

>> "Tassilo" == Tassilo Horn  writes:
>
> Tassilo> Mosè Giordano  writes: Hi!
>
> >>> Do you all agree to make this an option? If so, I can update the
> >>> patch to accommodate that.
> >> 
> >> I'm not still convinced that the patch you propose is a good
> >> idea.  Why should people run "View" command to *not* view the
> >> document?
>
> Tassilo> I know what Hong's referring to.  You want to view the
> Tassilo> document in Evince but keep editing in emacs, thus the
> Tassilo> input focus should stick there.
>
> To me, and assuming I have not totally misunderstood the proposal,
> there seems to be a philosophical issue here. If you were to write a
> program, you wouldn't expect to view the output of the compilation as
> you enter the code. You might look at an initial output but then you
> would concentrate on the code before compiling again - you surely
> wouldn't do both simultaneously. TeX/LaTeX is also code, so why would
> not the same expectation apply? I apologise if I have misunderstood.

Well, your philosophy did not manage to prevent preview-latex.

-- 
David Kastrup

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-08-20 Thread Mosè Giordano
Hi!

2017-08-20 17:21 GMT+02:00  :
> Dear Mosè and Hong,
>
> I also use a setup similar to Hong's: I have the pdf viewer and emacs side by 
> side; at times I update the pdf just to see how the text looks like, but I 
> still keep on working on the tex file.

Eventually someone explained it clearly, thanks!  Emacs and the viewer
are side by side.  That's not my usual setup and couldn't figure out
this was Hong's one.  Ok, now I see the point of the proposed patch.

> I imagine that maybe 50% of users might like Hong's proposed behaviour, and 
> the other 50% might not like it.

If this is optional, it shouldn't upset anyone.

Bye,
Mosè

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-08-20 Thread gojjoe
Dear Mosè and Hong,

I also use a setup similar to Hong's: I have the pdf viewer and emacs side by 
side; at times I update the pdf just to see how the text looks like, but I 
still keep on working on the tex file.

If the pdf is open on the same region of text I'm working on, all I need to do 
is latex-compile, without calling the "view" command (my pdf viewer refreshes 
automatically). The focus will stay on emacs and I can keep editing the tex 
code.

But sometimes I jump to another part of text in emacs. In this case compiling 
is not enough, because the pdf viewer refreshes but stays on the old page. I 
have to call the "view" command to let the viewer switch to the page I'm 
working on. At this point the emacs buffer can lose focus, and one has to 
switch it back to keep on working on the tex code.

For me the "view" command is not a problem because mine is customized and calls 
a script that calls the viewer (and does other stuff) and keeps the focus on 
emacs. So I don't have this problem. But I understand how it affects Hong.

I imagine that maybe 50% of users might like Hong's proposed behaviour, and the 
other 50% might not like it.

Cheers,
J

On 2017-08-20 16:36, Mosè Giordano wrote:
> Dear Hong,
> 
>> Do you all agree to make this an option? If so, I can update the patch
>> to accommodate that.
> 
> I'm not still convinced that the patch you propose is a good idea.
> Why should people run "View" command to *not* view the document?  If
> you only want to sync the viewer, you should define a custom command
> that does that, why hijacking a command that is supposed to do
> something else?  In addition, what's the point of syncing the viewer
> without viewing it?  Sorry, I can't see the use case of this feature.
> 
> Maybe Tassilo has more to say about the proposed behavior.
> 
> Bye,
> Mosè

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-08-20 Thread David Kastrup
Mosè Giordano  writes:

> Dear Hong,
>
>> Do you all agree to make this an option? If so, I can update the patch
>> to accommodate that.
>
> I'm not still convinced that the patch you propose is a good idea.
> Why should people run "View" command to *not* view the document?  If
> you only want to sync the viewer, you should define a custom command
> that does that, why hijacking a command that is supposed to do
> something else?  In addition, what's the point of syncing the viewer
> without viewing it?

"Viewing it" and "letting it take over focus" are two different things.

-- 
David Kastrup

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-08-20 Thread Mosè Giordano
Dear Hong,

> Do you all agree to make this an option? If so, I can update the patch
> to accommodate that.

I'm not still convinced that the patch you propose is a good idea.
Why should people run "View" command to *not* view the document?  If
you only want to sync the viewer, you should define a custom command
that does that, why hijacking a command that is supposed to do
something else?  In addition, what's the point of syncing the viewer
without viewing it?  Sorry, I can't see the use case of this feature.

Maybe Tassilo has more to say about the proposed behavior.

Bye,
Mosè

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-08-20 Thread Hong Xu
On 08/10/2017 04:55 PM, Colin Baxter wrote:
>> "Hong" == Hong Xu  writes:
> 
> Hong> On 08/09/2017 11:46 PM, Colin Baxter wrote:
> >> Dear Hong,
> >>> "Hong" == Hong Xu  writes:
> >> 
> Hong> On 08/09/2017 07:37 PM, Mosè Giordano wrote:
> >> >> Hi!  >> >> 2017-08-09 11:21 GMT+02:00 Hong Xu
> >> : >>> The current behavior switches focus to
> >> Evince, which is >>> inconvenient for editing.  >> >> I guess
> >> you're referring to this: >>
> >> https://emacs.stackexchange.com/q/34754/620 `C-c C-v' is used to
> >> >> open the viewer, so why you would like to keep focus on Emacs
> >> if >> you request to open the viewer?  If you want to keep focus
> >> on >> Emacs, do not open the viewer.  Or am I missing something?
> >> >>
> >> 
> Hong> When syncing, I would like to see how what I've just typed is
> Hong> shown in the produced PDF file. For that matter, I still would
> Hong> like to continue editing, but switching focus interrupts the
> Hong> flow. At least, I think, there should be an option to change
> Hong> this behavior.
> >> 
> >> 
> >> 'C-c C-v' doesn't only work for evince but other viewers,
> >> e.g. xdvi. So if it's changed for evince, it will be changed for
> >> non-evince users too.
> >> 
> 
> Hong> Certainly. This can be an option for all evince based viewers.
> 
> I never use evince so I don't have an opinion to an evince-only option.
> 

Do you all agree to make this an option? If so, I can update the patch
to accommodate that.

Hong


___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-08-10 Thread Colin Baxter
> "Hong" == Hong Xu  writes:

Hong> On 08/09/2017 11:46 PM, Colin Baxter wrote:
>> Dear Hong,
>>> "Hong" == Hong Xu  writes:
>> 
Hong> On 08/09/2017 07:37 PM, Mosè Giordano wrote:
>> >> Hi!  >> >> 2017-08-09 11:21 GMT+02:00 Hong Xu
>> : >>> The current behavior switches focus to
>> Evince, which is >>> inconvenient for editing.  >> >> I guess
>> you're referring to this: >>
>> https://emacs.stackexchange.com/q/34754/620 `C-c C-v' is used to
>> >> open the viewer, so why you would like to keep focus on Emacs
>> if >> you request to open the viewer?  If you want to keep focus
>> on >> Emacs, do not open the viewer.  Or am I missing something?
>> >>
>> 
Hong> When syncing, I would like to see how what I've just typed is
Hong> shown in the produced PDF file. For that matter, I still would
Hong> like to continue editing, but switching focus interrupts the
Hong> flow. At least, I think, there should be an option to change
Hong> this behavior.
>> 
>> 
>> 'C-c C-v' doesn't only work for evince but other viewers,
>> e.g. xdvi. So if it's changed for evince, it will be changed for
>> non-evince users too.
>> 

Hong> Certainly. This can be an option for all evince based viewers.

I never use evince so I don't have an opinion to an evince-only option.

-- 
--
Colin Baxter
m43...@yandex.com
GnuPG fingerprint: 68A8 799C 0230 16E7 BF68  2A27 BBFA 2492 91F5 41C8

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-08-10 Thread Hong Xu
On 08/09/2017 11:46 PM, Colin Baxter wrote:
> Dear Hong,
>> "Hong" == Hong Xu  writes:
> 
> Hong> On 08/09/2017 07:37 PM, Mosè Giordano wrote:
> >> Hi!
> >> 
> >> 2017-08-09 11:21 GMT+02:00 Hong Xu :
> >>> The current behavior switches focus to Evince, which is
> >>> inconvenient for editing.
> >> 
> >> I guess you're referring to this:
> >> https://emacs.stackexchange.com/q/34754/620 `C-c C-v' is used to
> >> open the viewer, so why you would like to keep focus on Emacs if
> >> you request to open the viewer?  If you want to keep focus on
> >> Emacs, do not open the viewer.  Or am I missing something?
> >> 
> 
> Hong> When syncing, I would like to see how what I've just typed is
> Hong> shown in the produced PDF file. For that matter, I still would
> Hong> like to continue editing, but switching focus interrupts the
> Hong> flow. At least, I think, there should be an option to change
> Hong> this behavior.
> 
> 
> 'C-c C-v' doesn't only work for evince but other viewers, e.g. xdvi. So
> if it's changed for evince, it will be changed for non-evince users too.
> 

Certainly. This can be an option for all evince based viewers.

Hong


___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-08-09 Thread Colin Baxter
Dear Hong,
> "Hong" == Hong Xu  writes:

Hong> On 08/09/2017 07:37 PM, Mosè Giordano wrote:
>> Hi!
>> 
>> 2017-08-09 11:21 GMT+02:00 Hong Xu :
>>> The current behavior switches focus to Evince, which is
>>> inconvenient for editing.
>> 
>> I guess you're referring to this:
>> https://emacs.stackexchange.com/q/34754/620 `C-c C-v' is used to
>> open the viewer, so why you would like to keep focus on Emacs if
>> you request to open the viewer?  If you want to keep focus on
>> Emacs, do not open the viewer.  Or am I missing something?
>> 

Hong> When syncing, I would like to see how what I've just typed is
Hong> shown in the produced PDF file. For that matter, I still would
Hong> like to continue editing, but switching focus interrupts the
Hong> flow. At least, I think, there should be an option to change
Hong> this behavior.


'C-c C-v' doesn't only work for evince but other viewers, e.g. xdvi. So
if it's changed for evince, it will be changed for non-evince users too.

Best wishes,

-- 
--
Colin Baxter
m43...@yandex.com
GnuPG fingerprint: 68A8 799C 0230 16E7 BF68  2A27 BBFA 2492 91F5 41C8

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-08-09 Thread Hong Xu
On 08/09/2017 07:37 PM, Mosè Giordano wrote:
> Hi!
> 
> 2017-08-09 11:21 GMT+02:00 Hong Xu :
>> The current behavior switches focus to Evince, which is inconvenient for
>> editing.
> 
> I guess you're referring to this:
> https://emacs.stackexchange.com/q/34754/620  `C-c C-v' is used to open
> the viewer, so why you would like to keep focus on Emacs if you
> request to open the viewer?  If you want to keep focus on Emacs, do
> not open the viewer.  Or am I missing something?
> 

When syncing, I would like to see how what I've just typed is shown in
the produced PDF file. For that matter, I still would like to continue
editing, but switching focus interrupts the flow. At least, I think,
there should be an option to change this behavior.

Hong


___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.

2017-08-09 Thread Mosè Giordano
Hi!

2017-08-09 11:21 GMT+02:00 Hong Xu :
> The current behavior switches focus to Evince, which is inconvenient for
> editing.

I guess you're referring to this:
https://emacs.stackexchange.com/q/34754/620  `C-c C-v' is used to open
the viewer, so why you would like to keep focus on Emacs if you
request to open the viewer?  If you want to keep focus on Emacs, do
not open the viewer.  Or am I missing something?

Bye,
Mosè

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel