unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#40425: 26.3; eww-open-file is not working with a Tramp file name
@ 2020-04-04 11:25 H. Dieter Wilhelm
  2020-07-17 14:39 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 15+ messages in thread
From: H. Dieter Wilhelm @ 2020-04-04 11:25 UTC (permalink / raw)
  To: 40425


Hello

here's an example:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  url-file-asynch-callback(nil nil nil
"/:/ssh:stories:/home/larsi/.emacs.d/bookiez.data" #<buffer
*url-file*-73983> eww-render (nil
"file:///ssh:stories:/home/larsi/.emacs.d/bookiez.d..." nil #<buffer
*eww*>))
  url-file(#s(url :type "file" :user nil :password nil :host ""
:portspec nil :filename
"/ssh:stories:/home/larsi/.emacs.d/bookiez.data" :target nil
:attributes nil :fullness t :silent nil :use-cookies t :asynchronous
t) eww-render (nil
"file:///ssh:stories:/home/larsi/.emacs.d/bookiez.d..." nil #<buffer
*eww*>))
  url-retrieve-internal("file:///ssh:stories:/home/larsi/.emacs.d/bookiez.d..."
eww-render (nil
"file:///ssh:stories:/home/larsi/.emacs.d/bookiez.d..." nil #<buffer
*eww*>) nil nil)
  url-retrieve("file:///ssh:stories:/home/larsi/.emacs.d/bookiez.d..." eww-render ("file:///ssh:stories:/home/larsi/.emacs.d/bookiez.d..." nil #<buffer *eww*>))
  eww("file:///ssh:stories:/home/larsi/.emacs.d/bookiez.d...")
  eww-open-file("/ssh:stories:.emacs.d/bookiez.data")
  funcall-interactively(eww-open-file "/ssh:stories:.emacs.d/bookiez.data")

Thank you

      Dieter


In GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
 of 2019-12-14 built on ping
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description:	Ubuntu 18.04 LTS (beaver-three-eyed-raven X92)

Recent messages:
Reading active file via nnmbox...
nnmbox: Reading incoming mail (no new mail)...done
Reading active file via nnmbox...done
nnimap read 0k from imap.1und1.de
Reading active file from archive via nnfolder...done
Reading active file via nndraft...done
Checking new news...done
Quit [5 times]
No more unseen articles
No more unread articles

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LCMS2

Important settings:
  value of $LC_MONETARY: de_DE.UTF-8
  value of $LC_NUMERIC: de_DE.UTF-8
  value of $LC_TIME: de_DE.UTF-8
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Info

Minor modes in effect:
  recentf-mode: t
  diff-auto-refine-mode: t
  global-flycheck-mode: t
  display-battery-mode: t
  display-time-mode: t
  show-paren-mode: t
  electric-pair-mode: t
  shell-dirtrack-mode: t
  async-bytecomp-package-mode: t
  ivy-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-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
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: 1

Load-path shadows:
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-hledger hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-hledger
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-datetree hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-datetree
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-css hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-css
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-io hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-io
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-sed hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-sed
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-sqlite hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-sqlite
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-compat hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-compat
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ox-org hides /usr/local/src/emacs/emacs-26.3/lisp/org/ox-org
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ox-publish hides /usr/local/src/emacs/emacs-26.3/lisp/org/ox-publish
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-ref hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-ref
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-java hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-java
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-perl hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-perl
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-org hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-org
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-entities hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-entities
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-R hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-R
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-forth hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-forth
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-inlinetask hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-inlinetask
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-capture hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-capture
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-duration hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-duration
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-C hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-C
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-maxima hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-maxima
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-dot hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-dot
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-plot hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-plot
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-clojure hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-clojure
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-lint hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-lint
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-asymptote hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-asymptote
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-stan hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-stan
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-version hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-version
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-indent hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-indent
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-exp hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-exp
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-table hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-table
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-ruby hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-ruby
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-agenda hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-agenda
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-mobile hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-mobile
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ox-latex hides /usr/local/src/emacs/emacs-26.3/lisp/org/ox-latex
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-mouse hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-mouse
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-makefile hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-makefile
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-list hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-list
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-eval hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-eval
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-lua hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-lua
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ox-man hides /usr/local/src/emacs/emacs-26.3/lisp/org/ox-man
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ox-odt hides /usr/local/src/emacs/emacs-26.3/lisp/org/ox-odt
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-sql hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-sql
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-ebnf hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-ebnf
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-calc hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-calc
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-feed hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-feed
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-shen hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-shen
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-mscgen hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-mscgen
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-protocol hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-protocol
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-plantuml hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-plantuml
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-sass hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-sass
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-element hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-element
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-J hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-J
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-fortran hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-fortran
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-table hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-table
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ox hides /usr/local/src/emacs/emacs-26.3/lisp/org/ox
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-colview hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-colview
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ox-icalendar hides /usr/local/src/emacs/emacs-26.3/lisp/org/ox-icalendar
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-scheme hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-scheme
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-core hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-core
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-src hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-src
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-awk hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-awk
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-timer hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-timer
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-ledger hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-ledger
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-latex hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-latex
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-tangle hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-tangle
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-lob hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-lob
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-archive hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-archive
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-processing hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-processing
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-habit hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-habit
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-crypt hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-crypt
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-comint hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-comint
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org hides /usr/local/src/emacs/emacs-26.3/lisp/org/org
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-ditaa hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-ditaa
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ox-html hides /usr/local/src/emacs/emacs-26.3/lisp/org/ox-html
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ox-ascii hides /usr/local/src/emacs/emacs-26.3/lisp/org/ox-ascii
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-install hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-install
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-coq hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-coq
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-attach hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-attach
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-footnote hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-footnote
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-haskell hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-haskell
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ox-md hides /usr/local/src/emacs/emacs-26.3/lisp/org/ox-md
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-vala hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-vala
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ox-texinfo hides /usr/local/src/emacs/emacs-26.3/lisp/org/ox-texinfo
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-ctags hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-ctags
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-macro hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-macro
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-picolisp hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-picolisp
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-js hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-js
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-groovy hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-groovy
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-clock hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-clock
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-screen hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-screen
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-emacs-lisp hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-emacs-lisp
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-lilypond hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-lilypond
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-macs hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-macs
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-loaddefs hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-loaddefs
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-python hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-python
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-shell hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-shell
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-lisp hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-lisp
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-faces hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-faces
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-pcomplete hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-pcomplete
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-octave hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-octave
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-gnuplot hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-gnuplot
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-abc hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-abc
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/org-id hides /usr/local/src/emacs/emacs-26.3/lisp/org/org-id
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-matlab hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-matlab
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ox-beamer hides /usr/local/src/emacs/emacs-26.3/lisp/org/ox-beamer
/home/dieter/.emacs.d/elpa/org-plus-contrib-20200330/ob-ocaml hides /usr/local/src/emacs/emacs-26.3/lisp/org/ob-ocaml
/home/dieter/.emacs.d/elpa/soap-client-3.1.5/soap-inspect hides /usr/local/src/emacs/emacs-26.3/lisp/net/soap-inspect
/home/dieter/.emacs.d/elpa/soap-client-3.1.5/soap-client hides /usr/local/src/emacs/emacs-26.3/lisp/net/soap-client
/home/dieter/.emacs.d/elpa/let-alist-1.0.6/let-alist hides /usr/local/src/emacs/emacs-26.3/lisp/emacs-lisp/let-alist

Features:
(shadow emacsbug gnus-dup smtpmail ivy-hydra ibuf-ext ibuffer
ibuffer-loaddefs autoload eieio-opt speedbar sb-image ezimage dframe
cus-edit cus-start cus-load lisp-mnt rmailkwd term ehelp ispell pcase
recentf tree-widget bookmark canlock misearch multi-isearch mailalias
bbdb-message sendmail sort gnus-cite smiley shr-color mm-archive
mail-extr gnus-async gnus-bcklg qp gnus-ml disp-table nndraft nnmh
nnmbox utf-7 nnfolder bbdb-gnus bbdb-mua bbdb-com crm epa-file
network-stream starttls gnus-agent gnus-srvr gnus-score score-mode
nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig
nntp gnus-cache mhtml-mode css-mode js cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs sgml-mode
files-x tramp-cache tramp-sh ffap tramp tramp-compat tramp-loaddefs
trampver ucs-normalize pp cl-print help-fns radix-tree time-stamp
term/xterm xterm url-file url-dired url-cache eww mm-url shr svg dom
apdl-mode align apdl-wb-template apdl-template apdl-process
apdl-initialise apdl-keyword sh-script smie executable cursor-sensor
vc-mtn vc-hg vc-git diff-mode vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs
vc vc-dispatcher imenu ess-r-mode ess-r-flymake flymake-proc flymake
thingatpt ess-r-xref xref ess-trns ess-r-package ess-r-completion
ess-roxy ess-r-syntax ess-rd hideshow ess-s-lang ess-help ess-mode
ess-inf project ess-tracebug ess ess-utils ess-custom compile flycheck
cl-extra help-mode rx subr-x cal-china lunar solar cal-dst cal-bahai
cal-islam cal-hebrew holidays hol-loaddefs appt diary-lib diary-loaddefs
battery time server org-eldoc ol-eww ol-rmail ol-mhe ol-irc ol-info
ol-gnus nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap
nnmail mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int
gnus-range gnus-win gnus nnheader wid-edit ol-docview doc-view jka-compr
image-mode ol-bbdb ol-w3m dired-x bbdb bbdb-site ox-koma-letter paren
elec-pair pdf-loader ob-org ob-octave ob-latex ob-shell shell ob-calc
calc-store calc-trail calc-ext calc calc-loaddefs calc-macs ob-R
ob-python org-capture org-passwords org-ref org-ref-helm-bibtex
org-ref-helm helm-utils helm-bibtex bibtex-completion filenotify biblio
biblio-download biblio-dissemin biblio-ieee biblio-hal biblio-dblp
biblio-crossref biblio-arxiv timezone biblio-doi biblio-core let-alist
url-queue ido hl-line helm-net browse-url xml helm-help helm helm-source
eieio-compat helm-multi-match helm-lib helm-config helm-easymenu
async-bytecomp async org-ref-core warnings edmacro kmacro reftex-cite
reftex reftex-loaddefs reftex-vars parsebib org-ref-glossary
org-ref-bibtex org-ref-citeproc message dired dired-loaddefs rfc822 mml
mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode
mm-bodies mm-encode mailabbrev mail-utils gmm-utils mailheader key-chord
hydra lv doi-utils org-ref-utils org-ref-pdf url-http tls gnutls url
url-proxy url-privacy url-expand url-methods url-history mailcap
url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums
mail-prsvr url-cookie url-domsuf url-util url-gw nsm rmc puny ol-bibtex
json map bibtex htmlize cl f s dash ox-beamer ox-texinfo ox-md ox-odt
rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse
nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table
ox-ascii ox-publish ox org-element org ob ob-tangle ob-ref ob-lob
ob-table org-macro org-footnote org-src ob-comint org-pcomplete
pcomplete comint ansi-color org-list org-faces org-entities noutline
outline easy-mmode org-version ob-emacs-lisp org-table org-keys
org-loaddefs find-func cal-menu calendar cal-loaddefs avl-tree generator
ol ob-exp ob-core org-compat advice ob-eval org-macs format-spec ivy
delsel ring colir color ivy-overlay finder-inf info package easymenu
epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core
cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib time-date mule-util 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 move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)

Memory information:
((conses 16 3029733 168528)
 (symbols 48 68707 4)
 (miscs 40 1516 1649)
 (strings 32 376074 47386)
 (string-bytes 1 19330469)
 (vectors 16 125632)
 (vector-slots 8 2533160 235760)
 (floats 8 1183 1468)
 (intervals 56 379929 12954)
 (buffers 992 85))

-- 
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany





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

* bug#40425: 26.3; eww-open-file is not working with a Tramp file name
  2020-04-04 11:25 bug#40425: 26.3; eww-open-file is not working with a Tramp file name H. Dieter Wilhelm
@ 2020-07-17 14:39 ` Lars Ingebrigtsen
  2020-07-17 17:35   ` Michael Albinus
  0 siblings, 1 reply; 15+ messages in thread
From: Lars Ingebrigtsen @ 2020-07-17 14:39 UTC (permalink / raw)
  To: H. Dieter Wilhelm; +Cc: 40425

dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes:

> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
>   url-file-asynch-callback(nil nil nil
> "/:/ssh:stories:/home/larsi/.emacs.d/bookiez.data" #<buffer
> *url-file*-73983> eww-render (nil
> "file:///ssh:stories:/home/larsi/.emacs.d/bookiez.d..." nil #<buffer
> *eww*>))

This is due to the following patch, and the moron who committed it
neglected to say what problem it was trying to fix:

commit 023ec128fd95eadac7b607177969267cc8b9accf
Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
Date:   Tue Nov 16 14:46:12 2010 +0100

    Avoid interpreting file:/foo:/bar URLs via tramp.

The following patch makes the test case work again...  but this is
basically what I added in 2010:

diff --git a/lisp/url/url-file.el b/lisp/url/url-file.el
index eec7cdfbe8..77495d7e57 100644
--- a/lisp/url/url-file.el
+++ b/lisp/url/url-file.el
@@ -110,9 +110,6 @@ url-file-build-filename
 		    ((and (string-match "\\`/[a-zA-Z]:/" file)
 			  (memq system-type '(ms-dos windows-nt)))
 		     (substring file 1))
-		    ;; file: URL with a file:/bar:/foo-like spec.
-		    ((string-match "\\`/[^/]+:/" file)
-		     (concat "/:" file))
 		    (t
 		     file))))
 
*sigh*

My guess is that this attempt to fix the problem of file names that
contain colons without actually being tramp files?

I don't quite know what the solution is here...  it does seem odd for a
low-level library like URL to call out to tramp -- that may even have
security implications: It's very unexpected that (say) hitting a link on
a web page ends up with you ssh-ing to a local machine.  So in that
regard I agree with my 2010 self.

But it does make eww-open-file, which should accept tramp file names,
very awkward to implement...

Any opinions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#40425: 26.3; eww-open-file is not working with a Tramp file name
  2020-07-17 14:39 ` Lars Ingebrigtsen
@ 2020-07-17 17:35   ` Michael Albinus
  2020-07-18 15:16     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 15+ messages in thread
From: Michael Albinus @ 2020-07-17 17:35 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: H. Dieter Wilhelm, 40425

Lars Ingebrigtsen <larsi@gnus.org> writes:

Hi Lars,

> I don't quite know what the solution is here...  it does seem odd for a
> low-level library like URL to call out to tramp -- that may even have
> security implications: It's very unexpected that (say) hitting a link on
> a web page ends up with you ssh-ing to a local machine.  So in that
> regard I agree with my 2010 self.
>
> But it does make eww-open-file, which should accept tramp file names,
> very awkward to implement...
>
> Any opinions?

You could do something around (or (file-local-copy file) file)

Best regards, Michael.





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

* bug#40425: 26.3; eww-open-file is not working with a Tramp file name
  2020-07-17 17:35   ` Michael Albinus
@ 2020-07-18 15:16     ` Lars Ingebrigtsen
  2020-07-18 15:18       ` Michael Albinus
  0 siblings, 1 reply; 15+ messages in thread
From: Lars Ingebrigtsen @ 2020-07-18 15:16 UTC (permalink / raw)
  To: Michael Albinus; +Cc: H. Dieter Wilhelm, 40425

Michael Albinus <michael.albinus@gmx.de> writes:

> You could do something around (or (file-local-copy file) file)

Thanks...  eww would have to delete the local copy of the file after
rendering, I guess?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#40425: 26.3; eww-open-file is not working with a Tramp file name
  2020-07-18 15:16     ` Lars Ingebrigtsen
@ 2020-07-18 15:18       ` Michael Albinus
  2020-07-18 15:36         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 15+ messages in thread
From: Michael Albinus @ 2020-07-18 15:18 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: H. Dieter Wilhelm, 40425

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Thanks...  eww would have to delete the local copy of the file after
> rendering, I guess?

Yes. And it should handle links to relative files similar.

Best regards, Michael.





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

* bug#40425: 26.3; eww-open-file is not working with a Tramp file name
  2020-07-18 15:18       ` Michael Albinus
@ 2020-07-18 15:36         ` Lars Ingebrigtsen
  2020-07-18 16:04           ` Lars Ingebrigtsen
  0 siblings, 1 reply; 15+ messages in thread
From: Lars Ingebrigtsen @ 2020-07-18 15:36 UTC (permalink / raw)
  To: Michael Albinus; +Cc: H. Dieter Wilhelm, 40425

Michael Albinus <michael.albinus@gmx.de> writes:

>> Thanks...  eww would have to delete the local copy of the file after
>> rendering, I guess?
>
> Yes. And it should handle links to relative files similar.

I'm not sure I follow you.  Why should eww copy files that are pointed
to by relative URLs?

Anyway, I'm not very enthusiastic at the idea of making local file
copies -- cleaning up isn't guaranteed (if Emacs crashes, for instance),
and files left behind may be a security concern.

Perhaps eww-open-file could just be rewritten to load the file into a
temporary buffer, parse it and then render it, and avoid the URL library
altogether...  I don't see any huge downside to doing it that way.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#40425: 26.3; eww-open-file is not working with a Tramp file name
  2020-07-18 15:36         ` Lars Ingebrigtsen
@ 2020-07-18 16:04           ` Lars Ingebrigtsen
  2020-07-23 19:50             ` H. Dieter Wilhelm
  0 siblings, 1 reply; 15+ messages in thread
From: Lars Ingebrigtsen @ 2020-07-18 16:04 UTC (permalink / raw)
  To: Michael Albinus; +Cc: H. Dieter Wilhelm, 40425

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Perhaps eww-open-file could just be rewritten to load the file into a
> temporary buffer, parse it and then render it, and avoid the URL library
> altogether...  I don't see any huge downside to doing it that way.

I've now done this in Emacs 28.1.

One downside is that relative links in a non-local HTML file still won't
work...  but I'm not sure whether that's really much of an issue.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#40425: 26.3; eww-open-file is not working with a Tramp file name
  2020-07-18 16:04           ` Lars Ingebrigtsen
@ 2020-07-23 19:50             ` H. Dieter Wilhelm
  2020-07-24 15:02               ` Lars Ingebrigtsen
  0 siblings, 1 reply; 15+ messages in thread
From: H. Dieter Wilhelm @ 2020-07-23 19:50 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Michael Albinus, 40425

Dear Emacs maintainers

Please let me explain the background of the bug report:

I'm providing a library for a programming mode (apdl-mode) where you can
request manual entries for the language keywords.  Usually these html
manuals are either stored in the cloud or locally on a workstation where
you are, both, coding and running the finite element code.

But now a user is applying Tramp to code remotely on his workstation and
also wants to access the said html manual pages which are stored on his
remote machine.

Actually I think this is a reasonable use case for EWW. :-)

Granted, a possible solution would be to copy the whole manual locally
to his laptop.  But this would require some extra configuration and
tinkering on the user's side. :-/

Lars Ingebrigtsen <larsi@gnus.org> writes:
> I've now done this in Emacs 28.1.

Thank very much you but ...

> One downside is that relative links in a non-local HTML file still won't
> work...  but I'm not sure whether that's really much of an issue.

Unfortunately, in this case it is!  Not aware of the downside I tried
this idea before in apdl-mode but the user is - with reason -
complaining about this workaround.  You know, reference links are so
essential for manuals.

Maybe the context information will persuade you to think about another
approach?

Thank you for your help and have a good time

      Dieter

-- 
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany





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

* bug#40425: 26.3; eww-open-file is not working with a Tramp file name
  2020-07-23 19:50             ` H. Dieter Wilhelm
@ 2020-07-24 15:02               ` Lars Ingebrigtsen
  2020-07-24 16:25                 ` Michael Albinus
  0 siblings, 1 reply; 15+ messages in thread
From: Lars Ingebrigtsen @ 2020-07-24 15:02 UTC (permalink / raw)
  To: H. Dieter Wilhelm; +Cc: Michael Albinus, 40425

dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes:

> I'm providing a library for a programming mode (apdl-mode) where you can
> request manual entries for the language keywords.  Usually these html
> manuals are either stored in the cloud or locally on a workstation where
> you are, both, coding and running the finite element code.
>
> But now a user is applying Tramp to code remotely on his workstation and
> also wants to access the said html manual pages which are stored on his
> remote machine.
>
> Actually I think this is a reasonable use case for EWW. :-)

Yeah, that's true.  I've now reopened this bug report.

If the base document is fetched via Tramp, then relative links to
further documents via Tramp isn't a security concern at all.

I'm just wondering on what level this should be fixed at.  eww could add
further support for these relative links itself, or the url-file.el
library could grow some overrides to allow following Tramp file
names...  Hm...  The latter seems easier to implement, but I feel that
perhaps the former is what makes most sense.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#40425: 26.3; eww-open-file is not working with a Tramp file name
  2020-07-24 15:02               ` Lars Ingebrigtsen
@ 2020-07-24 16:25                 ` Michael Albinus
  2020-07-27 21:24                   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 15+ messages in thread
From: Michael Albinus @ 2020-07-24 16:25 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: H. Dieter Wilhelm, 40425

Lars Ingebrigtsen <larsi@gnus.org> writes:

Hi Lars,

> I'm just wondering on what level this should be fixed at.  eww could add
> further support for these relative links itself, or the url-file.el
> library could grow some overrides to allow following Tramp file
> names...  Hm...  The latter seems easier to implement, but I feel that
> perhaps the former is what makes most sense.

There is url-tramp-file-handler, called from url-file-handler (package
url-handlers.el). I haven't tried it for a long time, prick me if there
are problems.

Best regards, Michael.





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

* bug#40425: 26.3; eww-open-file is not working with a Tramp file name
  2020-07-24 16:25                 ` Michael Albinus
@ 2020-07-27 21:24                   ` Lars Ingebrigtsen
  2022-02-20 15:09                     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 15+ messages in thread
From: Lars Ingebrigtsen @ 2020-07-27 21:24 UTC (permalink / raw)
  To: Michael Albinus; +Cc: H. Dieter Wilhelm, 40425

Michael Albinus <michael.albinus@gmx.de> writes:

> There is url-tramp-file-handler, called from url-file-handler (package
> url-handlers.el). I haven't tried it for a long time, prick me if there
> are problems.

Hm...  I don't think that needs to be involved, though -- eww just needs
to know that the base document is a non-local file, and then do the
right thing when computing relative links (instead of punting to the url
library).

I think.  I haven't started implementing it.  :-/

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#40425: 26.3; eww-open-file is not working with a Tramp file name
  2020-07-27 21:24                   ` Lars Ingebrigtsen
@ 2022-02-20 15:09                     ` Lars Ingebrigtsen
  2022-02-20 21:15                       ` H. Dieter Wilhelm
  0 siblings, 1 reply; 15+ messages in thread
From: Lars Ingebrigtsen @ 2022-02-20 15:09 UTC (permalink / raw)
  To: Michael Albinus; +Cc: H. Dieter Wilhelm, 40425

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Hm...  I don't think that needs to be involved, though -- eww just needs
> to know that the base document is a non-local file, and then do the
> right thing when computing relative links (instead of punting to the url
> library).

I've now fixed this in Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#40425: 26.3; eww-open-file is not working with a Tramp file name
  2022-02-20 15:09                     ` Lars Ingebrigtsen
@ 2022-02-20 21:15                       ` H. Dieter Wilhelm
  2022-02-20 21:37                         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 15+ messages in thread
From: H. Dieter Wilhelm @ 2022-02-20 21:15 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Michael Albinus, 40425

[-- Attachment #1: Type: text/plain, Size: 662 bytes --]

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>> Hm...  I don't think that needs to be involved, though -- eww just needs
>> to know that the base document is a non-local file, and then do the
>> right thing when computing relative links (instead of punting to the url
>> library).
>
> I've now fixed this in Emacs 29.

Thank you for your efforts Lars and Michael.

Just did in the master branch folder

  git pull
  make bootstrap
  emacs -Q
  eww-open-file /ssh:wawa:/srv/public/en-us/help/ans_elem/Hlp_E_CONTA178.html

But I don't see images from relative links within above file.  Please
see the attached image.


[-- Attachment #2: Emacs-29_2022-02-20.png --]
[-- Type: image/png, Size: 332983 bytes --]

[-- Attachment #3: Type: text/plain, Size: 975 bytes --]



Can I check something else?

The following is an excerpt from the html file on the remote machine for
the respective link (the graphics/ folder and its contents are also
present on the remote machine).

<a class="link" href="Hlp_E_COMBIN40.html" title="COMBIN40"><span class="structname">COMBIN40</span></a>, are also available.</p><div class="figure"><a name="CONTA178.fig.1"></a><p class="title"><b>Figure 178.1:  CONTA178 Geometry</b></p><div class="figure-contents"><div><img src="graphics/gelem178-1.svg" alt="CONTA178 Geometry"></div></div></div><br class="figure-break"></div><div class="refsect1" title="CONTA178 Input Data"><a name="CONTA178.input"></a><h2>CONTA178 Input Data</h2><p>The geometry, node locations, and the coordinate system for this element are shown in
            the <span class="structname">CONTA178</span> figure above. The element is defined by two nodes,

Thanks a lot

       Dieter


-- 
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany

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

* bug#40425: 26.3; eww-open-file is not working with a Tramp file name
  2022-02-20 21:15                       ` H. Dieter Wilhelm
@ 2022-02-20 21:37                         ` Lars Ingebrigtsen
  2022-02-20 22:19                           ` H. Dieter Wilhelm
  0 siblings, 1 reply; 15+ messages in thread
From: Lars Ingebrigtsen @ 2022-02-20 21:37 UTC (permalink / raw)
  To: H. Dieter Wilhelm; +Cc: Michael Albinus, 40425

"H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de> writes:

> But I don't see images from relative links within above file.  Please
> see the attached image.

Ah, this worked for me because url.el had already cached the images.  I
think I've now fixed this, too.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#40425: 26.3; eww-open-file is not working with a Tramp file name
  2022-02-20 21:37                         ` Lars Ingebrigtsen
@ 2022-02-20 22:19                           ` H. Dieter Wilhelm
  0 siblings, 0 replies; 15+ messages in thread
From: H. Dieter Wilhelm @ 2022-02-20 22:19 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Michael Albinus, 40425

Lars Ingebrigtsen <larsi@gnus.org> writes:

> "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de> writes:
>
>> But I don't see images from relative links within above file.  Please
>> see the attached image.
>
> Ah, this worked for me because url.el had already cached the images.  I
> think I've now fixed this, too.

Right, the images are showing up now, great stuff! :-)

        Dieter
-- 
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany





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

end of thread, other threads:[~2022-02-20 22:19 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-04 11:25 bug#40425: 26.3; eww-open-file is not working with a Tramp file name H. Dieter Wilhelm
2020-07-17 14:39 ` Lars Ingebrigtsen
2020-07-17 17:35   ` Michael Albinus
2020-07-18 15:16     ` Lars Ingebrigtsen
2020-07-18 15:18       ` Michael Albinus
2020-07-18 15:36         ` Lars Ingebrigtsen
2020-07-18 16:04           ` Lars Ingebrigtsen
2020-07-23 19:50             ` H. Dieter Wilhelm
2020-07-24 15:02               ` Lars Ingebrigtsen
2020-07-24 16:25                 ` Michael Albinus
2020-07-27 21:24                   ` Lars Ingebrigtsen
2022-02-20 15:09                     ` Lars Ingebrigtsen
2022-02-20 21:15                       ` H. Dieter Wilhelm
2022-02-20 21:37                         ` Lars Ingebrigtsen
2022-02-20 22:19                           ` H. Dieter Wilhelm

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).