From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Stefan-W. Hahn" Newsgroups: gmane.emacs.bugs Subject: bug#25246: 25.1.90; Buffer not responsible with overlay at buffer end. Date: Thu, 22 Dec 2016 10:13:05 +0100 Organization: -no organization- Message-ID: <20161222091305.GC5148@seven> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: blaine.gmane.org 1482398054 16139 195.159.176.226 (22 Dec 2016 09:14:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2016 09:14:14 +0000 (UTC) User-Agent: Mutt/1.5.24 (2015-08-30) To: 25246@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 22 10:14:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJzRw-0003eH-Jo for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Dec 2016 10:14:08 +0100 Original-Received: from localhost ([::1]:32890 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJzS1-00007F-6A for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Dec 2016 04:14:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJzRt-000065-Ug for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 04:14:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJzRq-0003ZR-LL for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 04:14:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35498) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cJzRq-0003ZN-IA for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 04:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cJzRq-0002kz-Cn for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 04:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Stefan-W. Hahn" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Dec 2016 09:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25246 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148239801210538 (code B ref -1); Thu, 22 Dec 2016 09:14:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Dec 2016 09:13:32 +0000 Original-Received: from localhost ([127.0.0.1]:50897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJzRE-0002jj-1q for submit@debbugs.gnu.org; Thu, 22 Dec 2016 04:13:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJzRC-0002jW-FS for submit@debbugs.gnu.org; Thu, 22 Dec 2016 04:13:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJzR5-000394-HT for submit@debbugs.gnu.org; Thu, 22 Dec 2016 04:13:17 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50239) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cJzR5-00038q-E1 for submit@debbugs.gnu.org; Thu, 22 Dec 2016 04:13:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJzR3-0007le-Ct for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 04:13:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJzR0-00032r-0P for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 04:13:13 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.135]:61497) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cJzQz-0002zN-MN for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 04:13:09 -0500 Original-Received: from seven.home ([92.192.119.131]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LpzzH-1couk10FYV-00ffRE for ; Thu, 22 Dec 2016 10:13:06 +0100 Original-Received: from seven.home (localhost [127.0.0.1]) by seven.home (8.15.2/8.15.2/Debian-3) with ESMTPS id uBM9D58x008592 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 22 Dec 2016 10:13:05 +0100 Original-Received: (from hs@localhost) by seven.home (8.15.2/8.15.2/Submit) id uBM9D5Ma008583 for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 10:13:05 +0100 X-Authentication-Warning: seven.home: hs set sender to stefan.hahn@s-hahn.de using -f Content-Disposition: inline X-Mailer: Mutt http://www.mutt.org/ X-Editor: GNU Emacs http://www.gnu.org/ X-Accept-Language: de en X-Location: Europe X-GPG-Public-Key: gpg --keyserver pool.sks-keyservers.net --recv-keys 7A948D9CB5F0706D X-GPG-Fingerprint: 0x7A948D9CB5F0706D / 270E F64C 748A E880 9CB7 3D9B 7A94 8D9C B5F0 706D X-Virus-Scanned: clamav-milter 0.99.2 at seven X-Virus-Status: Clean X-Provags-ID: V03:K0:MwOoYPHgHgQ0HPROuTuGZuab7qNP0F5CbTSIaQeMkETqg+PefcT hJLLChm1VRVRJezMR0Bxnr2MdMBK0JcuCKiO9EcuU52o814+DfVg/IYqwPTFDGUNNHiDzBl 7hVkfaduOpxJWGeJGtxzGRm/xBBAtA+cpoC7kfC5wsrF9igwFHDRFJWoS7Hqd3WxWYv+f73 r9yi8VI+vjUPgHInV+uBg== X-UI-Out-Filterresults: notjunk:1;V01:K0:9kFoIFPlSp4=:14gwJQlgXkaEVvDd6CSHXA L5yAJaV8EXjLqXXnM84iO7ddaSbSK6MTXMP5SV0mmlAKZQL5CukksATYxyJQ4YPTbb9W7gnfY 0mUq+vXYji6gx1R5+Mcdc4QZo+0lKmIph5tvS2lUutmTa8jDT1yMBhJx3Q5dagIu/max410tx nDJSpaDMt8YRF5tCv/PFkqGsdFjDHssqZx0BUTwqKMUIq9UmB/fpZ9Rs27BaHu0D/7WvnIyuF BnUQCdb3J4Xk+i0L+exUau46Y8NhKjQ5Pp+Ri7p36FzeQgXWLx9tPQxgOIpyt0b4sU2pK00cs sY3ele3lCvT88Kp2fYMXTd8l8qkSFJa89g4laLAK09vMSIw8TGKXGXXm8bJUeDDRMe4FRH8Jl aeE0zMHZGgmJ1YPnESItt2NmVMg/4+ZzcL7D+EYzlUkrGTwsK0lTXp7KaAWz0viyoLvOL+dL3 52o4J/shNOv0cVPEdX5e6oNMuOQnBYmJzV5QGlbtwfpDsv3nniqM8B4sgX0PRsmZAE1jecwNA SG97yZrX5V/xBduYSU7YM2knp0i1MtNdAiuyFZ10bbUVlePkFp4j+njDmxQyO71MKH6GatRwK 4+pXZHLaYURxvXFU5VrHCYmblWsczpwtlqqItFLLmw/aCbyUzd2uuUz6gOkSVg0qwO8jXFqxr Y8UlTpHsTEVMCfmfEi6a+1dw0R/s82r9ZfVKLW0c5aP7rsSK3Q183MMNZTdw6y/SPwtQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:127318 Archived-At: Hello, running following emacs version origin/emacs-25 emacs-25 cf1f9852d0e8d571dfe74486c26417828faa945a Author: Noam Postavsky AuthorDate: Tue Dec 20 21:43:46 2016 -0500 I have the following problem: For showing some information in compile buffer I have a function which uses the hooks compilation-start-hook and compilation-filter-hook to scan the compile buffer while compiling and adding an overlay together with information of the compilation at the end of the compile buffer. The compile buffer has truncate-lines t And the function to add the overlay is like: (defun xx () (interactive) (let ((text (propertize (concat (format "Already done %d test (%d positive, %d negative, %d undecided).\n" 0 0 0 0)) 'face 'highlight)) (ov (make-overlay (point-min) (point-min) nil 'front-advance))) (overlay-put ov 'after-string text) (goto-char (point-max)) (move-overlay ov (point-at-bol) (point-at-eol)))) Together with an content of a buffer like: --- snipp xxxx xxxxxx xxxxxx `xxxxxxxx_xxxxx_xxxx.xxx'. ./../../xxxxx/xxxxxx xxxxxxxxxxxxx.xxx xxxxxxx.xxx xxxxxxx.xxx xxxxxxxxx.xxx xxxxx.xxx xxxxxxxxxxxx.xxx xxxxxxxxx.xxx xxxxxxxxxx.xxx xxx_xxxx.xxx xxxxxxxxx.xxx xxxxxxxxxx.xxx xxxxxxxxxx.xxxxxxxxxxxxx.xxxxxxxxxxxxx.xxxxxxxxxxxxx.xxxxxxxxxxxx --- snipp The last line is longer then the screen width, so truncated. If running the above defined funtion xx in this buffer (with emacs -Q), the buffer is not responsible any more afterwards. If truncate-lines is nil, it works. The problem happens on Windows 7 and Linux both in 64-bit compiled emacs version. On Windows I tested this back till commit d35d398bdbeb393f3ebf17918d82c7573562f01e Author: John Wiegley Date: Tue Aug 2 16:55:16 2016 -0700 Running the above on Linux 64 Bit with commit a3487a8 from Dec 2 and emacs -Q, attaching gdb to the not responding process gets following backtrace: --- snipp 0x00000000005caedc in Fassq (key=key@entry=12192, list=, list@entry=45444787) at fns.c:1437 1437 QUIT; (gdb) backtrace #0 0x00000000005caedc in Fassq (key=key@entry=12192, list=, list@entry=45444787) at fns.c:1437 #1 0x0000000000424717 in store_in_alist (val=0, prop=12192, alistptr=) at frame.c:2342 #2 Fframe_parameters (frame=frame@entry=19550117) at frame.c:2573 #3 0x0000000000425287 in Fframe_parameter (frame=, parameter=parameter@entry=46176) at frame.c:2641 #4 0x0000000000459e56 in x_consider_frame_title (frame=19550117) at xdisp.c:11697 #5 0x0000000000478de5 in redisplay_window (window=19557973, just_this_one_p=just_this_one_p@entry=true) at xdisp.c:17142 #6 0x000000000047c90e in redisplay_window_1 (window=window@entry=19557973) at xdisp.c:14495 #7 0x00000000005c1769 in internal_condition_case_1 (bfun=bfun@entry=0x47c8e0 , arg=19557973, handlers=, hfun=hfun@entry=0x4317c0 ) at eval.c:1338 #8 0x000000000046709e in redisplay_internal () at xdisp.c:14120 #9 0x0000000000469ff5 in redisplay () at xdisp.c:13255 #10 0x0000000000536021 in read_char (commandflag=1, map=map@entry=18151331, prev_event=0, used_mouse_menu=used_mouse_menu@entry=0x7fff2925f61b, end_time=end_time@entry=0x0) at keyboard.c:2482 #11 0x0000000000538b16 in read_key_sequence (keybuf=keybuf@entry=0x7fff2925f770, prompt=prompt@entry=0, dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=false, bufsize=30) at keyboard.c:9068 #12 0x000000000053a876 in command_loop_1 () at keyboard.c:1370 #13 0x00000000005c1601 in internal_condition_case (bfun=bfun@entry=0x53a670 , handlers=handlers@entry=19104, hfun=hfun@entry=0x52d150 ) at eval.c:1314 #14 0x0000000000529a9c in command_loop_2 (ignore=ignore@entry=0) at keyboard.c:1112 #15 0x00000000005c14ec in internal_catch (tag=tag@entry=46320, func=func@entry=0x529a80 , arg=arg@entry=0) at eval.c:1079 #16 0x0000000000529a59 in command_loop () at keyboard.c:1091 #17 0x000000000052ec04 in recursive_edit_1 () at keyboard.c:697 #18 Frecursive_edit () at keyboard.c:768 #19 0x0000000000414b60 in main (argc=2, argv=0x7fff2925fb38) at emacs.c:1629 --- snipp Following information is from emacs running on Windows 7: In GNU Emacs 25.1.90.2 (x86_64-w64-mingw32) of 2016-12-22 built on MD12GA7C Repository revision: cf1f9852d0e8d571dfe74486c26417828faa945a Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Configured using: 'configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --with-wide-int --with-jpeg --with-xpm --with-png --with-tiff --with-rsvg --with-xml2 --with-gnutls --with-xft --without-imagemagick 'CFLAGS=-static -g3 -O3' GIT_VERSION=emacs-24.5-rc3-fixed-8567-gcf1f985' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: en_GB.iso-8859-1 locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-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: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 91337 6635) (symbols 56 20392 0) (miscs 48 47 148) (strings 32 17043 4347) (string-bytes 1 446534) (vectors 16 11864) (vector-slots 8 431279 5382) (floats 8 159 77) (intervals 56 255 13) (buffers 976 22)) If more information is needed please tell me. If my code to have an overlay at the end of compile buffer is wrong please tell me too. With kind regards, Stefan -- Stefan-W. Hahn It is easy to make things. It is hard to make things simple.