From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carlos Aguilar Newsgroups: gmane.emacs.devel Subject: Re: Suggestion / feature request Date: Mon, 23 Apr 2012 09:06:42 +0200 Message-ID: <4F94FF82.6050809@unilim.fr> References: <4F901313.5040804@unilim.fr> <874nsez2vv.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------090801010606010801030004" X-Trace: dough.gmane.org 1335164823 4815 80.91.229.3 (23 Apr 2012 07:07:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Apr 2012 07:07:03 +0000 (UTC) Cc: Tassilo Horn , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 23 09:07:02 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SMDMS-0006uO-VN for ged-emacs-devel@m.gmane.org; Mon, 23 Apr 2012 09:07:01 +0200 Original-Received: from localhost ([::1]:34992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMDMS-0007Up-2z for ged-emacs-devel@m.gmane.org; Mon, 23 Apr 2012 03:07:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMDML-0007US-9K for emacs-devel@gnu.org; Mon, 23 Apr 2012 03:06:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMDMG-0000sX-83 for emacs-devel@gnu.org; Mon, 23 Apr 2012 03:06:52 -0400 Original-Received: from mail.unilim.fr ([164.81.1.45]:52968 helo=smtp.unilim.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMDMF-0000sN-Te for emacs-devel@gnu.org; Mon, 23 Apr 2012 03:06:48 -0400 Original-Received: from [192.168.0.10] (vai87-1-88-167-22-213.fbx.proxad.net [88.167.22.213]) (authenticated bits=0) by smtp.unilim.fr (8.13.1/8.13.1) with ESMTP id q3N76hmH014249 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 23 Apr 2012 09:06:44 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.28) Gecko/20120313 Lightning/1.0b2 Thunderbird/3.1.20 In-Reply-To: X-TagToolbar-Keys: D20120423090642877 X-Univ-Limoges-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (smtp.unilim.fr [164.81.1.45]); Mon, 23 Apr 2012 09:06:44 +0200 (CEST) X-Univ-Limoges-MD: Pas de virus trouve X-Scanned-By: MIMEDefang 2.67 on 164.81.1.45 X-Univ-Limoges-MailScanner-Information: Serveur Anti-virus Please contact postmaster@unilim.fr for more information X-Univ-Limoges-MailScanner-ID: q3N76hmH014249 X-Univ-Limoges-MailScanner: Found to be clean X-Univ-Limoges-MailScanner-Envelope-From: carlos.aguilar@unilim.fr X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 164.81.1.45 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149947 Archived-At: This is a multi-part message in MIME format. --------------090801010606010801030004 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by smtp.unilim.fr id q3N76hmH014249 Well, I see you two are up to it and will probably do a better job than me. I=20 tried to use gs as pdftk. It works but it is pretty slow. As I launch gs=20 for each page separately it reads the whole file for each page=20 extraction which gives a time to split the document which is ...=20 quadratic in the number of pages ! I suppose you can launch just gs once and do a series of commands to=20 avoid this issue but I haven't found yet how. I also suppose Stefan will=20 use the function doc-view-pdf->png-1 for each page when doing the lazy=20 reconversion which will also call gs once for each page ... if I find a=20 workaround I will share it ! Anyway lazy reconversion is ok for me, and I am happy to have been=20 useful at least for counting as one among others :) Thanks to both of you ! Carlos Le 20/04/2012 22:16, Stefan Monnier a =E9crit : >> My main reason for not using doc-view when writing documents is that i= t >> doesn't (and cannot) support forward/backward search using SyncTeX. > Yes, it's far from perfect, but it has its advantages. > >> up to implementing a feature I don't have a need for myself. But sinc= e >> you already have it and people request it, just go ahead for Emacs 24.= 2. > Damn! So now I have to go and clean up that hack! > > > Stefan --------------090801010606010801030004 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Well,
I see you two are up to it and will probably do a better job than me. I tried to use gs as pdftk. It works but it is pretty slow. As I launch gs for each page separately it reads the whole file for each page extraction which gives a time to split the document which is ... quadratic in the number of pages !

 I suppose you can launch just gs once and do a series of commands to avoid this issue but I haven't found yet how. I also suppose Stefan will use the function doc-view-pdf->png-1 for each page when doing the lazy reconversion which will also call gs once for each page ... if I find a workaround I will share it !

Anyway lazy reconversion is ok for me, and I am happy to have been useful at least  for counting as one among others :)

Thanks to both of you !

Carlos

Le 20/04/2012 22:16, Stefan Monnier a écrit :
My main reason for not using doc-view when writing documents is that it
doesn't (and cannot) support forward/backward search using SyncTeX.
Yes, it's far from perfect, but it has its advantages.

up to implementing a feature I don't have a need for myself.  But since
you already have it and people request it, just go ahead for Emacs 24.2.
Damn!  So now I have to go and clean up that hack!


        Stefan
--------------090801010606010801030004--