From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#37436: 27.0.50; Function proposal doc-view-open-file Date: Tue, 17 Sep 2019 08:31:06 +0200 Message-ID: <86y2ynph79.fsf@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="223222"; mail-complaints-to="usenet@blaine.gmane.org" To: 37436@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 17 08:32:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iA725-000vsV-Mx for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Sep 2019 08:32:13 +0200 Original-Received: from localhost ([::1]:42226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iA724-0000yc-Co for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Sep 2019 02:32:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39159) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iA71w-0000y8-0G for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2019 02:32:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iA71u-0007aj-Pp for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2019 02:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42722) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iA71u-0007aa-Lg for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2019 02:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iA71u-0005UI-Ga for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2019 02:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Sep 2019 06:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37436 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156870188321045 (code B ref -1); Tue, 17 Sep 2019 06:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Sep 2019 06:31:23 +0000 Original-Received: from localhost ([127.0.0.1]:51543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iA71H-0005TN-Bo for submit@debbugs.gnu.org; Tue, 17 Sep 2019 02:31:23 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:58416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iA71E-0005TC-1f for submit@debbugs.gnu.org; Tue, 17 Sep 2019 02:31:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39087) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iA718-0000sn-FJ for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2019 02:31:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iA716-0007OP-Tf for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2019 02:31:14 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:38373) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iA715-0007ND-VY for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2019 02:31:12 -0400 Original-Received: from protected.rcdrun.com ([::ffff:31.223.149.84]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000006E360.000000005D807DAD.00004810; Mon, 16 Sep 2019 23:31:09 -0700 Original-Received: from localhost (localhost [127.0.0.1]) (uid 1001) by protected.rcdrun.com with local id 00000000000C18DC.000000005D807DAC.0000334D; Tue, 17 Sep 2019 08:31:08 +0200 X-Hashcash: 1:20:190917:bug-gnu-emacs@gnu.org::bdI54TYYtiDdiXQ4:000000000000000000000000000000000000000054s7 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166618 Archived-At: In my opinion there shall be function that opens files as supported by doc-view, rather separate function and not just find-file. Such function should especially support opening PDF, DJVU, and other doc view files at specific page number. The function doc-view-goto-page already exists, but what is missing is something like (doc-view-open-file "my-pdf-file.pdf" page-number) And additionally it would be useful to open PDF/DJVU files by query search in the PDF file: (doc-view-open-file "my-pdf-file.pdf" nil "Query search HERE") In GNU Emacs 27.0.50 (build 5, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2019-09-07 built on protected.rcdrun.com Repository revision: 40eb4c51a40a37c14e882e6db3f880ba4528c089 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Hyperbola GNU/Linux-libre Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... kill-line: End of buffer funcall-interactively: End of buffer [2 times] Configured using: 'configure --prefix=/package/text/emacs-2019-09-07 --with-modules --without-gpm --with-x-toolkit=lucid PKG_CONFIG_PATH=/home/data1/protected/GNUstep/Library/Libraries/pkgconfig:/usr/lib/pkgconfig' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LC_ALL: de_DE.UTF-8 value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort hashcash mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 45601 7137) (symbols 48 6065 1) (strings 32 16273 2203) (string-bytes 1 520970) (vectors 16 9869) (vector-slots 8 127539 6408) (floats 8 22 19) (intervals 56 254 0) (buffers 992 13)) -- Thanks, Jean Louis