emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: org-capture 'C-c C-q' conflict with mouse avoidance [8.0-pre (release_8.0-pre-487-gd68744 @ ~/.emacs.d/el-get/org-mode/lisp/)]
@ 2013-04-17 11:51 Shihpin Tseng
  2013-04-17 14:35 ` Suvayu Ali
  0 siblings, 1 reply; 3+ messages in thread
From: Shihpin Tseng @ 2013-04-17 11:51 UTC (permalink / raw)
  To: emacs-orgmode

 To reproduce it

1. M-x org-capture
2. select todo template
3. `C-c C-q' 


Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  mouse-avoidance-point-position()
  mouse-avoidance-too-close-p((#<frame GNU Emacs 24.3.50.1@xxxx.local: CAPTURE-2-GTD.org 0x10a84d448> 89 . 18))
  mouse-avoidance-fancy()
  apply(mouse-avoidance-fancy nil)
  byte-code("r\301\b\302H\b\303H\"\210)\301\207" [timer apply 5 6] 4)
  timer-event-handler([t 0 0 100000 t mouse-avoidance-fancy nil idle 0])
  read-char-exclusive()
  byte-code("........" [groups expert exit-after-next inhibit-quit c org-last-tag-selection-key message "[a-z..]:Toggle [SPC]:clear [RET]:accept [TAB]:free [!] %sgroups%s" "no " "" " [C-c]:window" " [C-c]:single" " [C-c]:multi" t read-char-exclusive 13 throw exit 33 re-search-forward "[{}]" nil replace-match " " 3 org-fast-tag-show-exit delete-other-windows set-window-buffer split-window-vertically " *Org tags*" org-switch-to-buffer-other-window org-fit-window-to-buffer 7 113 rassoc org-detach-overlay 32 now 9 (byte-code "\303\304\b\206
\0r	q\210\305 )\"\x12\303\207" [buffer-tags buf tg org-icompleting-read "Tag: " org-get-buffer-tags] 3) ((quit (byte-code "\301\x10\302\207" [tg "" nil] 1))) string-match "\\S-" add-to-list buffer-tags delete org-todo mapc #[(x) "\302\b	\"\211\x11\207" [x current delete] 3] sort ...] 8)
  org-fast-tag-selection(nil nil (("DAILY" . 100) ("HACKING" . 104) ("PROJECT" . 112) ("READING" . 114) ("HASKELL" . 72) ("CLASS" . 67)) nil)
  org-set-tags(nil nil)
  org-set-tags-command(nil)
  call-interactively(org-set-tags-command nil nil)
  command-execute(org-set-tags-command)
  
Emacs  : GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.3.0, NS apple-appkit-1187.37)
 of 2013-04-17 on xxxx.local
Package: Org-mode version 8.0-pre (release_8.0-pre-487-gd68744 @ ~/.emacs.d/el-get/org-mode/lisp/)

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

* Re: Bug: org-capture 'C-c C-q' conflict with mouse avoidance [8.0-pre (release_8.0-pre-487-gd68744 @ ~/.emacs.d/el-get/org-mode/lisp/)]
  2013-04-17 11:51 Bug: org-capture 'C-c C-q' conflict with mouse avoidance [8.0-pre (release_8.0-pre-487-gd68744 @ ~/.emacs.d/el-get/org-mode/lisp/)] Shihpin Tseng
@ 2013-04-17 14:35 ` Suvayu Ali
  0 siblings, 0 replies; 3+ messages in thread
From: Suvayu Ali @ 2013-04-17 14:35 UTC (permalink / raw)
  To: emacs-orgmode

On Wed, Apr 17, 2013 at 07:51:18PM +0800, Shihpin Tseng wrote:
>  To reproduce it
> 
> 1. M-x org-capture
> 2. select todo template
> 3. `C-c C-q' 
> 
> 
> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
>   mouse-avoidance-point-position()
>   mouse-avoidance-too-close-p((#<frame GNU Emacs 24.3.50.1@xxxx.local: CAPTURE-2-GTD.org 0x10a84d448> 89 . 18))
>   mouse-avoidance-fancy()
>   apply(mouse-avoidance-fancy nil)
>   byte-code("r\301\b\302H\b\303H\"\210)\301\207" [timer apply 5 6] 4)
>   timer-event-handler([t 0 0 100000 t mouse-avoidance-fancy nil idle 0])
>   read-char-exclusive()
>   byte-code("........" [groups expert exit-after-next inhibit-quit c org-last-tag-selection-key message "[a-z..]:Toggle [SPC]:clear [RET]:accept [TAB]:free [!] %sgroups%s" "no " "" " [C-c]:window" " [C-c]:single" " [C-c]:multi" t read-char-exclusive 13 throw exit 33 re-search-forward "[{}]" nil replace-match " " 3 org-fast-tag-show-exit delete-other-windows set-window-buffer split-window-vertically " *Org tags*" org-switch-to-buffer-other-window org-fit-window-to-buffer 7 113 rassoc org-detach-overlay 32 now 9 (byte-code "\303\304\b\206
> 
>   org-set-tags(nil nil)
>   org-set-tags-command(nil)
>   call-interactively(org-set-tags-command nil nil)
>   command-execute(org-set-tags-command)
>   
> Emacs  : GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.3.0, NS apple-appkit-1187.37)
>  of 2013-04-17 on xxxx.local
> Package: Org-mode version 8.0-pre (release_8.0-pre-487-gd68744 @ ~/.emacs.d/el-get/org-mode/lisp/)

I believe this is a problem with mouse avoidance mode.  I have been
seeing similar tracebacks for multiple other cases, outside of Org,
where it involves creating a new frame or visiting a new file in a new
frame.  Sadly I see it when I'm using emacsclient, and it disappears
when I try to replicate it with emacs -Q.

If you can reproduce this, I would urge you to file a bug against mouse
avoidance mode on the Emacs bug tracker.

GL

-- 
Suvayu

Open source is the future. It sets us free.

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

* Re: Bug: org-capture 'C-c C-q' conflict with mouse avoidance [8.0-pre (release_8.0-pre-487-gd68744 @ ~/.emacs.d/el-get/org-mode/lisp/)]
@ 2013-04-18  3:55 Shihpin Tseng
  0 siblings, 0 replies; 3+ messages in thread
From: Shihpin Tseng @ 2013-04-18  3:55 UTC (permalink / raw)
  To: fatkasuvayu+linux, emacs-orgmode; +Cc: emacs-devel


> On Wed, Apr 17, 2013 at 07:51:18PM +0800, Shihpin Tseng wrote:
> >  To reproduce it
> > 
> > 1. M-x org-capture
> > 2. select todo template
> > 3. `C-c C-q' 
> > 
> > 
> > Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
> >   mouse-avoidance-point-position()
> >   mouse-avoidance-too-close-p((#<frame GNU Emacs address@hidden: 
>                                          > CAPTURE-2-GTD.org 0x10a84d448> 89 . 18))
> >   mouse-avoidance-fancy()
> >   apply(mouse-avoidance-fancy nil)
> >   byte-code("r\301\b\302H\b\303H\"\210)\301\207" [timer apply 5 6] 4)
> >   timer-event-handler([t 0 0 100000 t mouse-avoidance-fancy nil idle 0])
> >   read-char-exclusive()
> >   byte-code("........" [groups expert exit-after-next inhibit-quit c 
>                                  > org-last-tag-selection-key message "[a-z..]:Toggle [SPC]:clear [RET]:accept 
> > [TAB]:free [!] %sgroups%s" "no " "" " [C-c]:window" " [C-c]:single" " 
> > [C-c]:multi" t read-char-exclusive 13 throw exit 33 re-search-forward "[{}]" 
> > nil replace-match " " 3 org-fast-tag-show-exit delete-other-windows 
> > set-window-buffer split-window-vertically " *Org tags*" 
> > org-switch-to-buffer-other-window org-fit-window-to-buffer 7 113 rassoc 
> > org-detach-overlay 32 now 9 (byte-code "\303\304\b\206
> > 
> >   org-set-tags(nil nil)
> >   org-set-tags-command(nil)
> >   call-interactively(org-set-tags-command nil nil)
> >   command-execute(org-set-tags-command)
> >   
> > Emacs  : GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.3.0, NS 
> > apple-appkit-1187.37)
> >  of 2013-04-17 on xxxx.local
> > Package: Org-mode version 8.0-pre (release_8.0-pre-487-gd68744 @ 
> > ~/.emacs.d/el-get/org-mode/lisp/)
> 
> I believe this is a problem with mouse avoidance mode.  I have been
> seeing similar tracebacks for multiple other cases, outside of Org,
> where it involves creating a new frame or visiting a new file in a new
> frame.  Sadly I see it when I'm using emacsclient, and it disappears
> when I try to replicate it with emacs -Q.
> 

emacs -Q,  if eval  (mouse-avoidance-mode 'animate) the problem still exit

I did some debug, found that in the following function,  `posh-at-point' will return nil .

(defun mouse-avoidance-point-position ()
  "Return the position of point as (FRAME X . Y).
Analogous to `mouse-position'."
  (let ((edges (window-inside-edges))
	(x-y (posn-x-y (posn-at-point))))
    (cons (selected-frame)
	  (cons (+ (car edges)
		   (/ (car x-y) (frame-char-width)))
		(+ (car (cdr edges))
		   (/ (cdr x-y) (frame-char-height)))))))

I'm not sure it's the bug of org-mode or emacs.

> If you can reproduce this, I would urge you to file a bug against mouse
> avoidance mode on the Emacs bug tracker.

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

end of thread, other threads:[~2013-04-18  3:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-17 11:51 Bug: org-capture 'C-c C-q' conflict with mouse avoidance [8.0-pre (release_8.0-pre-487-gd68744 @ ~/.emacs.d/el-get/org-mode/lisp/)] Shihpin Tseng
2013-04-17 14:35 ` Suvayu Ali
2013-04-18  3:55 Shihpin Tseng

Code repositories for project(s) associated with this public 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).