From unknown Tue Sep 09 21:32:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41957: 27.0.91; overlay-put freeze with auto-composition-mode ligatures Resent-From: "James N. V. Cash" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Jun 2020 22:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41957 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 41957@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159260395532740 (code B ref -1); Fri, 19 Jun 2020 22:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Jun 2020 21:59:15 +0000 Received: from localhost ([127.0.0.1]:56979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmP2W-0008Vx-Uf for submit@debbugs.gnu.org; Fri, 19 Jun 2020 17:59:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:49800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmOCe-00051R-Nm for submit@debbugs.gnu.org; Fri, 19 Jun 2020 17:05:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmOCe-0004sr-Gp for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2020 17:05:36 -0400 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]:36851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jmOCc-0002kS-Ab for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2020 17:05:36 -0400 Received: by mail-qt1-x833.google.com with SMTP id x62so4936167qtd.3 for ; Fri, 19 Jun 2020 14:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version; bh=XWIiX4YfZHrzFkBJAlHJtwL9QMclYF6N5216LXzsag8=; b=YoptVHIzq0R+dT9ZCwY5deXmqRa1HZCerc68m4J0la0I2yJXupq2pViVeh+u+j2Dbh x+qKyAd9vUBwCAfjHSPh4TYOAkDhvJn6I6LH6lmHkdY4YIfuctmucqcH40xvIpobWrk3 LZqN5A9KaQJOvpmzKBLugVdcYu4yA1rt+1hjz29qxJGcklREleumLHPrM7AD0ij9JFn/ CpXPp+vqucsCtMTFHptHCYkBKgaTffVHiNgra4Qv+9a9IiKwgmciAytAMaCGnujSAm/Y 8WwNsv7bVKXXjn2wCYc5QstANhU/u2uxf6gvgQBoFF4atFwvas6bWzJ1qx0ONCwFDAqJ +0tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=XWIiX4YfZHrzFkBJAlHJtwL9QMclYF6N5216LXzsag8=; b=PJs4BYGqhfBG01bp/oQHlnvDeebUiSTkTDDDLIFzz3HM6Xy9RpMqt9YpA6wEeaaRms p8mvw/5GXEBNWEQVNbwat68DdnL+YO3Fc8DKC8Q+NrKtiYUzBYC98Zgas9YhY3EnKAKg WseAD6v0l5Xkn9BS5h5jf3xVAqWpNltmiM2ZHf5BJgoamtD9ah+MUkcfhPQ2DuiGjzOh NqSeoNQ2qtROnky3+xyvkJW2whCEe3JcFnXetT+Q3rAGJrWmgXG1ti/aEUw2exOQcelt PxAnF83BahXoh9J9CtL3JrO+6exLjxnxA2r5JB+5Bsbv4D/DUVeFZo+B4KyiPmZd1L8q C3lg== X-Gm-Message-State: AOAM530Z80KU3U92JeK5sIavuVoQwKRcbgGsJLYwWjv8R1nqYOmnHF6K EbwE7NL4ZWIHzna06qbP0xguObllIqk= X-Google-Smtp-Source: ABdhPJx3sjyFpiVIVNiU0CGUy9Zvk87CsazJVxJH4aEVZA6D87F1tF9z6igGjzTFS80EFhavrklL6Q== X-Received: by 2002:aed:29c5:: with SMTP id o63mr5505235qtd.386.1592600732802; Fri, 19 Jun 2020 14:05:32 -0700 (PDT) Received: from gonk ([2607:f2c0:e360:1126:f4fb:d8b2:1aeb:8b0a]) by smtp.gmail.com with ESMTPSA id 124sm6987993qkn.45.2020.06.19.14.05.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jun 2020 14:05:32 -0700 (PDT) From: "James N. V. Cash" Date: Fri, 19 Jun 2020 17:05:30 -0400 Message-ID: <87tuz6ydet.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::833; envelope-from=james.nvc@gmail.com; helo=mail-qt1-x833.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Mailman-Approved-At: Fri, 19 Jun 2020 17:59:12 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) It seems that when putting the after-string property to an overlay, if auto-composition-mode is enabled and the string contains a ligature, Emacs freezes in overlay-put. The below code freezes when starting with emacs -Q: (auto-composition-mode) (set-char-table-range composition-function-table ?= `(["=>" 0 compose-gstring-for-graphic])) (let ((o (make-overlay (point-min) (+ (point-min) 3) (current-buffer)))) (overlay-put o 'after-string "=>")) If auto-composition-mode is disabled or the string doesn't contain any ligatures, it works as expected. Additionally, if I create the overlay then enable auto-composition-mode afterwards, it then freezes. In GNU Emacs 27.0.91 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10) of 2020-06-17 built on gonk Repository revision: c36c5a3dedbb2e0349be1b6c3b7567ea7b594f1c Repository branch: HEAD Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 18.04.4 LTS Configured using: 'configure --with-xwidgets --with-cairo' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_CA.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Memory information: ((conses 16 2130544 1191815) (symbols 48 73065 806) (strings 32 1403710 33264) (string-bytes 1 60271301) (vectors 16 387820) (vector-slots 8 5073825 225022) (floats 8 91573 10867) (intervals 56 39918 6792) (buffers 1000 121)) From unknown Tue Sep 09 21:32:32 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "James N. V. Cash" Subject: bug#41957: closed (Re: bug#41957: 27.0.91; overlay-put freeze with auto-composition-mode ligatures) Message-ID: References: <83tuz6w7nt.fsf@gnu.org> <87tuz6ydet.fsf@gmail.com> X-Gnu-PR-Message: they-closed 41957 X-Gnu-PR-Package: emacs Reply-To: 41957@debbugs.gnu.org Date: Sat, 20 Jun 2020 06:53:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1592635982-17183-1" This is a multi-part message in MIME format... ------------=_1592635982-17183-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #41957: 27.0.91; overlay-put freeze with auto-composition-mode ligatures which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 41957@debbugs.gnu.org. --=20 41957: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D41957 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1592635982-17183-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 41957-done) by debbugs.gnu.org; 20 Jun 2020 06:52:59 +0000 Received: from localhost ([127.0.0.1]:57170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmXN5-0004Sv-Iq for submit@debbugs.gnu.org; Sat, 20 Jun 2020 02:52:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmXN2-0004Sh-WC for 41957-done@debbugs.gnu.org; Sat, 20 Jun 2020 02:52:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35778) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmXMt-0001WH-NY; Sat, 20 Jun 2020 02:52:51 -0400 Received: from [176.228.60.248] (port=3419 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jmXMt-0007fO-5b; Sat, 20 Jun 2020 02:52:47 -0400 Date: Sat, 20 Jun 2020 09:52:38 +0300 Message-Id: <83tuz6w7nt.fsf@gnu.org> From: Eli Zaretskii To: "James N. V. Cash" In-Reply-To: <87tuz6ydet.fsf@gmail.com> (james.nvc@gmail.com) Subject: Re: bug#41957: 27.0.91; overlay-put freeze with auto-composition-mode ligatures References: <87tuz6ydet.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41957-done Cc: 41957-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: "James N. V. Cash" > Date: Fri, 19 Jun 2020 17:05:30 -0400 > > It seems that when putting the after-string property to an overlay, if > auto-composition-mode is enabled and the string contains a ligature, > Emacs freezes in overlay-put. > > The below code freezes when starting with emacs -Q: > > > (auto-composition-mode) > (set-char-table-range composition-function-table ?= `(["=>" 0 compose-gstring-for-graphic])) > (let ((o (make-overlay (point-min) (+ (point-min) 3) (current-buffer)))) > (overlay-put o 'after-string "=>")) Thanks, this is a known bug that is already fixed on the master branch, and will be available in Emacs 28. ------------=_1592635982-17183-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 19 Jun 2020 21:59:15 +0000 Received: from localhost ([127.0.0.1]:56979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmP2W-0008Vx-Uf for submit@debbugs.gnu.org; Fri, 19 Jun 2020 17:59:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:49800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmOCe-00051R-Nm for submit@debbugs.gnu.org; Fri, 19 Jun 2020 17:05:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmOCe-0004sr-Gp for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2020 17:05:36 -0400 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]:36851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jmOCc-0002kS-Ab for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2020 17:05:36 -0400 Received: by mail-qt1-x833.google.com with SMTP id x62so4936167qtd.3 for ; Fri, 19 Jun 2020 14:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version; bh=XWIiX4YfZHrzFkBJAlHJtwL9QMclYF6N5216LXzsag8=; b=YoptVHIzq0R+dT9ZCwY5deXmqRa1HZCerc68m4J0la0I2yJXupq2pViVeh+u+j2Dbh x+qKyAd9vUBwCAfjHSPh4TYOAkDhvJn6I6LH6lmHkdY4YIfuctmucqcH40xvIpobWrk3 LZqN5A9KaQJOvpmzKBLugVdcYu4yA1rt+1hjz29qxJGcklREleumLHPrM7AD0ij9JFn/ CpXPp+vqucsCtMTFHptHCYkBKgaTffVHiNgra4Qv+9a9IiKwgmciAytAMaCGnujSAm/Y 8WwNsv7bVKXXjn2wCYc5QstANhU/u2uxf6gvgQBoFF4atFwvas6bWzJ1qx0ONCwFDAqJ +0tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=XWIiX4YfZHrzFkBJAlHJtwL9QMclYF6N5216LXzsag8=; b=PJs4BYGqhfBG01bp/oQHlnvDeebUiSTkTDDDLIFzz3HM6Xy9RpMqt9YpA6wEeaaRms p8mvw/5GXEBNWEQVNbwat68DdnL+YO3Fc8DKC8Q+NrKtiYUzBYC98Zgas9YhY3EnKAKg WseAD6v0l5Xkn9BS5h5jf3xVAqWpNltmiM2ZHf5BJgoamtD9ah+MUkcfhPQ2DuiGjzOh NqSeoNQ2qtROnky3+xyvkJW2whCEe3JcFnXetT+Q3rAGJrWmgXG1ti/aEUw2exOQcelt PxAnF83BahXoh9J9CtL3JrO+6exLjxnxA2r5JB+5Bsbv4D/DUVeFZo+B4KyiPmZd1L8q C3lg== X-Gm-Message-State: AOAM530Z80KU3U92JeK5sIavuVoQwKRcbgGsJLYwWjv8R1nqYOmnHF6K EbwE7NL4ZWIHzna06qbP0xguObllIqk= X-Google-Smtp-Source: ABdhPJx3sjyFpiVIVNiU0CGUy9Zvk87CsazJVxJH4aEVZA6D87F1tF9z6igGjzTFS80EFhavrklL6Q== X-Received: by 2002:aed:29c5:: with SMTP id o63mr5505235qtd.386.1592600732802; Fri, 19 Jun 2020 14:05:32 -0700 (PDT) Received: from gonk ([2607:f2c0:e360:1126:f4fb:d8b2:1aeb:8b0a]) by smtp.gmail.com with ESMTPSA id 124sm6987993qkn.45.2020.06.19.14.05.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jun 2020 14:05:32 -0700 (PDT) From: "James N. V. Cash" To: bug-gnu-emacs@gnu.org Subject: 27.0.91; overlay-put freeze with auto-composition-mode ligatures Date: Fri, 19 Jun 2020 17:05:30 -0400 Message-ID: <87tuz6ydet.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::833; envelope-from=james.nvc@gmail.com; helo=mail-qt1-x833.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 19 Jun 2020 17:59:12 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) It seems that when putting the after-string property to an overlay, if auto-composition-mode is enabled and the string contains a ligature, Emacs freezes in overlay-put. The below code freezes when starting with emacs -Q: (auto-composition-mode) (set-char-table-range composition-function-table ?= `(["=>" 0 compose-gstring-for-graphic])) (let ((o (make-overlay (point-min) (+ (point-min) 3) (current-buffer)))) (overlay-put o 'after-string "=>")) If auto-composition-mode is disabled or the string doesn't contain any ligatures, it works as expected. Additionally, if I create the overlay then enable auto-composition-mode afterwards, it then freezes. In GNU Emacs 27.0.91 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10) of 2020-06-17 built on gonk Repository revision: c36c5a3dedbb2e0349be1b6c3b7567ea7b594f1c Repository branch: HEAD Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 18.04.4 LTS Configured using: 'configure --with-xwidgets --with-cairo' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_CA.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Memory information: ((conses 16 2130544 1191815) (symbols 48 73065 806) (strings 32 1403710 33264) (string-bytes 1 60271301) (vectors 16 387820) (vector-slots 8 5073825 225022) (floats 8 91573 10867) (intervals 56 39918 6792) (buffers 1000 121)) ------------=_1592635982-17183-1--