unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kentaro NAKAZAWA <kentaro.nakazawa@nifty.com>
To: 18007@debbugs.gnu.org
Subject: bug#18007: 24.3.92: eww-download-callback, better patch included
Date: Thu, 06 Nov 2014 01:55:03 +0900	[thread overview]
Message-ID: <87fvdx4mfs.fsf@nifty.com> (raw)
In-Reply-To: <m2tx6ml0xo.fsf@charless-air.home>

The following patch use the url library.

*** eww.el.orig	2014-06-27 11:14:40.000000000 +0900
--- eww.el	2014-11-06 01:12:35.620431852 +0900
***************
*** 1075,1081 ****
             (path (car (url-path-and-query obj)))
             (file (eww-make-unique-file-name (file-name-nondirectory path)
  					    eww-download-directory)))
!       (write-file file)
        (message "Saved %s" file))))
  
  (defun eww-make-unique-file-name (file directory)
--- 1075,1081 ----
             (path (car (url-path-and-query obj)))
             (file (eww-make-unique-file-name (file-name-nondirectory path)
  					    eww-download-directory)))
!       (write-region (1+ (marker-position url-http-end-of-headers)) (point-max) file)
        (message "Saved %s" file))))
  
  (defun eww-make-unique-file-name (file directory)

-- 
Kentaro NAKAZAWA





  parent reply	other threads:[~2014-11-05 16:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-12 21:30 bug#18007: 24.3.92: eww-download-callback, patch included Charles Rendleman
2014-07-13  8:09 ` Andreas Schwab
2014-11-04 16:39 ` Ted Zlatanov
2014-11-10 20:56   ` Lars Magne Ingebrigtsen
2014-11-05 16:55 ` Kentaro NAKAZAWA [this message]
2014-11-10 20:56 ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fvdx4mfs.fsf@nifty.com \
    --to=kentaro.nakazawa@nifty.com \
    --cc=18007@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).