From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 24 10:46:55 2012 Received: (at submit) by debbugs.gnu.org; 24 Jun 2012 14:46:55 +0000 Received: from localhost ([127.0.0.1]:55200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sio5W-0007RY-Ls for submit@debbugs.gnu.org; Sun, 24 Jun 2012 10:46:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48588) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sio5U-0007RR-9V for submit@debbugs.gnu.org; Sun, 24 Jun 2012 10:46:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sio1k-0003zs-MZ for submit@debbugs.gnu.org; Sun, 24 Jun 2012 10:43:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:52324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sio1k-0003zo-JQ for submit@debbugs.gnu.org; Sun, 24 Jun 2012 10:43:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sio1i-0005yV-Kp for bug-gnu-emacs@gnu.org; Sun, 24 Jun 2012 10:43:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sio1g-0003zY-7j for bug-gnu-emacs@gnu.org; Sun, 24 Jun 2012 10:42:58 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:38755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sio1g-0003zU-3k for bug-gnu-emacs@gnu.org; Sun, 24 Jun 2012 10:42:56 -0400 Received: from localhost ([127.0.0.1]:51423 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sio1e-0004D4-Vc for bug-gnu-emacs@gnu.org; Sun, 24 Jun 2012 10:42:55 -0400 Received: by lola (Postfix, from userid 1000) id CBDB92003F5; Sun, 24 Jun 2012 16:42:38 +0200 (CEST) From: David Kastrup To: bug-gnu-emacs@gnu.org Subject: 24.1.50; Unable to mouse-mark regions in the info reader Date: Sun, 24 Jun 2012 16:42:38 +0200 Message-ID: <87k3ywvkip.fsf@fencepost.gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) When marking stuff in an info file via double click, I often get a backtrace like the following: Debugger entered--Lisp error: (args-out-of-range 1 262195) buffer-substring-no-properties(1 262195) pop-mark() mouse-drag-track((down-mouse-1 (# 262195 (10 . 308) 26997248 nil 262195 (1 . 14) nil (3 . 6) (7 . 15))) t) mouse-drag-region((down-mouse-1 (# 262195 (10 . 308) 26997248 nil 262195 (1 . 14) nil (3 . 6) (7 . 15)))) call-interactively(mouse-drag-region nil nil) It does not seem to happen at the beginning of the info file, but is rather common at the end of large info files (like in "(emacs) Bugs"). In GNU Emacs 24.1.50.2 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-06-22 on lola Windowing system distributor `The X.Org Foundation', version 11.0.11103000 Configured using: `configure '--without-toolkit-scroll-bars'' Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Message Minor modes in effect: auto-fill-function: message-do-auto-fill shell-dirtrack-mode: t gnus-message-citation-mode: t mml-mode: t TeX-PDF-mode: t desktop-save-mode: t minibuffer-electric-default-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: (only . t) abbrev-mode: t Recent input: t u a l l y SPC u s i n g . M-q SPC SPC I t SPC r e m e a i n s SPC y o u r SPC o w n SPC r e s p o n s i b i l i t y SPC t o SPC c o n s u l t SPC t h e SPC a c t u a l SPC d o c u m e n t a t i o n SPC d e l i v e r e d SPC w i t h SPC y o u r SPC v e r s i o n SPC o f SPC L i l y P o n d SPC . M-q SPC SPC U s C-h i g ( l i C-g i s t r i n g SPC r t u n t u i n n SPC q M-x e n a s m a c s - b u g r e p o r t - e m a c s - b u g Load-path shadows: None found. Features: (shadow emacsbug debug reftex-parse sendmail gnus-dup woman man jka-compr help-mode view rect shr-color color shr browse-url canlock multi-isearch shell pcomplete flow-fill mule-util sort smiley gnus-cite mail-extr gnus-bcklg qp gnus-async parse-time gnus-ml disp-table pop3 nndraft nnmh netrc gnutls network-stream auth-source eieio starttls tls nnml nnfolder nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime password-cache dig mailcap nntp gnus-cache gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range gnus-win message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader dired-x dired make-mode latexenc sh-script smie executable preview prv-emacs byte-opt warnings reftex-vcr reftex-dcr reftex-auc reftex reftex-vars tex-bar toolbar-x noutline outline font-latex bytecomp byte-compile cconv latex easy-mmode edmacro kmacro tex-style python rx longlines cl-macs info cc-langs cl macroexp cl-lib cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs tex-buf tex-info texinfo tex vc-git scheme lilypond-mode compile comint ansi-color ring easymenu advice help-fns advice-preload desktop minibuf-eldef gnus gnus-ems nnheader gnus-util mail-utils mm-util mail-prsvr wid-edit cus-start cus-load preview-latex tex-site auto-loads server time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) -- David Kastrup From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 24 14:04:47 2012 Received: (at 11770) by debbugs.gnu.org; 24 Jun 2012 18:04:47 +0000 Received: from localhost ([127.0.0.1]:55404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SirB1-0003Q0-Ai for submit@debbugs.gnu.org; Sun, 24 Jun 2012 14:04:47 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:47020) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SirAx-0003Pr-L6 for 11770@debbugs.gnu.org; Sun, 24 Jun 2012 14:04:45 -0400 Received: (qmail invoked by alias); 24 Jun 2012 18:00:51 -0000 Received: from 62-47-50-46.adsl.highway.telekom.at (EHLO [62.47.50.46]) [62.47.50.46] by mail.gmx.net (mp035) with SMTP; 24 Jun 2012 20:00:51 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+hlINdDsqhcMd7CmWB4pTPrLHBlYzR/L+PDVV3yA /5zHCE+kpJIPVg Message-ID: <4FE755C7.3090508@gmx.at> Date: Sun, 24 Jun 2012 20:00:39 +0200 From: martin rudalics MIME-Version: 1.0 To: David Kastrup Subject: Re: bug#11770: 24.1.50; Unable to mouse-mark regions in the info reader References: <87k3ywvkip.fsf@fencepost.gnu.org> In-Reply-To: <87k3ywvkip.fsf@fencepost.gnu.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11770 Cc: 11770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > When marking stuff in an info file via double click, I often get a > backtrace like the following: > > Debugger entered--Lisp error: (args-out-of-range 1 262195) > buffer-substring-no-properties(1 262195) > pop-mark() > mouse-drag-track((down-mouse-1 (# 262195 (10 . 308) 26997248 nil 262195 (1 . 14) nil (3 . 6) (7 . 15))) t) > mouse-drag-region((down-mouse-1 (# 262195 (10 . 308) 26997248 nil 262195 (1 . 14) nil (3 . 6) (7 . 15)))) > call-interactively(mouse-drag-region nil nil) > > > It does not seem to happen at the beginning of the info file, but is > rather common at the end of large info files (like in "(emacs) Bugs"). > I remember reporting something similar in http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00399.html martin From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 28 15:14:39 2012 Received: (at 11770-done) by debbugs.gnu.org; 28 Jun 2012 19:14:39 +0000 Received: from localhost ([127.0.0.1]:35697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SkKAo-0003Jn-M6 for submit@debbugs.gnu.org; Thu, 28 Jun 2012 15:14:39 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:53309) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SkKAn-0003Jg-79 for 11770-done@debbugs.gnu.org; Thu, 28 Jun 2012 15:14:38 -0400 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q5SJAMgL020324; Thu, 28 Jun 2012 15:10:22 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id AA34BB4161; Thu, 28 Jun 2012 15:10:22 -0400 (EDT) From: Stefan Monnier To: martin rudalics Subject: Re: bug#11770: 24.1.50; Unable to mouse-mark regions in the info reader Message-ID: References: <87k3ywvkip.fsf@fencepost.gnu.org> <4FE755C7.3090508@gmx.at> Date: Thu, 28 Jun 2012 15:10:22 -0400 In-Reply-To: <4FE755C7.3090508@gmx.at> (martin rudalics's message of "Sun, 24 Jun 2012 20:00:39 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4264=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4264> : streams <775715> : uri <1151778> X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 11770-done Cc: David Kastrup , 11770-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) >> When marking stuff in an info file via double click, I often get a >> backtrace like the following: >> >> Debugger entered--Lisp error: (args-out-of-range 1 262195) >> buffer-substring-no-properties(1 262195) >> pop-mark() >> mouse-drag-track((down-mouse-1 (# 262195 (10 . 308) 26997248 nil 262195 (1 . 14) nil (3 . 6) (7 . 15))) t) >> mouse-drag-region((down-mouse-1 (# 262195 (10 . 308) 26997248 nil 262195 (1 . 14) nil (3 . 6) (7 . 15)))) >> call-interactively(mouse-drag-region nil nil) >> >> >> It does not seem to happen at the beginning of the info file, but is >> rather common at the end of large info files (like in "(emacs) Bugs"). >> > I remember reporting something similar in > http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00399.html I installed the patch below which should fix this problem. Stefan --- src/editfns.c 2012-06-22 21:17:42 +0000 +++ src/editfns.c 2012-06-28 19:07:10 +0000 @@ -283,8 +283,12 @@ error ("The mark is not set now, so there is no region"); if ((PT < XFASTINT (m)) == (beginningp != 0)) - m = make_number (PT); - return m; + return make_number (PT); + else + { /* Clip to the current narrowing (bug#11770). */ + ptrdiff_t mark = XFASTINT (m); + return make_number (mark < BEGV ? BEGV : mark > ZV ? ZV : m); + } } DEFUN ("region-beginning", Fregion_beginning, Sregion_beginning, 0, 0, 0, From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 29 03:19:29 2012 Received: (at 11770-done) by debbugs.gnu.org; 29 Jun 2012 07:19:29 +0000 Received: from localhost ([127.0.0.1]:36221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SkVUH-00033v-3b for submit@debbugs.gnu.org; Fri, 29 Jun 2012 03:19:29 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:39955) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SkVUE-00033n-6b for 11770-done@debbugs.gnu.org; Fri, 29 Jun 2012 03:19:27 -0400 Received: from localhost ([127.0.0.1]:44951 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkVQ4-00027X-CB; Fri, 29 Jun 2012 03:15:08 -0400 Received: by lola (Postfix, from userid 1000) id 6E2B72004BB; Thu, 28 Jun 2012 21:41:04 +0200 (CEST) From: David Kastrup To: Stefan Monnier Subject: Re: bug#11770: 24.1.50; Unable to mouse-mark regions in the info reader References: <87k3ywvkip.fsf@fencepost.gnu.org> <4FE755C7.3090508@gmx.at> Date: Thu, 28 Jun 2012 21:41:04 +0200 In-Reply-To: (Stefan Monnier's message of "Thu, 28 Jun 2012 15:10:22 -0400") Message-ID: <87sjdfjkbz.fsf@fencepost.gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.4 (-----) X-Debbugs-Envelope-To: 11770-done Cc: martin rudalics , 11770-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.4 (-----) Stefan Monnier writes: >>> When marking stuff in an info file via double click, I often get a >>> backtrace like the following: >>> >>> Debugger entered--Lisp error: (args-out-of-range 1 262195) >>> buffer-substring-no-properties(1 262195) >>> pop-mark() >>> mouse-drag-track((down-mouse-1 (# 262195 (10 >>> . 308) 26997248 nil 262195 (1 . 14) nil (3 . 6) (7 . 15))) t) >>> mouse-drag-region((down-mouse-1 (# 262195 (10 >>> . 308) 26997248 nil 262195 (1 . 14) nil (3 . 6) (7 . 15)))) >>> call-interactively(mouse-drag-region nil nil) >>> >>> >>> It does not seem to happen at the beginning of the info file, but is >>> rather common at the end of large info files (like in "(emacs) Bugs"). >>> > >> I remember reporting something similar in > >> http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00399.html > > I installed the patch below which should fix this problem. > > > Stefan > > > --- src/editfns.c 2012-06-22 21:17:42 +0000 > +++ src/editfns.c 2012-06-28 19:07:10 +0000 > @@ -283,8 +283,12 @@ > error ("The mark is not set now, so there is no region"); > > if ((PT < XFASTINT (m)) == (beginningp != 0)) > - m = make_number (PT); > - return m; > + return make_number (PT); > + else > + { /* Clip to the current narrowing (bug#11770). */ > + ptrdiff_t mark = XFASTINT (m); > + return make_number (mark < BEGV ? BEGV : mark > ZV ? ZV : m); > + } > } > > DEFUN ("region-beginning", Fregion_beginning, Sregion_beginning, 0, 0, 0, I am somewhat skeptical that this is the right fix: the problem occured whenever trying to mark some region for copying. There is no good reason this should venture outside of a narrowed region, so the fix, while avoiding to trigger an error, is likely to leave the wrong region marked. Anyway, I'll check soonish. -- David Kastrup From unknown Sat Aug 16 18:38:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 27 Jul 2012 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator