From: Eli Zaretskii <eliz@gnu.org>
To: Evgeny Zajcev <lg.zevlg@gmail.com>
Cc: 33241@debbugs.gnu.org
Subject: bug#33241: image-mode in non-file buffer
Date: Sat, 03 Nov 2018 11:33:45 +0200 [thread overview]
Message-ID: <835zxefqti.fsf@gnu.org> (raw)
In-Reply-To: <CAO=W_ZoUUW7q0oqUFQfoR4tm6sOkLwXEQe79=y=3ctT9ixb-=w@mail.gmail.com> (message from Evgeny Zajcev on Fri, 2 Nov 2018 14:37:26 +0300)
> From: Evgeny Zajcev <lg.zevlg@gmail.com>
> Date: Fri, 2 Nov 2018 14:37:26 +0300
>
> I've got problems with image-mode triggered by scad-preview, but I have tiny code example to trigger it:
>
> (pop-to-buffer
> (with-current-buffer (get-buffer-create "mybuf")
> (insert-file-contents "~/pics/nav1.jpg")
> (major-mode-suspend)
> (setq major-mode 'image-mode)
> (image-toggle-display-image)
> (current-buffer)))
>
> ===>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> file-name-nondirectory(nil)
> file-name-extension(nil)
> image--imagemagick-wanted-p(nil)
But image-mode is for visiting image _files_, so why does it make
sense to turn it on in a buffer that doesn't have an associated file
name?
next prev parent reply other threads:[~2018-11-03 9:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-02 11:37 bug#33241: image-mode in non-file buffer Evgeny Zajcev
2018-11-03 9:33 ` Eli Zaretskii [this message]
2018-11-05 20:57 ` Juri Linkov
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=835zxefqti.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=33241@debbugs.gnu.org \
--cc=lg.zevlg@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.