From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ikumi Keita Newsgroups: gmane.emacs.bugs Subject: bug#43033: 27.1; Two zero-width overlays with before- and after-string property Date: Tue, 25 Aug 2020 14:26:40 +0900 Message-ID: <1377.1598333200@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8254"; mail-complaints-to="usenet@ciao.gmane.io" To: 43033@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 25 07:27:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kARUE-0001zt-6h for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Aug 2020 07:27:10 +0200 Original-Received: from localhost ([::1]:58068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kARUD-0008GS-A2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Aug 2020 01:27:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kARU6-0008Fu-NP for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 01:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48448) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kARU6-0005SE-DM for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 01:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kARU6-0001wX-AD for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 01:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Aug 2020 05:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43033 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15983332207455 (code B ref -1); Tue, 25 Aug 2020 05:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Aug 2020 05:27:00 +0000 Original-Received: from localhost ([127.0.0.1]:59992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kARU4-0001w9-7b for submit@debbugs.gnu.org; Tue, 25 Aug 2020 01:27:00 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kARTu-0001vS-PE for submit@debbugs.gnu.org; Tue, 25 Aug 2020 01:26:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kARTu-0008EG-JA for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 01:26:50 -0400 Original-Received: from smtp1a.inetd.co.jp ([210.129.88.11]:47516) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kARTr-0005QA-Ht for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 01:26:50 -0400 Original-Received: from localhost (203-165-82-99.rev.home.ne.jp [203.165.82.99]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 2920D6A for ; Tue, 25 Aug 2020 14:26:41 +0900 (JST) X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.1 Content-ID: <1376.1598333199.1@localhost> Received-SPF: pass client-ip=210.129.88.11; envelope-from=ikumi@ikumi.que.jp; helo=smtp1a.inetd.co.jp X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/25 01:26:41 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186231 Archived-At: I'm not sure this is really a bug or a feature, but here is the detail anyway. When two zero-width overlays at the same position have before- and after-string property respectively, emacs doesn't display those strings in expected order. [How to reproduce] 1. Save the following file as /tmp/foo.el: --- /tmp/foo.el ---------------------------------- (setq ov1 (make-overlay (point-max) (point-max))) (setq ov2 (make-overlay (point-max) (point-max))) (overlay-put ov1 'after-string "AFTER") (overlay-put ov2 'before-string "before") -------------------------------------------------- 2. emacs -Q -l /tmp/foo.el 3. Expected result: *scrach* buffer displays "beforeAFTER" in it Actual result: *scrach* buffer displays "AFTERbefore" in it [How this behavior affects my usage of overlay] When the minibuffer has a zero-width overlay at the EOB with before-string property, `set-minibuffer-message' displays that string after, not before, the echo area message shown by that function. Regards, Ikumi Keita In GNU Emacs 27.1 (build 1, x86_64-unknown-freebsd12.1, GTK+ Version 3.24.= 20, cairo version 1.16.0) of 2020-08-20 built on freebsd.vmware Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: 12.1-RELEASE-p8 Recent messages: Saving file /tmp/foo.el... Wrote /tmp/foo.el Making completion list... Quit Mark set [2 times] Saving file /tmp/foo.el... Wrote /tmp/foo.el Undo [7 times] Saving file /tmp/foo.el... Wrote /tmp/foo.el Configured using: 'configure --with-canna --with-canna-includes=3D/usr/local/canna/include --with-canna-libraries=3D/usr/local/canna/lib --without-xim --disable-largefile --with-sound=3Dyes --with-file-notification=3Dyes --with-cairo=3Dyes --without-modules --with-xwidgets=3Dyes CFLAGS=3D-O3' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS XWIDGETS JSON PDUMPER LCMS2 GMP Important settings: value of $EMACSLOADPATH: /home/keita/elisp: value of $LANG: ja_JP.eucJP locale-coding-system: japanese-iso-8bit-unix Major mode: Org Minor modes in effect: tooltip-mode: t global-eldoc-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 auto-fill-function: org-auto-fill-function transient-mark-mode: t Load-path shadows: ~/elisp/reftex-parse hides /usr/local/share/emacs/27.1/lisp/textmodes/reft= ex-parse Features: (shadow mh-identity mh-letter mh-comp emacsbug sendmail misearch multi-isearch org-element avl-tree generator ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir ol-docview doc-view image-mode exif ol-bibtex bibtex ol-bbdb ol-w3m org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs mh-search shr-color color qp mh-alias multi-prompt crm smiley mm-archive mail-extr mh-mime mh-gnus mh-show goto-addr thingatpt gnus-cite gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr svg dom gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode gmm-utils mailheader gnus-win gnus-range gnus nnheader wid-edit mh-seq mh-inc hl-line mh-tool-bar mh-xface mh-utils mh-folder which-func imenu gnus-util rmail rmail-loaddefs mail-utils text-property-search mh-scan mh-e mh-compat mailabbrev mh-buffers mh-loaddefs mule-util cl-extra help-mode parse-time iso8601 time-date ucs-normalize epa derived epg epg-config url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny jka-compr warnings twittering-mode advice url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap xml dired dired-loaddefs preview-latex auto-loads tex-site canna-im info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib japan-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 threads dbusbind kqueue lcms2 dynamic-setting system-font-setting font-render-setting xwidget-internal cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 470707 33009) (symbols 48 24661 3) (strings 32 106353 4193) (string-bytes 1 3871565) (vectors 16 65764) (vector-slots 8 1209172 61320) (floats 8 448 226) (intervals 56 4593 597) (buffers 1000 28))