From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shihpin Tseng Newsgroups: gmane.emacs.devel,gmane.emacs.orgmode Subject: Re: [O] 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/)] Date: Thu, 18 Apr 2013 11:55:47 +0800 Message-ID: <1A298F9D-0B5C-4817-9803-4D85EC5E30CF@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1366257364 22701 80.91.229.3 (18 Apr 2013 03:56:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Apr 2013 03:56:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: fatkasuvayu+linux@gmail.com, "emacs-orgmode@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 18 05:56:08 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1USfx6-00038o-QD for ged-emacs-devel@m.gmane.org; Thu, 18 Apr 2013 05:56:05 +0200 Original-Received: from localhost ([::1]:45002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USfx6-0000z9-Gl for ged-emacs-devel@m.gmane.org; Wed, 17 Apr 2013 23:56:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USfx2-0000vP-Am for emacs-devel@gnu.org; Wed, 17 Apr 2013 23:56:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1USfx0-0006j2-UY for emacs-devel@gnu.org; Wed, 17 Apr 2013 23:56:00 -0400 Original-Received: from mail-pa0-f44.google.com ([209.85.220.44]:62977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USfwx-0006hO-Bn; Wed, 17 Apr 2013 23:55:55 -0400 Original-Received: by mail-pa0-f44.google.com with SMTP id bi5so1285019pad.17 for ; Wed, 17 Apr 2013 20:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:content-type:content-transfer-encoding:subject:date :message-id:cc:to:mime-version:x-mailer; bh=0ho1bbA6amtEdpjFafV7xhLjOH1VJTVHyUlvpw7CD0I=; b=DO1g3VEXLCRG4E/SGXMLFkEmCdV//DHoQzSg7kwGcB8hHoMfP9EQPebDk08utY2QCi bDkQLpK0JqrB+hkuIJlwtdK9rCZWhFldBgzT5kIMrO02d2NB5m4qTqWYNh9VesPxRRor 3AkW+1EZQr4rBOsPqgAGQcdrAhJQDVTZr+v0mjqGDQCFu397jyeAOKTlLg69za16pxL6 BXFYHHlvaPL0UuRC29fiuraZx5mCjLYUbWzmtpYiMJd7fHKlwyh4ri80d8ymk+x4+60a 1m9Ksn38gkJm3k7SyH+DhcyfNSG1ClEKOFvpjFmRivGcZl+dMO0p0sVIiwIwP/FoKqqI SHlA== X-Received: by 10.66.155.164 with SMTP id vx4mr11523807pab.31.1366257354484; Wed, 17 Apr 2013 20:55:54 -0700 (PDT) Original-Received: from [192.168.1.100] ([118.120.6.0]) by mx.google.com with ESMTPS id qh4sm9273396pac.8.2013.04.17.20.55.51 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Apr 2013 20:55:53 -0700 (PDT) X-Mailer: Apple Mail (2.1503) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.44 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158996 gmane.emacs.orgmode:70715 Archived-At: > On Wed, Apr 17, 2013 at 07:51:18PM +0800, Shihpin Tseng wrote: > > To reproduce it > >=20 > > 1. M-x org-capture > > 2. select todo template > > 3. `C-c C-q'=20 > >=20 > >=20 > > Debugger entered--Lisp error: (wrong-type-argument = number-or-marker-p nil) > > mouse-avoidance-point-position() > > mouse-avoidance-too-close-p((# > CAPTURE-2-GTD.org = 0x10a84d448> 89 . 18)) > > mouse-avoidance-fancy() > > apply(mouse-avoidance-fancy nil) > > byte-code("r\301=08\302H=08\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=20= > > org-last-tag-selection-key message = "[a-z..]:Toggle [SPC]:clear [RET]:accept=20 > > [TAB]:free [!] %sgroups%s" "no " "" " [C-c]:window" " [C-c]:single" = "=20 > > [C-c]:multi" t read-char-exclusive 13 throw exit 33 = re-search-forward "[{}]"=20 > > nil replace-match " " 3 org-fast-tag-show-exit delete-other-windows=20= > > set-window-buffer split-window-vertically " *Org tags*"=20 > > org-switch-to-buffer-other-window org-fit-window-to-buffer 7 113 = rassoc=20 > > org-detach-overlay 32 now 9 (byte-code "\303\304=08\206 > >=20 > > org-set-tags(nil nil) > > org-set-tags-command(nil) > > call-interactively(org-set-tags-command nil nil) > > command-execute(org-set-tags-command) > > =20 > > Emacs : GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.3.0, NS=20 > > apple-appkit-1187.37) > > of 2013-04-17 on xxxx.local > > Package: Org-mode version 8.0-pre (release_8.0-pre-487-gd68744 @=20 > > ~/.emacs.d/el-get/org-mode/lisp/) >=20 > 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. >=20 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.=