From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Adam =?UTF-8?Q?Sj=C3=B8gren?= Newsgroups: gmane.emacs.bugs Subject: bug#35285: 27.0.50; Bug in image--set-property; setf Date: Mon, 15 Apr 2019 12:33:19 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87k1fvd0cw.fsf@tullinup.koldfront.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="62973"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: 35285@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 15 12:34:16 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hFywJ-000GCi-L7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Apr 2019 12:34:15 +0200 Original-Received: from localhost ([127.0.0.1]:47975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFywI-0000fT-Ki for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Apr 2019 06:34:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFyw9-0000e9-5e for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2019 06:34:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hFyw7-00054H-9H for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2019 06:34:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48854) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hFyw6-000548-Va for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2019 06:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hFyw6-0006I7-N3 for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2019 06:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Adam =?UTF-8?Q?Sj=C3=B8gren?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Apr 2019 10:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35285 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.155532442324150 (code B ref -1); Mon, 15 Apr 2019 10:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Apr 2019 10:33:43 +0000 Original-Received: from localhost ([127.0.0.1]:34165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFyvm-0006HR-Jd for submit@debbugs.gnu.org; Mon, 15 Apr 2019 06:33:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFyvi-0006HF-U8 for submit@debbugs.gnu.org; Mon, 15 Apr 2019 06:33:40 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:36309) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hFyvd-0004zB-O4 for submit@debbugs.gnu.org; Mon, 15 Apr 2019 06:33:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFyvZ-0000P7-Cm for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2019 06:33:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hFyvW-0004vk-HT for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2019 06:33:28 -0400 Original-Received: from virgil.koldfront.dk ([2.110.51.43]:36432) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hFyvV-0004tt-Me for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2019 06:33:26 -0400 Original-Received: from tullinup.koldfront.dk (tullinup.koldfront.dk [192.168.1.216]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by virgil.koldfront.dk (Postfix) with ESMTPS id 01BD6801C19E6 for ; Mon, 15 Apr 2019 12:33:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 virgil.koldfront.dk 01BD6801C19E6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=koldfront.dk; s=mail; t=1555324400; bh=vl8NjOMOisCgmFNEdQUAuJpReQqQMymr/Z5lo5ObbAo=; h=From:To:Subject:Date:From; b=gSf4k3wxwbgVyHyjj45HgmLekHieySi3k1uv27jwYO0LxeruwERmsinF1mjJFu96Q 9vrxV6hPRINoz5xHXgGTQxNCij4FL5l9tpSM6q3ct9rQGe9mpzV2xjzNaOslTjbdya k9Py7x2LlZ94cdRbmEoUr0dxGRup8lB0Ym4Q3aQQ549rNNPlaTqHF2n6BfDX9Cn43X qZOLoFW30NgpKTkewUmSdq8AkZ1BWgruGCrtQrtSuoB9mr7TfTqg2CY/IK1oPXIJUu dOsJX3XQ6KBlDQbxZVpUtv06zCOqkmbDTV9OH/VMo8Dvq7O4VJO9dd1FlEEWC7BL8P GhhaLxb6VlHyQ== Original-Received: by tullinup.koldfront.dk (Postfix, from userid 1000) id DB9A71003642C; Mon, 15 Apr 2019 12:33:19 +0200 (CEST) OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc X-Now-Playing: Untitled 8 (popplagio), ( ) (Sigur Ros) X-Hashcash: 1:21:190415:bug-gnu-emacs@gnu.org::A4gFGgRk0KArQLpA:0000000000000000000000000000000000000000F8ah X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97, Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR 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:157654 Archived-At: Xu Chunyang analysed the problem with setf I presented on emacs.stackexchange.com=C2=B9 as so: There is a bug in image--set-property, (setcdr image (cddr image)) should be (setcdr image (cdddr image)), i.e., change cddr into cdddr The problem can be seen by doing something like this: (defun my-fetch-image (url) "Retun filename of image downloaded from url" (url-copy-file url "/tmp/test.jpg") (create-image "/tmp/test.jpg")) (setq my-image (my-fetch-image "https://koldfront.dk/photo/pics/2018/09/s= napshot-22-142810-s.jpg")) and then trying to remove the :width and :height properties from my-image: (setf (image-property my-image :width) nil) (setf (image-property my-image :height) nil) The resulting my-image object looks like this: (image :type imagemagick :file "/tmp/test.jpg" :scale 1.2019047619047618 = 288 :height 400) where the expected outcome was: (image :type imagemagick :file "/tmp/test.jpg" :scale 1.2019047619047618) Note that only ":width" is removed, not the value of that property "288". More details on the emacs.stackexchange.com question. =C2=B9 https://emacs.stackexchange.com/questions/48907/how-do-i-remove-widt= h-and-height-from-an-image-created-with-create-image/48908 In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-04-10 built on tullinup Repository revision: 0cef057b02b088ded8b46e3453ac0d891888423a Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12000000 System Description: Debian GNU/Linux buster/sid Recent messages: Quit Configured using: 'configure --without-pop --with-imagemagick' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LIBSYSTEMD PDUMPER LCMS2 GMP Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Group Minor modes in effect: gnus-topic-mode: t gnus-undo-mode: t pixel-scroll-mode: t engine-mode: t global-magit-file-mode: t magit-auto-revert-mode: t global-git-commit-mode: t dumb-jump-mode: t which-function-mode: t global-auto-complete-mode: t shell-dirtrack-mode: t save-place-mode: t jabber-activity-mode: t winner-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t Load-path shadows: /usr/share/emacs/site-lisp/elpa-src/ess-18.10.2/debian-autoloads hides /usr= /share/emacs/site-lisp/elpa-src/dpkg-dev-el-37.0/debian-autoloads ~/elisp/with-editor/with-editor hides ~/elisp/extra/with-editor ~/elisp/with-editor/with-editor-autoloads hides ~/elisp/extra/with-editor-a= utoloads /usr/share/emacs/site-lisp/elpa-src/boxquote-2.1/boxquote hides ~/elisp/ext= ra/boxquote ~/elisp/let-alist/let-alist hides ~/elisp/extra/let-alist ~/elisp/let-alist/let-alist hides /usr/src/emacs/lisp/emacs-lisp/let-alist Features: (shadow emacsbug compface jka-compr mhtml-mode css-mode-expansions css-mode smie eww js-mode-expansions js cc-mode-expansions cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine tramp-sh tramp-cache bbdb-message sendmail nnir gnus-gravatar gravatar sort gnus-cite smiley shr-color color mm-archive gnus-async gnus-bcklg gnus-dup gnus-ml gmane gnus-topic bbdb-gnus-aux qp utf-7 imap rfc2104 pp epa-file network-stream nnml bbdb-gnus bbdb-mua nnnil gnus-demon shr svg gnus-delay gnus-draft gnus-agent gnus-srvr gnus-score score-mode nnvirtual nntp gnus-cache nndraft nnmh mail-extr spam spam-stat bbdb-com gnus-uu yenc gnus-msg gnus-html url-queue help-fns radix-tree url-cache mm-url bbdb-picture gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum gnus-group gnus-undo gnus-fun hashcash gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader elec-pair paren cus-start cus-load pixel-scroll litable engine-mode gitpatch magithub magithub-ci magithub-issue magithub-cache magithub-core magit-submodule magit-obsolete magit-blame magit-stash magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-collab ghub-graphql treepy graphql ghub url-http url-gw nsm url-auth let-alist magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode magit-core magit-autorevert autorevert filenotify magit-process magit-margin magit-mode git-commit recentf tree-widget magit-git magit-section magit-utils magit-popup vc-git diff-mode crm log-edit message rmc rfc822 mml mml-sec epa epg gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util with-editor term disp-table ehelp eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util ag vc-svn find-dired dumb-jump f dash s etags fileloop generator tex-site auto-loads expand-region cperl-mode-expansions text-mode-expansions html-mode-expansions er-basic-expansions expand-region-core expand-region-custom which-func cperl-mode auto-complete-config auto-complete popup cl-extra help-mode ess-site ess-toolbar ess-mouse mouseme browse-url ess-swv ess-noweb ess-noweb-font-lock-mode ess-jags-d ess-bugs-l essd-els ess-xls-d ess-vst-d ess-stata-mode ess-stata-lang cc-vars cc-defs make-regexp ess-sp6w-d ess-sp5-d ess-sp4-d ess-sas-d ess-sas-l ess-sas-a ess-s4-d ess-s3-d ess-omg-d ess-omg-l ess-arc-d ess-lsp-l ess-sp6-d ess-dde ess-sp3-d ess-julia julia-mode ess-r-mode ess-r-flymake rx flymake-proc flymake warnings thingatpt ess-r-xref xref project ess-trns ess-r-package ess-r-syntax pcase ess-r-completion ess-roxy ess-rd essddr noutline outline hideshow ess-s-lang speedbar sb-image ezimage dframe ess-help info reporter ess-mode ess ess-noweb-mode ess-inf ess-tracebug easy-mmode ess-generics compile ess-utils ido ess-custom executable tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat ucs-normalize shell pcomplete parse-time debian-changelog-mode imenu add-log dpkg-dev-el saveplace vc vc-dispatcher bbdb derived bbdb-site timezone bbdb-loaddefs boxquote rect jabber-http-file-upload url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util jabber-print-html jabber-otr jabber jabber-notifications notifications jabber-libnotify dbus jabber-awesome jabber-osd jabber-wmii jabber-xmessage jabber-festival jabber-sawfish jabber-ratpoison jabber-tmux jabber-screen jabber-socks5 jabber-ft-server jabber-si-server jabber-ft-client jabber-ft-common jabber-si-client jabber-si-common jabber-feature-neg jabber-truncate jabber-time jabber-autoaway time-date jabber-vcard-avatars jabber-chatstates jabber-events jabber-vcard jabber-avatar mailcap jabber-activity jabber-watch jabber-modeline advice jabber-ahc-presence jabber-ahc jabber-version jabber-ourversion jabber-muc-nick-completion hippie-exp comint ansi-color jabber-browse jabber-search jabber-register jabber-roster format-spec jabber-presence jabber-muc jabber-bookmarks jabber-private jabber-muc-nick-coloring hexrgb jabber-widget jabber-disco wid-edit jabber-chat jabber-history jabber-mam jabber-chatbuffer jabber-alert jabber-iq jabber-core jabber-console sgml-mode dom ewoc jabber-keymap jabber-sasl sasl sasl-anonymous sasl-login sasl-plain fsm jabber-logon jabber-conn srv dns starttls tls jabber-xml xml jabber-menu jabber-util cl winner ring gnutls puny find-file-from-selection find-lisp dired dired-loaddefs cap-words superword subword edmacro kmacro server finder-inf package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib 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 943873 110857) (symbols 48 43805 3) (strings 32 274691 17422) (string-bytes 1 11990476) (vectors 16 80799) (vector-slots 8 2441363 216622) (floats 8 648 510) (intervals 56 2010 295) (buffers 992 58)) --=20 "Everything needs to change. Adam Sj=C3=B8= gren And it has to start today." asjo@koldfront.dk