emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Clicking on inline image causes Emacs to segfault when using dynamic cursors
@ 2010-11-23 18:07 Jason Dunsmore
       [not found] ` <8490.1290536989@gamaville.americas.hpqcorp.net>
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Dunsmore @ 2010-11-23 18:07 UTC (permalink / raw)
  To: emacs-orgmode

The following message is a courtesy copy of an article
that has been posted to gmane.emacs.orgmode as well.

1) What exactly did you do?

Evaluate the following Emacs config (dynamic cursor config is from
http://emacs-fu.blogspot.com/2009/12/changing-cursor-color-and-shape.html):

--8<---------------cut here---------------start------------->8---
(add-to-list 'load-path "~/.emacs.d/org-mode/lisp")
(add-to-list 'load-path "~/.emacs.d/org-mode/contrib/lisp")
(require 'org-install)
(setq djcb-read-only-color       "gray")
(setq djcb-read-only-cursor-type 'hbar)
(setq djcb-overwrite-color       "red")
(setq djcb-overwrite-cursor-type 'box)
(setq djcb-normal-color          "yellow")
(setq djcb-normal-cursor-type    'bar)
(defun djcb-set-cursor-according-to-mode ()
  "change cursor color and type according to some minor modes."
  (cond
    (buffer-read-only
      (set-cursor-color djcb-read-only-color)
      (setq cursor-type djcb-read-only-cursor-type))
    (overwrite-mode
      (set-cursor-color djcb-overwrite-color)
      (setq cursor-type djcb-overwrite-cursor-type))
    (t 
      (set-cursor-color djcb-normal-color)
      (setq cursor-type djcb-normal-cursor-type))))
(add-hook 'post-command-hook 'djcb-set-cursor-according-to-mode)
--8<---------------cut here---------------end--------------->8---

Create the following org file:

--8<---------------cut here---------------start------------->8---
#+STARTUP: inlineimages
[[file:/usr/local/share/emacs/23.2/etc/images/splash.png]]
--8<---------------cut here---------------end--------------->8---

Open the org-file and click on the image.

2) What did you expect to happen?

The image to be displayed in it's own buffer.

3) What happened instead?

Emacs crashed with "Segmentation fault".

Versions:

Org-mode version 7.3 (release_7.3.120.g666e6)
GNU Emacs 23.2.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] Clicking on inline image causes Emacs to segfault when using dynamic cursors
       [not found] ` <8490.1290536989@gamaville.americas.hpqcorp.net>
@ 2010-11-23 19:25   ` Jason Dunsmore
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Dunsmore @ 2010-11-23 19:25 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

Nick Dokos <nicholas.dokos@hp.com> writes:

>> Open the org-file and click on the image.
>> 
>> 2) What did you expect to happen?
>> 
>> The image to be displayed in it's own buffer.
>> 
>
> Methinks that's not right: it's an inline image, you specify showing
> inline images on startup, so it should be shown inline, not in its own
> buffer.

If I remove the dynamic cursor code, load emacs, open the org file with
images, and *click on the image*, the image is shown in it's own buffer.
Is this not what is supposed to happen?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-23 19:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-23 18:07 [BUG] Clicking on inline image causes Emacs to segfault when using dynamic cursors Jason Dunsmore
     [not found] ` <8490.1290536989@gamaville.americas.hpqcorp.net>
2010-11-23 19:25   ` Jason Dunsmore

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).