From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.help Subject: Re: HTML img tags Date: Wed, 14 Dec 2016 10:39:33 +0100 Organization: Programmerer Ingebrigtsen Message-ID: References: <8xxoa0johe9.fsf@village.keycorner.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1481708432 14233 195.159.176.226 (14 Dec 2016 09:40:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Dec 2016 09:40:32 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 14 10:40:25 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cH62y-0002Zc-Sk for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Dec 2016 10:40:25 +0100 Original-Received: from localhost ([::1]:46433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cH633-0003iC-4V for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Dec 2016 04:40:29 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!feeder.erje.net!2.eu.feeder.erje.net!feeder3.usenet.farm!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-Injection-Info: mx02.eternal-september.org; posting-host="b4968b82edf5004b6c15f22ba3702867"; logging-data="24469"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JGRY1UDNwPfKGdU+vGH3Tkg+pCT+MiIQ=" Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEXs5OYrHiF7Y2INCw3Z ysu0pKMEAwWgjIoQDBAKCApgKPOgAAACLklEQVQ4jV2SO4vjMBSFzeIwtTwscasLQWkXN3aXXRym jrHQPwikjFhz60SN+kDA/3aPJL92jKv76Zz7zNosO2VZdimIWJFVWd5qbdiGKP5cEpFUB+JTdg6A 4/Ms+yhIWanY8N8WQAO0kVyCgJRhNcApgvR1ZEkKOJHdB2BmK+ZDoZS5WyUKHSUJ7KgjeTgjxd0/ hgRSbiYq+hwO0j/UFlh00O60tqX3FCQmgS9LqDNvDQEUG2AsDX3bao5ArWCwyvTojO3R++cGHBTb Ns5Iev+ISWI8HwYaAtALSIpc3+nQwQHt/wd2hlRvWKMG8qj3MFvtGAK8MxwUNakFKFIkFIAQAGtV H2QxQrhZKUtfBUUCP7AL5qEPVgDFAnZKUNoC09FtQN4Je9ZnKJiPrg5gmu5dcGrcTMAkkBMAbqBj tO7cRiHFANB3uIYEzAp6JMeMrfQbRY4DCRMkDPk4W50S+DmVa0vnNzms2M99lM6JRYEchTYDFoh9 OC+w9SnHXSAJTojoWHv3q+D5di9SPMPtE31W3o0PCiCeTyc8JMyyaZwbX4JUAvlX6Z9YqP1sKu/H cRQ0AUzb77WRVfjG8TaKVNWf8oFdY30TuN5e2QmSHd7HL0QbOF2v11jVxS/ghfD7GkG7CFxUrKD9 Pb2vASajBOQE3JohgeOSwiE83marfAZ1MLq934si5q5r512oafwGHJirXs03UNWYkXMNkqf4BFxV 11jEWuwCEK981WzAP9rMRPyBlJrKAAAAAElFTkSuQmCC Cancel-Lock: sha1:QI5yBOwo1U0pYIR4k79AhMM54zA= sha1:2Lbs6JOAQ3L9N2Ql5QdA7zklzpw= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:219027 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111950 Archived-At: Hikaru Ichijyo writes: > Is there a mode, or some bit of Lisp code I can put in ~/.emacs, that > will let Emacs guess the width= and height= attributes of an image file > from the image itself when I create an img tag in HTML? I realize > there's probably no way for Emacs to do that without calling external > programs as a subprocess I don't know of any such mode, but there's no need to call external programs. Just do a `create-image' on the image and then call `image-size' on the result. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no