all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vijay Lakshminarayanan <laksvij@gmail.com>
To: nyc4bos@aol.com
Cc: 9328@debbugs.gnu.org
Subject: bug#9328: 24.0.50; `browse-url-fireforx' creates 2 identical tabs
Date: Fri, 19 Aug 2011 10:34:22 +0530	[thread overview]
Message-ID: <87obzmxa95.fsf@gmail.com> (raw)
In-Reply-To: <844o1em8o7.fsf@aol.com> (nyc4bos@aol.com's message of "Thu, 18 Aug 2011 22:34:00 -0400")

nyc4bos@aol.com writes:

> Hi,
>
> When using `browse-url-firefox', it creates 2 identical tabs.
>
> To reproduce:
>
> 1. emacs -q
> 2. Evaluate in *sctatch* buffer:
>
> (setq browse-url-browser-function 'browse-url-firefox
>       browse-url-new-window-flag  t
>       browse-url-firefox-new-window-is-tab t)

I encountered a similar bug yesterday when evaluating on the *scratch*
buffer.  I found that running C-M-x on a form on the *scratch* buffer
evaluated the form twice.  It occurred on my work machine and I'm unable
to reproduce the same on my home machine now.

Below is the code that I was playing with when facing the issue
yesterday

(defvar debug-counting 0)

(let ((url "http://en.wikipedia.org/wiki/Emacs")
      (url-request-method "GET"))
  (setq debug-counting 0)
  (url-retrieve url
                (lambda (status)
                  (kill-buffer)
                  (message "%d" (incf debug-counting)))
                nil))

I don't encounter the issue now but when I did, `debug-counting' would
increment twice and the url would be downloaded twice.

-- 
Cheers
~vijay

Gnus should be more complicated.





  reply	other threads:[~2011-08-19  5:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-19  2:34 bug#9328: 24.0.50; `browse-url-fireforx' creates 2 identical tabs nyc4bos
2011-08-19  5:04 ` Vijay Lakshminarayanan [this message]
2011-08-19  6:35 ` Eli Zaretskii
2011-08-20 20:13   ` Chong Yidong
2011-08-21  0:32     ` Lennart Borgman
2011-08-21  1:01       ` Chong Yidong
2011-08-22  3:14         ` nyc4bos

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=87obzmxa95.fsf@gmail.com \
    --to=laksvij@gmail.com \
    --cc=9328@debbugs.gnu.org \
    --cc=nyc4bos@aol.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.