Re: How to capture mouse thumb button events in javascript
Le 15/09/2010 20:56, Emmanuel Engelhart a écrit : I have found the solution by investigating in the Firefox code, here is it: function HandleAppCommandEvent(evt) { evt.stopPropagation(); switch (evt.command) { case Back: pageBack(); break; case Forward: pageNext(); break; default: break; } } getHtmlRenderer().addEventListener(AppCommand, HandleAppCommandEvent, true); This does not work any more with XR14 (at least on Linux). Does someone has an idea why? Emmanuel signature.asc Description: OpenPGP digital signature ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: jsm source (mercurial )
thanks (unzipped) Ralph Giles gi...@mozilla.com wrote in message news:mailman.5430.1357066902.32706.dev-platf...@lists.mozilla.org... On 12-12-31 6:59 AM, rvj wrote: do I need to install windows mercurial to download the jsm files .. You can also download a specific snapshot of the whole mercurial repository if you want all the files but don't want to install the client. Look for the 'zip' links on the top of the https://hg.mozilla.org/ pages. For example: https://hg.mozilla.org/mozilla-central/archive/tip.zip or: https://github.com/mozilla/mozilla-central/archive/FIREFOX_RELEASE_16.0.2.zip The advantage of the mercurial (or git) client is it lets you update your working copy easily and keep track of any local changes you've made. HTH, -r ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: Emacs and vim modelines
On Fri, Jan 4, 2013 at 12:23 PM, Nicholas Nethercote n.netherc...@gmail.com wrote: But putting sts in would be reasonable for those that don't have |smarttab| set. So it sounds like the recommended mode lines should look like this: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ Any objections if I modify the style guide and start using these? Nick ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: Emacs and vim modelines
On 01/04/2013 01:01 PM, Mike Hommey wrote: On Sat, Jan 05, 2013 at 07:49:22AM +1100, Nicholas Nethercote wrote: On Fri, Jan 4, 2013 at 12:23 PM, Nicholas Nethercote n.netherc...@gmail.com wrote: But putting sts in would be reasonable for those that don't have |smarttab| set. So it sounds like the recommended mode lines should look like this: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ Any objections if I modify the style guide and start using these? It's sad that it almost doubles the size of the boilerplate at the beginning of files. That being said, in 2013, I'm not convinced limiting to 80 characters on one line still has much meaning... Mike FWIW, I agree on both points. I find editor-specific modelines extraneous, since you can always modify emacs/vim to do what you want anyway. I also find 80 characters / line fairly silly (the value of fairly depending on the language). Jeff ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: Emacs and vim modelines
On 13-01-04 1:01 PM, Mike Hommey wrote: That being said, in 2013, I'm not convinced limiting to 80 characters on one line still has much meaning... FWIW I still edit in 80 column windows. Helps get more columns on the screen. Now, maybe if you were suggesting switching to proportional fonts... :-) -r ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: Emacs and vim modelines
On 1/4/13 3:49 PM, Nicholas Nethercote wrote: On Fri, Jan 4, 2013 at 12:23 PM, Nicholas Nethercote n.netherc...@gmail.com wrote: But putting sts in would be reasonable for those that don't have |smarttab| set. So it sounds like the recommended mode lines should look like this: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ Any objections if I modify the style guide and start using these? Please make this change. If anyone wants to champion a longer line length let's move that to a different thread (I don't have strong opinions, but I know it has sparked somewhat intense debate in the past). --BDS ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: Emacs and vim modelines
On Friday 2013-01-04 22:01 +0100, Mike Hommey wrote: That being said, in 2013, I'm not convinced limiting to 80 characters on one line still has much meaning... I think it absolutely does, because if we pick a number other than 80, we'll end up having to listen to complaints from the people whose editors are wider than that asking for it to be bigger still, etc., etc. I think we should either stick to 80 or have no wrapping at all (meaning that it would be a style violation to wrap a comment anywhere other than at a paragraph break); I prefer sticking to 80. It allows many people to have two code windows side-by-side, and it allows people with poor vision to have large enough fonts, even on a laptop. It also happens to be the default width of many terminal programs, which is convenient. We also might find people writing code on smaller screens. -David -- 턞 L. David Baron http://dbaron.org/ 턂 턢 Mozilla http://www.mozilla.org/ 턂 ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: Emacs and vim modelines
I agree with what David said. Also does anyone know if there's any research on how line lengths affect code reading speed? For reading regular text there's definitely an optimal line length: when text lines are too long, then when your eye moves from the end of one line to the start of the next line it can get confused about which line you're on. I don't know if this applies to code, though. Rob -- Jesus called them together and said, “You know that the rulers of the Gentiles lord it over them, and their high officials exercise authority over them. Not so with you. Instead, whoever wants to become great among you must be your servant, and whoever wants to be first must be your slave — just as the Son of Man did not come to be served, but to serve, and to give his life as a ransom for many.” [Matthew 20:25-28] ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform