From unknown Tue Jun 17 20:27:19 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#75585 <75585@debbugs.gnu.org> To: bug#75585 <75585@debbugs.gnu.org> Subject: Status: 30.0.92; eww does not use proper file names for downloaded webpages Reply-To: bug#75585 <75585@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:27:19 +0000 retitle 75585 30.0.92; eww does not use proper file names for downloaded we= bpages reassign 75585 emacs submitter 75585 Anush V severity 75585 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 15 09:57:37 2025 Received: (at submit) by debbugs.gnu.org; 15 Jan 2025 14:57:37 +0000 Received: from localhost ([127.0.0.1]:58271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tY4ps-000519-PJ for submit@debbugs.gnu.org; Wed, 15 Jan 2025 09:57:37 -0500 Received: from lists.gnu.org ([2001:470:142::17]:57250) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tY4po-00050m-3K for submit@debbugs.gnu.org; Wed, 15 Jan 2025 09:57:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tY4pi-0002Gh-P5 for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2025 09:57:26 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tY4pi-00026o-H3 for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2025 09:57:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=56yOcIGFasxMmCoo4vDx2omK4HPVr2h47m8P5QTmvyM=; b=VA2AQ1qvmCww0q o6vAEoy4S6HJZiTL4r3gHWxlCRNOscsE9nWbiWF83VR8IeGB+RdLttZzHe6nmI/HxzVtYoZWoQdjN SorrV9UgE1EBQMqmuc/2eTZLimxp0Eqzo+uDJdNgAQsvV3EISkaDQk3Ce4ghwShSxiv0oFEH8Zche CfGGjLGjcs6HopBj7VCGIKpH1DotR87O2RnQdIV05Tcbax/jcIE09esStOXUB+IVNl9wXRHuf0QQa WRD2sLcse957m6t2qS2fu0jITFt+3hSgah9H31cE2zJmj6CqQr0TF7Yval2K5uw/V/PijCe46rsHA HeOx1yGs+S2jq9iA1gTg==; From: Anush V To: bug-gnu-emacs@gnu.org Subject: 30.0.92; eww does not use proper file names for downloaded webpages X-Debbugs-Cc: Date: Wed, 15 Jan 2025 09:57:25 -0500 Message-ID: <87ed142kh6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Maintainers, I believe eww is not using proper names for downloaded webpages. Expected Behavior: Downloaded webpages should have a filename reflecting the full url with an .html extension. Observed Bug: 1. When I download the page https://www.gnu.org/, eww downloads the file without an .html extension, naming it simply as !. 2. When I download https://www.gnu.org/home.html, eww names the file 'home.html'. While the extension is correct, shouldn't the filename reflect the full URL to avoid conflicts when downloading 'home.html' from different sites? Steps to Reproduce: 1. emacs --no-init 2. M-x eww 3. https://www.gnu.org/ ;; eww prompt 4. d ;; Downloads file ! 5. G 6. https://www.gnu.org/home.html ;; eww prompt 7. d ;; Downloads file home.html Please let me know if my expectation regarding the filename & extension is incorrect. Thank you for your time and attention. * * * In GNU Emacs 30.0.92 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) Windowing system distributor 'The X.Org Foundation', version 11.0.12101014 System Description: Guix System Configured using: 'configure CONFIG_SHELL=/gnu/store/6nqyia3ra10sgd1ppzk2047ncbzjwhff-bash-minimal-5.1.16/bin/bash SHELL=/gnu/store/6nqyia3ra10sgd1ppzk2047ncbzjwhff-bash-minimal-5.1.16/bin/bash --prefix=/gnu/store/ml6xyl3py6hqfdps2sypdi7s212y7k02-emacs-next-30.0.92-0.881d593 --enable-fast-install --with-cairo --with-modules --with-native-compilation=aot --disable-build-details' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB -- Regards, Anush V From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 16 10:39:59 2025 Received: (at 75585) by debbugs.gnu.org; 16 Jan 2025 15:40:00 +0000 Received: from localhost ([127.0.0.1]:34250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tYRyR-0003Oz-JQ for submit@debbugs.gnu.org; Thu, 16 Jan 2025 10:39:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44814) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tYRyP-0003Oh-MG for 75585@debbugs.gnu.org; Thu, 16 Jan 2025 10:39:58 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tYRyK-00045y-81 for 75585@debbugs.gnu.org; Thu, 16 Jan 2025 10:39:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=hwHcbmTOSsFrCm8WUJAXj0piUExF7Rch6873rhdgMVU=; b=h/cMMTkCnFRg VC4uUoaIMTTvmo3O6Qp0SpZmqw7quKqEdEZxVKMFJOcmJUCCmOEKCR9HauHNm0FDf9IOBclXIe7Gm fEAIFMI15pRG0KSmCKIBU0keys04gOcKWSZQCgUyFd/lZpyRkavW7gjw/7ABSReYGx178PIKucHfB oaKAEafjw4gv7S5WWboD9EZ5g+sEJ3PoD1isL1P8gKcJoJkOd4Z7wKAzJ+yr6sQowJ7kS1i4ppAb3 Lxb6U/SN0nFYjx2JVyUWgSGkBM9JP6wpwJYTd6oGel4zY1bLin8ujs89k9dVolsmF7emeoFZ0PgyG IRC1ooQYshpTeQ7wIvGMlA==; Date: Thu, 16 Jan 2025 17:39:33 +0200 Message-Id: <86cygmhioa.fsf@gnu.org> From: Eli Zaretskii To: Anush V In-Reply-To: <87ed142kh6.fsf@gnu.org> (message from Anush V on Wed, 15 Jan 2025 09:57:25 -0500) Subject: Re: bug#75585: 30.0.92; eww does not use proper file names for downloaded webpages References: <87ed142kh6.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75585 Cc: 75585@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Anush V > Date: Wed, 15 Jan 2025 09:57:25 -0500 > > Hello Maintainers, > > I believe eww is not using proper names for downloaded webpages. > > Expected Behavior: Downloaded webpages should have a filename > reflecting the full url with an .html extension. That's not what eww-download does. It downloads the pages to the directory specified by eww-download-directory, by default "~/Downloads". > 1. When I download the page https://www.gnu.org/, eww downloads the > file without an .html extension, naming it simply as !. This page has no name. We invent some name, in this case "!". Apart of documenting this, why is that a problem? > 2. When I download https://www.gnu.org/home.html, eww names the file > 'home.html'. While the extension is correct, shouldn't the filename > reflect the full URL to avoid conflicts when downloading 'home.html' > from different sites? eww-download detects conflicts and makes the downloaded name unique, see eww-make-unique-file-name. This seems to be a deliberate design decision, and I can't say it sounds wrong to me. So, given that we augment the documentation to make these aspects clear, do you still think there's a bug here? From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 17 09:58:41 2025 Received: (at 75585) by debbugs.gnu.org; 17 Jan 2025 14:58:41 +0000 Received: from localhost ([127.0.0.1]:38501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tYnnx-0001Vc-EL for submit@debbugs.gnu.org; Fri, 17 Jan 2025 09:58:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37198) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tYnnu-0001VB-Qu for 75585@debbugs.gnu.org; Fri, 17 Jan 2025 09:58:35 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tYnnp-00077p-FL for 75585@debbugs.gnu.org; Fri, 17 Jan 2025 09:58:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:Date:In-Reply-To:Subject:To: From; bh=9zfZFDw+WKc1fnkKHZRwZ3FCPsEkcEs9FtR8UzQ9jsU=; b=pCJ0Pis8N3yH1ndtwCgU 96CwvuiA3vphA+eFf3ljvaLhazuiEUocgocVS25OZxHhjILOdCfnbx/LUdu6feYHN5fEwokvoFVQD uT0okID0OIUHxT+J7dNlzezFyCGYqpKQTgohenTaCeplTikm6+mXlZp/LE3K3wgT/EbmBj/uKp0/d TsSRiZEmOB/ShJ8qL2a3RQ8dFET2cxhpv9MEbasSnWuHnwHAJ+cfYSSjJPunOCG1Ga8UKUg7I5vlf JsaL0YrUSOEo9B+MftDaMO6sf32Tsec5vALH3rABjUMJMzsV69tLvRChCmkz/tjDvcf73B63Ms16n tWpsqiiNBiPQ8w==; From: Anush V To: Eli Zaretskii Subject: Re: bug#75585: 30.0.92; eww does not use proper file names for downloaded webpages In-Reply-To: <86cygmhioa.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 16 Jan 2025 17:39:33 +0200") Date: Fri, 17 Jan 2025 09:57:00 -0500 Message-ID: <87v7udv683.fsf@gnu.org> References: <87ed142kh6.fsf@gnu.org> <86cygmhioa.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75585 Cc: 75585@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Eli Zaretskii > Date: Thu, 16 Jan 2025 17:39:33 +0200 > >> From: Anush V >> Date: Wed, 15 Jan 2025 09:57:25 -0500 >> >> Hello Maintainers, >> >> I believe eww is not using proper names for downloaded webpages. >> >> Expected Behavior: Downloaded webpages should have a filename >> reflecting the full url with an .html extension. > > That's not what eww-download does. It downloads the pages to the > directory specified by eww-download-directory, by default > "~/Downloads". Thank you for clarifying. >> 1. When I download the page https://www.gnu.org/, eww downloads the >> file without an .html extension, naming it simply as !. > > This page has no name. We invent some name, in this case "!". Apart > of documenting this, why is that a problem? Yes documenting this should help. >> 2. When I download https://www.gnu.org/home.html, eww names the file >> 'home.html'. While the extension is correct, shouldn't the filename >> reflect the full URL to avoid conflicts when downloading 'home.html' >> from different sites? Sure, I wasn't clear about how eww-download works. > eww-download detects conflicts and makes the downloaded name unique, > see eww-make-unique-file-name. This seems to be a deliberate design > decision, and I can't say it sounds wrong to me. > > So, given that we augment the documentation to make these aspects > clear, do you still think there's a bug here? Just adding to the documentation should be sufficient. My usecase, was to download webpage for offline reading. I came across eww-download (Downloads URL) and eww-open-file (renders html file only if file has .html extension). I thought I could download webpages using eww-download and then read offline using eww-open-file Regards, Anush From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 18 05:59:07 2025 Received: (at 75585-done) by debbugs.gnu.org; 18 Jan 2025 10:59:07 +0000 Received: from localhost ([127.0.0.1]:40428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tZ6Xi-0003Z0-Gl for submit@debbugs.gnu.org; Sat, 18 Jan 2025 05:59:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45704) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tZ6Xg-0003YU-H2 for 75585-done@debbugs.gnu.org; Sat, 18 Jan 2025 05:59:05 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tZ6Xa-0005fy-TX for 75585-done@debbugs.gnu.org; Sat, 18 Jan 2025 05:58:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=yR9bXkpJAy+xPUOSSftvaYyBld//J7gvsx9MGGhUUjM=; b=plGqARpM0FcF 6F2j1sPQZLbO/dwp9EJXftCdR6N1KmNokPlb0lF2XZozDKQdTdYBEfy4cKu0VoTPwf/cReZ4jW5GD AMPpg04YXuNK3uHxpQpOGq/n4rKuj5rSKbZ+pzRePID+mek06fR/0JsrirD4RsIGoKajMRETNvOeR hUKBBq9sAFJQfzUmo1PIuqVY9WAmaSrE6QENesndhqjIwMnFMPK9DNvynuGOdYJxpC2Q88Rus7md5 eCCv9t+BcVQkvad3GQT04W69pNYJ6zPyJKfcdksGJmTbSevx1ZlgcVhGbtVmq31A+l7lXTluyjmo0 gQxZoYHrkYfg5Azk+QoIYg==; Date: Sat, 18 Jan 2025 12:58:55 +0200 Message-Id: <8634hgbd74.fsf@gnu.org> From: Eli Zaretskii To: Anush V In-Reply-To: <87ldv9y04z.fsf@gnu.org> (message from Anush V on Fri, 17 Jan 2025 09:40:12 -0500) Subject: Re: bug#75585: 30.0.92; eww does not use proper file names for downloaded webpages References: <87ed142kh6.fsf@gnu.org> <86cygmhioa.fsf@gnu.org> <87ldv9y04z.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75585-done Cc: 75585-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [Please use Reply All to reply, to keep the bug tracker CC'ed.] > From: Anush V > Date: Fri, 17 Jan 2025 09:40:12 -0500 > > > From: Eli Zaretskii > > Date: Thu, 16 Jan 2025 17:39:33 +0200 > > > >> From: Anush V > >> Date: Wed, 15 Jan 2025 09:57:25 -0500 > >> > >> Hello Maintainers, > >> > >> I believe eww is not using proper names for downloaded webpages. > >> > >> Expected Behavior: Downloaded webpages should have a filename > >> reflecting the full url with an .html extension. > > > > That's not what eww-download does. It downloads the pages to the > > directory specified by eww-download-directory, by default > > "~/Downloads". > > Thank you for clarifying. > > >> 1. When I download the page https://www.gnu.org/, eww downloads the > >> file without an .html extension, naming it simply as !. > > > > This page has no name. We invent some name, in this case "!". Apart > > of documenting this, why is that a problem? > > Yes documenting this should help. > > >> 2. When I download https://www.gnu.org/home.html, eww names the file > >> 'home.html'. While the extension is correct, shouldn't the filename > >> reflect the full URL to avoid conflicts when downloading 'home.html' > >> from different sites? > > > > eww-download detects conflicts and makes the downloaded name unique, > > see eww-make-unique-file-name. This seems to be a deliberate design > > decision, and I can't say it sounds wrong to me. > > Sure, I wasn't clear about how eww-download works. > > > So, given that we augment the documentation to make these aspects > > clear, do you still think there's a bug here? > > Just adding to the documentation should be sufficient. OK, so I've now done that, and I'm therefore closing this bug. > My usecase was to download interesting webpages (from different > websites) for reading offline. I came across eww-download (Downloads > URL) and eww-open-file (renders html file only if file has .html > extension). I thought I could download using eww-download and then > read offline using eww-open-file You can do that: eww-download shows the actual file name under which it saved the Web page in the echo area. From unknown Tue Jun 17 20:27:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 15 Feb 2025 12:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator