X-Loop: help-debbugs@HIDDEN Subject: bug#46982: 28.0.50; after-change-functions in an indirect buffer are not called if the change is done while base buffer is active (and vice versa) Resent-From: Ihor Radchenko <yantar92@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 07 Mar 2021 04:33:02 +0000 Resent-Message-ID: <handler.46982.B.161509152626925 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 46982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 46982 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.161509152626925 (code B ref -1); Sun, 07 Mar 2021 04:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Mar 2021 04:32:06 +0000 Received: from localhost ([127.0.0.1]:38728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lIl5J-00070C-Gr for submit <at> debbugs.gnu.org; Sat, 06 Mar 2021 23:32:06 -0500 Received: from lists.gnu.org ([209.51.188.17]:34456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <yantar92@HIDDEN>) id 1lIl5H-000705-Mo for submit <at> debbugs.gnu.org; Sat, 06 Mar 2021 23:32:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <yantar92@HIDDEN>) id 1lIl5H-0006f8-Eu for bug-gnu-emacs@HIDDEN; Sat, 06 Mar 2021 23:32:03 -0500 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:34868) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <yantar92@HIDDEN>) id 1lIl5F-0001IS-KX for bug-gnu-emacs@HIDDEN; Sat, 06 Mar 2021 23:32:03 -0500 Received: by mail-pg1-x52a.google.com with SMTP id t25so4179801pga.2 for <bug-gnu-emacs@HIDDEN>; Sat, 06 Mar 2021 20:32:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=sXVSmfMs66Vumcp+dIrxxfQ0ScMZhdwjup23MSukp48=; b=VGoDVcvN7XjFe7oqDkt4PHHqGdtgXlu7muAlVRICYD6QK5HHWohYyjdDiJyJ/mnKlg zkUkmZW8TRoqpsTp0odiAy5aSu4YM+DPuJEPTdKGdIBIEr8CAi1bSWd4wznU2n2qzQJt WY6f+0LMFN9BUxHaDsY8gNAW5PHp94LlhNuqi3z7/glO/qQwVK7hsDsQ3fULIuUvOge1 wNt7rCSW/OAxdRWPiluWvGidJ7yfTi7aBvW6oysDNUlO22jUuKV5qreRSMMb6aDbuejN /ab3w01oqIochVSTyXeNR4aVQsFcZzW26f6nHuuZbEjtADZToUo4/bZiywt2wYkTe5vT uHzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=sXVSmfMs66Vumcp+dIrxxfQ0ScMZhdwjup23MSukp48=; b=POykb5DKzUu/i154mntVwJZycaNSm+pt+qJ59mTVNuMGsBbOlkQnm176MStcIGNqS0 ANc1w8wXvrrC1DBvA5JeNxmfdlnbrNRp09juqzR3DJzIFYFOp3jZsGCJk4dEaUEkgOcs xwHeM2PGj2jqxuq3DmSLnRav9h/lKVgKBoqCpIoHRbVcGC2iDX5N3zFBIuHOvtGmYmxe yQT71xUXtwVThx6QZJ2w+z6DlxU8RFu4/wpj/nnhLYfCMCqXbTE4TjlQCJoWZxfoySFB rDpuF91u+aCaia+NZFE6+pyFYXpHijFXAd2CNnBSsiOqLFdcVwhe5kI5QvXu/f+jqt6B /yyA== X-Gm-Message-State: AOAM531X67/pFCQrPrdtHLfQVnYDHmAVAR02wKkLsx6xM3ZG+9Z4n7au VmRpUDN9yAqLFO8mvnKqWMa20HTiRvQk5Q== X-Google-Smtp-Source: ABdhPJzBecW1GCl5ytngAwZ2DyyKBhSS966+1ESh9CtQ5HCm92OoZqnNSWC6hLu3BHNbZJrd2Z/3WA== X-Received: by 2002:a63:2321:: with SMTP id j33mr15218059pgj.120.1615091518587; Sat, 06 Mar 2021 20:31:58 -0800 (PST) Received: from localhost ([104.250.131.79]) by smtp.gmail.com with ESMTPSA id y1sm16295082pjr.3.2021.03.06.20.31.57 for <bug-gnu-emacs@HIDDEN> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Mar 2021 20:31:58 -0800 (PST) From: Ihor Radchenko <yantar92@HIDDEN> Date: Sun, 07 Mar 2021 12:36:01 +0800 Message-ID: <87h7lnk2by.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=yantar92@HIDDEN; helo=mail-pg1-x52a.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.1 (--) Steps to reproduce: 1. emacs -Q 2. M-x clone-indirect-buffer <RET> 3. M-: (setq-local after-change-functions (append after-change-functions '((lambda (&rest _) (message "Buffer 1"))))) <RET> 4. C-x o 5. M-: (setq-local after-change-functions (append after-change-functions '((lambda (&rest _) (message "Buffer 2"))))) <RET> 6. Type something. "Buffer 2" message is displayed. "Buffer 1" message is _not_ displayed. 7. C-x o 8. Type something. "Buffer 1" message is displayed. "Buffer 2" message is _not_ displayed. Expected behaviour: Since changes in direct buffer would automatically change text in the indirect buffer, I expect the changes to trigger all the after-change-functions in all the indirect buffers and the base buffer, regardless of which buffer was active when changes were made. The current behaviour can potentially break major modes using after-change-functions if base buffer and indirect buffer do not have the same major mode. For my use-case, an after-change-function I want to implement depends on buffer-local variable (which is set to different values in the base and indirect buffers) and I expect it to run in both buffers. Current Emacs behaviour leaves me with no options to handle changes made not in current buffer, even though they do change the text in other (indirect or base) buffer. On the other hand, running after-change-functions in every indirect/base buffer may lead to multiple invocations of the same function. Maybe, Emacs can examine something like 'run-indirect symbol for each element in after-change-functions and run the functions containing the symbol in all the connected buffers upon change. Best, Ihor In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.16.0) of 2021-02-20 built on localhost Repository revision: 39792cf62987ecc1a772f6a2027d6b32c70e8312 Repository branch: feature/native-comp Windowing system distributor 'The X.Org Foundation', version 11.0.12010000 System Description: Gentoo/Linux Configured using: 'configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-silent-rules --docdir=/usr/share/doc/emacs-28.0.9999 --htmldir=/usr/share/doc/emacs-28.0.9999/html --libdir=/usr/lib64 --program-suffix=-emacs-28-vcs --includedir=/usr/include/emacs-28-vcs --infodir=/usr/share/info/emacs-28-vcs --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --without-compress-install --without-hesiod --without-pop --with-file-notification=inotify --with-pdumper --enable-acl --with-dbus --with-modules --without-gameuser --with-libgmp --without-gpm --with-json --without-kerberos --without-kerberos5 --without-lcms2 --with-xml2 --without-mailutils --with-selinux --with-gnutls --without-libsystemd --with-threads --with-wide-int --with-zlib --with-sound=oss --with-x --without-ns --without-gconf --without-gsettings --without-toolkit-scroll-bars --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --with-imagemagick --with-xft --with-cairo --with-harfbuzz --without-libotf --without-m17n-flt --with-x-toolkit=no --with-dumping=pdumper --with-nativecomp 'CFLAGS=-march=native -pipe -O2' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ IMAGEMAGICK JPEG JSON LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY OLDXMENU PDUMPER PNG RSVG SOUND THREADS TIFF X11 XDBE XIM XPM ZLIB Important settings: value of $LC_COLLATE: C value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: org-edna-mode: t eros-mode: t pdf-occur-global-minor-mode: t TeX-PDF-mode: t which-key-mode: t global-aggressive-indent-mode: t aggressive-indent-mode: t diredfl-global-mode: t dired-async-mode: t winner-mode: t recentf-mode: t helm-adaptive-mode: t helm-global-mode: t helm-mode: t helm--remap-mouse-mode: t async-bytecomp-package-mode: t eval-sexp-fu-flash-mode: t global-highlight-parentheses-mode: t highlight-parentheses-mode: t el-patch-use-package-mode: t global-git-commit-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t hl-todo-mode: t pretty-symbols-mode: t company-mode: t persistent-scratch-autosave-mode: t savehist-mode: t boon-mode: t boon-local-mode: t global-hl-line-mode: t global-page-break-lines-mode: t page-break-lines-mode: t shackle-mode: t golden-ratio-mode: t gcmh-mode: t override-global-mode: t straight-use-package-mode: t straight-package-neutering-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t global-prettify-symbols-mode: t prettify-symbols-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t window-divider-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Features: (shadow emacsbug sendmail helm-misc avy font-latex context-en context plain-tex tex-buf ...) Memory information: ((conses 16 32697775 2032831) (symbols 48 96430 1) (strings 32 2157335 426732) (string-bytes 1 82214460) (vectors 16 799796) (vector-slots 8 11991333 1566948) (floats 8 211915 16922) (intervals 56 1417577 35086) (buffers 992 180))
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Ihor Radchenko <yantar92@HIDDEN> Subject: bug#46982: Acknowledgement (28.0.50; after-change-functions in an indirect buffer are not called if the change is done while base buffer is active (and vice versa)) Message-ID: <handler.46982.B.161509152626925.ack <at> debbugs.gnu.org> References: <87h7lnk2by.fsf@localhost> X-Gnu-PR-Message: ack 46982 X-Gnu-PR-Package: emacs Reply-To: 46982 <at> debbugs.gnu.org Date: Sun, 07 Mar 2021 04:33:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 46982 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 46982: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D46982 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#46982: 28.0.50; after-change-functions in an indirect buffer are not called if the change is done while base buffer is active (and vice versa) Resent-From: Stefan Monnier <monnier@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jun 2022 02:37:01 +0000 Resent-Message-ID: <handler.46982.B46982.165543340123399 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 46982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ihor Radchenko <yantar92@HIDDEN> Cc: 46982 <at> debbugs.gnu.org Received: via spool by 46982-submit <at> debbugs.gnu.org id=B46982.165543340123399 (code B ref 46982); Fri, 17 Jun 2022 02:37:01 +0000 Received: (at 46982) by debbugs.gnu.org; 17 Jun 2022 02:36:41 +0000 Received: from localhost ([127.0.0.1]:43439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o21qi-00065L-OK for submit <at> debbugs.gnu.org; Thu, 16 Jun 2022 22:36:40 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:35915) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1o21qg-000657-02 for 46982 <at> debbugs.gnu.org; Thu, 16 Jun 2022 22:36:39 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 2E0D48077C; Thu, 16 Jun 2022 22:36:32 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id DB44A8051A; Thu, 16 Jun 2022 22:36:30 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1655433390; bh=5G+8fMteqrEaOVP2JOEZOQLv0y9x7MvTV3lmLeMgLmU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=NeNvG7H77XeSx/AtrBRAQQgUl10hiTzddHPugw1Eh/M+3Aiz/5HvxHgcWYDfuMiP0 5S7UM6iYE91i3F0Ee5e3e4Uh2ZMV+vIbZefkJ1eQP9wdtmaQpaZ2Uv18RghTqGX02J ABH34g/z/VyXDgV0G9atgtx6xXXc7CmfTD+g1eyOq1Hup277wtHo7fU+DKDTXaMNuy 8/LEbl3N5V0wxrfPJSfNhpkdCi6lc5+WTlQde9i8ydXHoJOWgnbsXYHwk77dqMJnnG vtzG8wLGfCpfvUKVDQsh7MqlIgFsH3dNFahGxvPRnzqzB9DQJzjBgNxeM/LX+GIRQM mlmQ7+FM5wrzw== Received: from alfajor (unknown [45.72.221.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8EEB312045A; Thu, 16 Jun 2022 22:36:30 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> Message-ID: <jwvv8t06mwe.fsf-monnier+emacs@HIDDEN> References: <87h7lnk2by.fsf@localhost> Date: Thu, 16 Jun 2022 22:36:29 -0400 In-Reply-To: <87h7lnk2by.fsf@localhost> (Ihor Radchenko's message of "Sun, 07 Mar 2021 12:36:01 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.057 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > 1. emacs -Q > 2. M-x clone-indirect-buffer <RET> > 3. M-: (setq-local after-change-functions (append after-change-functions > '((lambda (&rest _) (message "Buffer 1"))))) <RET> > 4. C-x o > 5. M-: (setq-local after-change-functions (append after-change-functions > '((lambda (&rest _) (message "Buffer 2"))))) <RET> > 6. Type something. "Buffer 2" message is displayed. "Buffer 1" message > is _not_ displayed. > 7. C-x o > 8. Type something. "Buffer 1" message is displayed. "Buffer 2" message > is _not_ displayed. That's on purpose, yes. > The current behaviour can potentially break major modes using > after-change-functions if base buffer and indirect buffer do not have > the same major mode. It's currently the responsibility of the code that sets up the indirect buffer(s) to setup a `before/after-change-functions` in the base buffer that runs (some of) the `before/after-change-functions` in the indirect buffer(s) where they are needed. Stefan
X-Loop: help-debbugs@HIDDEN Subject: bug#46982: 28.0.50; after-change-functions in an indirect buffer are not called if the change is done while base buffer is active (and vice versa) Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jun 2022 05:43:02 +0000 Resent-Message-ID: <handler.46982.B46982.16554445668951 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 46982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier <monnier@HIDDEN> Cc: 46982 <at> debbugs.gnu.org, yantar92@HIDDEN Received: via spool by 46982-submit <at> debbugs.gnu.org id=B46982.16554445668951 (code B ref 46982); Fri, 17 Jun 2022 05:43:02 +0000 Received: (at 46982) by debbugs.gnu.org; 17 Jun 2022 05:42:46 +0000 Received: from localhost ([127.0.0.1]:43541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o24ko-0002KJ-7b for submit <at> debbugs.gnu.org; Fri, 17 Jun 2022 01:42:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1o24km-0002K7-NO for 46982 <at> debbugs.gnu.org; Fri, 17 Jun 2022 01:42:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1o24kh-0002Ob-C0; Fri, 17 Jun 2022 01:42:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=FISNqT+zVArvZXc6U5Qk4knZCjtw+JRHITyBovjErC4=; b=evWSdu2SWyqN v5WZbuCIzM9Lqh+4HH5ZtEATJpTSTssSsAkhS/LOjKEeouX9vcgMY5HVBPocLeZqO71qqrnbnDw9K JJ9kM/ktrt5F5QDeVHzoVgnIx6j0Nrc9hpeRG2wfeKk54aDjED7rS/BDmlVQlZVuswHpMqILhka99 iFg1uwYeXphRHVzTqteT34NE5+7j4YnBw1jqt8W4BxlsbaFnwbuwmUZW7kY/vVoCq4k65vNj4UFOz ANLWw/dU3DyrP7FYJ4hjdJoDct9gnPvzvCOc7a7A61MOnONYkZ3+5i1uaEcVIFf57w0a6CwkzX6f0 DT1TxsVv28/u1++iX6C2AQ==; Received: from [87.69.77.57] (port=4798 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1o24kg-0006qv-5v; Fri, 17 Jun 2022 01:42:38 -0400 Date: Fri, 17 Jun 2022 08:42:33 +0300 Message-Id: <83pmj7q20m.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <jwvv8t06mwe.fsf-monnier+emacs@HIDDEN> (bug-gnu-emacs@HIDDEN) References: <87h7lnk2by.fsf@localhost> <jwvv8t06mwe.fsf-monnier+emacs@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Cc: 46982 <at> debbugs.gnu.org > Date: Thu, 16 Jun 2022 22:36:29 -0400 > From: Stefan Monnier via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > It's currently the responsibility of the code that sets up the indirect > buffer(s) to setup a `before/after-change-functions` in the base buffer > that runs (some of) the `before/after-change-functions` in the indirect > buffer(s) where they are needed. Do you think we should document this caveat in the ELisp manual?
X-Loop: help-debbugs@HIDDEN Subject: bug#46982: 28.0.50; after-change-functions in an indirect buffer are not called if the change is done while base buffer is active (and vice versa) Resent-From: Stefan Monnier <monnier@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jun 2022 13:31:01 +0000 Resent-Message-ID: <handler.46982.B46982.165547260519659 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 46982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 46982 <at> debbugs.gnu.org, yantar92@HIDDEN Received: via spool by 46982-submit <at> debbugs.gnu.org id=B46982.165547260519659 (code B ref 46982); Fri, 17 Jun 2022 13:31:01 +0000 Received: (at 46982) by debbugs.gnu.org; 17 Jun 2022 13:30:05 +0000 Received: from localhost ([127.0.0.1]:44397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o2C32-000571-KK for submit <at> debbugs.gnu.org; Fri, 17 Jun 2022 09:30:05 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:11817) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1o2C30-00056C-JA for 46982 <at> debbugs.gnu.org; Fri, 17 Jun 2022 09:30:03 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 445AD1006DD; Fri, 17 Jun 2022 09:29:57 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id F4205100163; Fri, 17 Jun 2022 09:29:55 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1655472596; bh=aTmWuinPeKjufsxkJcagR3hfMaKFMYfP39TGx8umM5A=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=oYZwMR/hy1afDhNsxlzVNEhGuyqYbRrWqo2t01OTwpgGVyQtQ6VaWAe4aKYXEbg5V wN0USeUGOLHIlIKt6QUfpZPutv7uUwHlme2InZ7d4+BFt1BWj464RMcfveipZN74Qd zG9oMayoVMod1Z3Da+ermSnJRGKCNhPQ0DZ2Qhp9xMYuM3A5ryFmCvyu67/Z4wZI3+ bBHfPcoJAR5b25dQ00ENXXZsvlDXYsHfsZiEgMpTl1Rs/hUASARDZC8dC8rGp4C31v F256wDWFN7bM2pJ5zPqiP5hN9Empmhfo6k42SsuJ11gkvm55Q4pTOPIEAA4aGBL/gX KvvlCe1rnJ81A== Received: from pastel (unknown [45.72.221.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 932B11204DE; Fri, 17 Jun 2022 09:29:55 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> Message-ID: <jwvh74jxvtw.fsf-monnier+emacs@HIDDEN> References: <87h7lnk2by.fsf@localhost> <jwvv8t06mwe.fsf-monnier+emacs@HIDDEN> <83pmj7q20m.fsf@HIDDEN> Date: Fri, 17 Jun 2022 09:29:54 -0400 In-Reply-To: <83pmj7q20m.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 17 Jun 2022 08:42:33 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.044 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Eli Zaretskii [2022-06-17 08:42:33] wrote: >> It's currently the responsibility of the code that sets up the indirect >> buffer(s) to setup a `before/after-change-functions` in the base buffer >> that runs (some of) the `before/after-change-functions` in the indirect >> buffer(s) where they are needed. > > Do you think we should document this caveat in the ELisp manual? It might be a good thing to mention somewhere around `clone-buffer`, yes. I'll see what I can come up with. Stefan
X-Loop: help-debbugs@HIDDEN Subject: bug#46982: 28.0.50; after-change-functions in an indirect buffer are not called if the change is done while base buffer is active (and vice versa) Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jun 2022 15:29:02 +0000 Resent-Message-ID: <handler.46982.B46982.165547971610528 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 46982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier <monnier@HIDDEN> Cc: 46982 <at> debbugs.gnu.org, yantar92@HIDDEN Received: via spool by 46982-submit <at> debbugs.gnu.org id=B46982.165547971610528 (code B ref 46982); Fri, 17 Jun 2022 15:29:02 +0000 Received: (at 46982) by debbugs.gnu.org; 17 Jun 2022 15:28:36 +0000 Received: from localhost ([127.0.0.1]:46729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o2Dtk-0002ji-AZ for submit <at> debbugs.gnu.org; Fri, 17 Jun 2022 11:28:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1o2Dth-0002jV-Nk for 46982 <at> debbugs.gnu.org; Fri, 17 Jun 2022 11:28:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36598) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1o2Dtb-00061i-LC; Fri, 17 Jun 2022 11:28:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=uTnNAgpVPNHvsI6DU6J3HLP2enaZSu4L7uk+poVlbbs=; b=nnA4owohBg0N A7xdrSHEdQbbXGJhiGeDvpiEEIPfUyYH35p8MbZqfC/6Cvf7osjsuC3fUsVo0Fxoob263BNrGcC4d ETopK8AIZgwvzF9pd7wg1Y+vzd57p6p021fZFkfuObllLrccVva7Q+Z8PdgVsYZBAJ+f6JGDAqDBV liZfL1mA5MacrxasQvgo5eTi0dRKTZ+hLg+CWmdRjswE6HTuVZKUaiygWcUZOzvvCjVJHXCsjls1n QuHe4nP/sYpmVIp5EIYXsEKVyQBz38mYuwEzAYfA6NjIFAR2zfY19GyZr+Gjgol2qP9CYtE960H6h ST1t8ma98n1ue5f1jYc78Q==; Received: from [87.69.77.57] (port=1230 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1o2Dtb-00062p-4G; Fri, 17 Jun 2022 11:28:27 -0400 Date: Fri, 17 Jun 2022 18:28:23 +0300 Message-Id: <8335g3paw8.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <jwvh74jxvtw.fsf-monnier+emacs@HIDDEN> (message from Stefan Monnier on Fri, 17 Jun 2022 09:29:54 -0400) References: <87h7lnk2by.fsf@localhost> <jwvv8t06mwe.fsf-monnier+emacs@HIDDEN> <83pmj7q20m.fsf@HIDDEN> <jwvh74jxvtw.fsf-monnier+emacs@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Stefan Monnier <monnier@HIDDEN> > Cc: yantar92@HIDDEN, 46982 <at> debbugs.gnu.org > Date: Fri, 17 Jun 2022 09:29:54 -0400 > > Eli Zaretskii [2022-06-17 08:42:33] wrote: > >> It's currently the responsibility of the code that sets up the indirect > >> buffer(s) to setup a `before/after-change-functions` in the base buffer > >> that runs (some of) the `before/after-change-functions` in the indirect > >> buffer(s) where they are needed. > > > > Do you think we should document this caveat in the ELisp manual? > > It might be a good thing to mention somewhere around > `clone-buffer`, yes. I'll see what I can come up with. Thanks.
X-Loop: help-debbugs@HIDDEN Subject: bug#46982: 28.0.50; after-change-functions in an indirect buffer are not called if the change is done while base buffer is active (and vice versa) Resent-From: Stefan Monnier <monnier@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jun 2022 20:22:01 +0000 Resent-Message-ID: <handler.46982.B46982.165584288615915 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 46982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 46982 <at> debbugs.gnu.org, yantar92@HIDDEN Received: via spool by 46982-submit <at> debbugs.gnu.org id=B46982.165584288615915 (code B ref 46982); Tue, 21 Jun 2022 20:22:01 +0000 Received: (at 46982) by debbugs.gnu.org; 21 Jun 2022 20:21:26 +0000 Received: from localhost ([127.0.0.1]:33410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o3kNJ-00048d-PA for submit <at> debbugs.gnu.org; Tue, 21 Jun 2022 16:21:25 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:33908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1o3kNI-00048O-7T for 46982 <at> debbugs.gnu.org; Tue, 21 Jun 2022 16:21:24 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id AA99E44182E; Tue, 21 Jun 2022 16:21:18 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 6BB1C441820; Tue, 21 Jun 2022 16:21:17 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1655842877; bh=hH5Xo/f6YtCbUbHCSuZmFj7fqfSRBZPQJtJT9n6BtYU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=CjuHB2VR2J4QVt2V9RI0O1NX2bfqT77fF5lDgWPX5iXg2Zv5usq8+xzr1mQaoG1Wx cWMS4aCGjC7P7Q3Qwn4nAgZLl4ocUSKn//zcMoVRBwCpPrAUhtDatBX79q8dLoM1Zd srpqbSsAB+gX94QMSVClT856LHAqwxC1pVG5uuYzg1MC+ZznJWjwcr3f075CNhmkXo r92tuVqkncMM79c+EiQ/1hqLtDwYGpHhFl6V0BClHA7WMlLhnk8zumgk+lKM0YKfNJ PHVrh9swDExT70SZ0LbWrOyfqN96XdWIfqMvYC4dFHNm4r61BKwv6B+MQt5rZK18ei zjizUY4O28RRQ== Received: from alfajor (unknown [80.82.234.185]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id AEE471203F3; Tue, 21 Jun 2022 16:21:16 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> Message-ID: <jwvfsjxu5tl.fsf-monnier+emacs@HIDDEN> References: <87h7lnk2by.fsf@localhost> <jwvv8t06mwe.fsf-monnier+emacs@HIDDEN> <83pmj7q20m.fsf@HIDDEN> <jwvh74jxvtw.fsf-monnier+emacs@HIDDEN> Date: Tue, 21 Jun 2022 16:21:09 -0400 In-Reply-To: <jwvh74jxvtw.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message of "Fri, 17 Jun 2022 09:29:54 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > It might be a good thing to mention somewhere around > `clone-buffer`, yes. I'll see what I can come up with. Hmm... we don't document `clone-buffer` anywhere that I can see. Any suggestion where I could put that kind of info? Stefan
X-Loop: help-debbugs@HIDDEN Subject: bug#46982: 28.0.50; after-change-functions in an indirect buffer are not called if the change is done while base buffer is active (and vice versa) Resent-From: Ihor Radchenko <yantar92@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jun 2022 23:28:02 +0000 Resent-Message-ID: <handler.46982.B46982.16558540813192 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 46982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier <monnier@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, 46982 <at> debbugs.gnu.org Received: via spool by 46982-submit <at> debbugs.gnu.org id=B46982.16558540813192 (code B ref 46982); Tue, 21 Jun 2022 23:28:02 +0000 Received: (at 46982) by debbugs.gnu.org; 21 Jun 2022 23:28:01 +0000 Received: from localhost ([127.0.0.1]:33530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o3nHt-0000pM-9P for submit <at> debbugs.gnu.org; Tue, 21 Jun 2022 19:28:01 -0400 Received: from mail-pj1-f46.google.com ([209.85.216.46]:39539) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <yantar92@HIDDEN>) id 1o3nHr-0000p9-RO for 46982 <at> debbugs.gnu.org; Tue, 21 Jun 2022 19:28:00 -0400 Received: by mail-pj1-f46.google.com with SMTP id b12-20020a17090a6acc00b001ec2b181c98so13480029pjm.4 for <46982 <at> debbugs.gnu.org>; Tue, 21 Jun 2022 16:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=vsnZAlq3HXT7fjhoyHK3HgUfZsT8L555wCZboungDXM=; b=gtZnf1RDgsSWpFy5wRCUHyNMifNs02BPjMlu9HhCjY1O69/86T83RRERk/r1Xo1vky hH6rFoHkJSwrjIj3ryBqQABckSmKa267r3ZqufDhI9fBLQjvk0LIxY8vQerGXROmPvCG OiCblVxlJvmhoPBsx4BQIULsGwH+9IEeYhm6cZwPBlo/hLKQNi0E//6O8dBeu89SseLf YzKUk1OjcCfLP4gEGHGDyxmi/YTOPzU9j0BNco0vah3nZlLOC1Hsm1YdKj/qAvqhmHks ehwvR5b5HLe019OqMfWCNhW2zygyoTZjxXGYd9ysvPpG7AYJN7C4AbKmAXh2a6QuLyGz JMYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=vsnZAlq3HXT7fjhoyHK3HgUfZsT8L555wCZboungDXM=; b=hfgzkqTZA3QttcQSoF5g6eogQ35Yun281cIcMxWFwWjA4BSn6yPJ6QIDbNnXdi1+Zv DY606QMj3BV2zTxPG+ccUL2cTr6QIgSvVRYngTY+4Md8WH77DKaf/zNDKB5n/AtJpjaO d2hCEReEBssCW6OLHWPq+P7z8g+M8iVzinraUUCvhh6/INcoEu5f7b6sTzHflpgs9RY8 OGUdzUMaXGKsRMjyNZMTi9mglJPMGE7sE34oCcgquVz6XnNM3mGf2f7Vib+kajTWxzgd qFyHOSs8/SJJcRwbb2dyqmfLBBOBoHaXmT+fdGMQGiBONfsmFd8KFIjl0wQ6LSB8dCu0 byVA== X-Gm-Message-State: AJIora9qHEOMUzi2cuXFRlMIzyDixMZITYIYjh2VtmnE0Qzua0x9+8SD lmxLPlUDF05FMn2zRC4Ibcg= X-Google-Smtp-Source: AGRyM1s1IzuwF9XkvQIqIug3ij/IAGVU2ndXicQXgsT2d70MngpOfiSL3bGqmJG+V/mzFjKz3TMHYw== X-Received: by 2002:a17:90b:2250:b0:1ec:e553:2851 with SMTP id hk16-20020a17090b225000b001ece5532851mr311493pjb.76.1655854074045; Tue, 21 Jun 2022 16:27:54 -0700 (PDT) Received: from localhost ([155.94.207.39]) by smtp.gmail.com with ESMTPSA id az9-20020a170902a58900b00167838b82e0sm11173378plb.205.2022.06.21.16.27.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jun 2022 16:27:53 -0700 (PDT) From: Ihor Radchenko <yantar92@HIDDEN> In-Reply-To: <jwvfsjxu5tl.fsf-monnier+emacs@HIDDEN> References: <87h7lnk2by.fsf@localhost> <jwvv8t06mwe.fsf-monnier+emacs@HIDDEN> <83pmj7q20m.fsf@HIDDEN> <jwvh74jxvtw.fsf-monnier+emacs@HIDDEN> <jwvfsjxu5tl.fsf-monnier+emacs@HIDDEN> Date: Wed, 22 Jun 2022 07:29:05 +0800 Message-ID: <87sfnxppdq.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.8 (/) Stefan Monnier <monnier@HIDDEN> writes: >> It might be a good thing to mention somewhere around >> `clone-buffer`, yes. I'll see what I can come up with. > > Hmm... we don't document `clone-buffer` anywhere that I can see. > Any suggestion where I could put that kind of info? `clone-indirect-buffer' I think. For example, in 19.6 Indirect Buffers section of the manual. Best, Ihor
X-Loop: help-debbugs@HIDDEN Subject: bug#46982: 28.0.50; after-change-functions in an indirect buffer are not called if the change is done while base buffer is active (and vice versa) Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Jun 2022 02:37:02 +0000 Resent-Message-ID: <handler.46982.B46982.165586537822310 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 46982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ihor Radchenko <yantar92@HIDDEN> Cc: 46982 <at> debbugs.gnu.org, monnier@HIDDEN Received: via spool by 46982-submit <at> debbugs.gnu.org id=B46982.165586537822310 (code B ref 46982); Wed, 22 Jun 2022 02:37:02 +0000 Received: (at 46982) by debbugs.gnu.org; 22 Jun 2022 02:36:18 +0000 Received: from localhost ([127.0.0.1]:33627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o3qE6-0005nl-3M for submit <at> debbugs.gnu.org; Tue, 21 Jun 2022 22:36:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1o3qE4-0005nX-6V for 46982 <at> debbugs.gnu.org; Tue, 21 Jun 2022 22:36:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33026) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1o3qDy-0007AK-M1; Tue, 21 Jun 2022 22:36:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=LHPLUIyFMvISughjwg0K4rdZn1zzBb9o9U+Qch9YeCI=; b=Kz2SOApZO4sA N/dO2P8LligGv5XSsv6mt6LFDtBuJ5VuuH2X/ROvrlMOOtn2eDR5Khqrxa+oDWdlUPboNIHDDfrZx SbqN0UVwyEpO73pxJxe+gqupMqrRCPZ8Xck8pgiaJMiEFNTKN5l/e26uQIW/9tVrXH7beOzOKqFAB jTcwnSmOEh3jRcWEY9jZjyVPz3ZVm+UpK3srVfAGKTYmzVI3vfnIEFe2LtukhwIJWoaY/GJ3e7RQn yn4iIorq0WWx/9+hGOyY/SF+H86hwQsuTa4lkMhmJEV1cnISSMx/9sXeKz5mX4uFXrcJV7JbG+TJ1 GIyTJZq/5emXRbF4/Lf00w==; Received: from [87.69.77.57] (port=1734 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1o3qDy-0003ND-4x; Tue, 21 Jun 2022 22:36:10 -0400 Date: Wed, 22 Jun 2022 05:36:00 +0300 Message-Id: <83letpjugf.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <87sfnxppdq.fsf@localhost> (message from Ihor Radchenko on Wed, 22 Jun 2022 07:29:05 +0800) References: <87h7lnk2by.fsf@localhost> <jwvv8t06mwe.fsf-monnier+emacs@HIDDEN> <83pmj7q20m.fsf@HIDDEN> <jwvh74jxvtw.fsf-monnier+emacs@HIDDEN> <jwvfsjxu5tl.fsf-monnier+emacs@HIDDEN> <87sfnxppdq.fsf@localhost> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Ihor Radchenko <yantar92@HIDDEN> > Cc: Eli Zaretskii <eliz@HIDDEN>, 46982 <at> debbugs.gnu.org > Date: Wed, 22 Jun 2022 07:29:05 +0800 > > Stefan Monnier <monnier@HIDDEN> writes: > > >> It might be a good thing to mention somewhere around > >> `clone-buffer`, yes. I'll see what I can come up with. > > > > Hmm... we don't document `clone-buffer` anywhere that I can see. > > Any suggestion where I could put that kind of info? > > `clone-indirect-buffer' I think. For example, in 19.6 Indirect Buffers > section of the manual. Yes, there, please.
X-Loop: help-debbugs@HIDDEN Subject: bug#46982: 28.0.50; after-change-functions in an indirect buffer are not called if the change is done while base buffer is active (and vice versa) Resent-From: Stefan Monnier <monnier@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Jun 2022 23:53:01 +0000 Resent-Message-ID: <handler.46982.B46982.165594194017709 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 46982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ihor Radchenko <yantar92@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, 46982 <at> debbugs.gnu.org Received: via spool by 46982-submit <at> debbugs.gnu.org id=B46982.165594194017709 (code B ref 46982); Wed, 22 Jun 2022 23:53:01 +0000 Received: (at 46982) by debbugs.gnu.org; 22 Jun 2022 23:52:20 +0000 Received: from localhost ([127.0.0.1]:36860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o4A8y-0004bZ-9A for submit <at> debbugs.gnu.org; Wed, 22 Jun 2022 19:52:20 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:5397) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1o4A8w-0004bM-Ix for 46982 <at> debbugs.gnu.org; Wed, 22 Jun 2022 19:52:19 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 36A32441AF9; Wed, 22 Jun 2022 19:52:13 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id F049E441AF2; Wed, 22 Jun 2022 19:52:11 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1655941931; bh=NF+4YJQcI4wgPN2fQscm5vf69RlmmohFXFhsXw1Lpts=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=KDZeYGsiWucX1JPQ8GjvE8Mti0KSvE2tdfhooEcUmcBUhV1qBJ6Xgqdzn+n9T7/7s n0wMUKVGNtyY1MqnaYj4yaK1meQ1Z7Tgdo7SYD2jcbppE1l0eqy0kkcQ6JcXNMXrMX JAtvXaQ+pH3zJIwMa8OeP8W7r7laSBBhakwNQvSuXVS5FSyS95ni/V5tb+hOk4giB1 tRZkAKNd206b6FzHNp6gmfFSfRgA98/J42onl3jrBGHq/woGukGnga1xUKLURyS46a F9FysGy+vBHPnCNBJTODz2REBR3qlKzTVGcvEMZKgBaRmWNZK/ImN/7DmBx9uu5+9S n1P9M+OchEhjg== Received: from alfajor (196.214.25.93.rev.sfr.net [93.25.214.196]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3141112024D; Wed, 22 Jun 2022 19:52:11 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> Message-ID: <jwv7d58qmsr.fsf-monnier+emacs@HIDDEN> References: <87h7lnk2by.fsf@localhost> <jwvv8t06mwe.fsf-monnier+emacs@HIDDEN> <83pmj7q20m.fsf@HIDDEN> <jwvh74jxvtw.fsf-monnier+emacs@HIDDEN> <jwvfsjxu5tl.fsf-monnier+emacs@HIDDEN> <87sfnxppdq.fsf@localhost> Date: Wed, 22 Jun 2022 19:52:07 -0400 In-Reply-To: <87sfnxppdq.fsf@localhost> (Ihor Radchenko's message of "Wed, 22 Jun 2022 07:29:05 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.239 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) >> Hmm... we don't document `clone-buffer` anywhere that I can see. >> Any suggestion where I could put that kind of info? > `clone-indirect-buffer' I think. Duh! I need more sleep, sorry, Stefan
X-Loop: help-debbugs@HIDDEN Subject: bug#46982: 28.0.50; after-change-functions in an indirect buffer are not called if the change is done while base buffer is active (and vice versa) Resent-From: Stefan Monnier <monnier@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 29 Jun 2022 15:20:01 +0000 Resent-Message-ID: <handler.46982.B46982.165651599524215 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 46982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 46982 <at> debbugs.gnu.org, Ihor Radchenko <yantar92@HIDDEN> Received: via spool by 46982-submit <at> debbugs.gnu.org id=B46982.165651599524215 (code B ref 46982); Wed, 29 Jun 2022 15:20:01 +0000 Received: (at 46982) by debbugs.gnu.org; 29 Jun 2022 15:19:55 +0000 Received: from localhost ([127.0.0.1]:59868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o6ZTu-0006IV-SN for submit <at> debbugs.gnu.org; Wed, 29 Jun 2022 11:19:55 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:12969) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1o6ZTq-0006IB-Sj for 46982 <at> debbugs.gnu.org; Wed, 29 Jun 2022 11:19:53 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id E7AE080625; Wed, 29 Jun 2022 11:19:44 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id E7E37805CE; Wed, 29 Jun 2022 11:19:42 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1656515982; bh=MEIKtMc6l4Al+izZPHcbVdxI2722tKPQtfY5D+pwPIM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=b28306vJCG5AsUUffvItXGLcaAE0CuY+3ziD72nlHE8nH9OWIvDg/vjlbb2WeFiI7 7c5IANmZ4uYYny/2lThAiX3ue87iVdQW0PYj0rcqSXC5uV9gldw/tQMxVgXnzEuMuj 9DX81InQBbfIGhYPxZVq0gQtY2xsReCtOoCRjstec652R4red7yrEw89pFZ5iUfB0g 0Xn3dYIDgKHjqJxDdOWI/vx5vLD++CV3zIJ/ojiVyjrF4xYDdIzTbftbdKWcnHypZL +HeWsTC0433IZLXZKgcuTCCpplpS1IU+D1S2AQT/2uUt8OeTVliOS6caNSX+DFL6h6 Xs3LMwnuRu9ug== Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id ACE7E1204B7; Wed, 29 Jun 2022 11:19:42 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> Message-ID: <jwvy1xfpkgr.fsf-monnier+emacs@HIDDEN> References: <87h7lnk2by.fsf@localhost> <jwvv8t06mwe.fsf-monnier+emacs@HIDDEN> <83pmj7q20m.fsf@HIDDEN> <jwvh74jxvtw.fsf-monnier+emacs@HIDDEN> <jwvfsjxu5tl.fsf-monnier+emacs@HIDDEN> <87sfnxppdq.fsf@localhost> <83letpjugf.fsf@HIDDEN> Date: Wed, 29 Jun 2022 11:19:37 -0400 In-Reply-To: <83letpjugf.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 22 Jun 2022 05:36:00 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.200 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) >> >> It might be a good thing to mention somewhere around >> >> `clone-buffer`, yes. I'll see what I can come up with. >> > Hmm... we don't document `clone-buffer` anywhere that I can see. >> > Any suggestion where I could put that kind of info? >> `clone-indirect-buffer' I think. For example, in 19.6 Indirect Buffers >> section of the manual. > Yes, there, please. How does the patch below sound to you? Stefan diff --git a/doc/emacs/buffers.texi b/doc/emacs/buffers.texi index 94e9d2760ec..c07f3990ee8 100644 --- a/doc/emacs/buffers.texi +++ b/doc/emacs/buffers.texi @@ -616,10 +616,11 @@ Indirect Buffers The text of the indirect buffer is always identical to the text of its base buffer; changes made by editing either one are visible immediately -in the other. But in all other respects, the indirect buffer and its +in the other. ``Text'' here includes both the characters and their text +properties. But in all other respects, the indirect buffer and its base buffer are completely separate. They can have different names, different values of point, different narrowing, different markers, -different major modes, and different local variables. +different overlays, different major modes, and different local variables. An indirect buffer cannot visit a file, but its base buffer can. If you try to save the indirect buffer, that actually works by saving the @@ -649,6 +650,14 @@ Indirect Buffers When this hook runs, the newly created indirect buffer is the current buffer. +Note: When a modification is made to the text of a buffer, the +modification hooks are only run in the base buffer, because most of +the functions on those hooks are not prepared to work correctly in +indirect buffers. So if you need a modification hook function in an +indirect buffer, you need to manually add that function to the hook +@emph{in the base buffer} and then make the function operate in the +desired indirect buffer. + @node Buffer Convenience @section Convenience Features and Customization of Buffer Handling
X-Loop: help-debbugs@HIDDEN Subject: bug#46982: 28.0.50; after-change-functions in an indirect buffer are not called if the change is done while base buffer is active (and vice versa) Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 29 Jun 2022 16:09:02 +0000 Resent-Message-ID: <handler.46982.B46982.165651891329543 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 46982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier <monnier@HIDDEN> Cc: 46982 <at> debbugs.gnu.org, yantar92@HIDDEN Received: via spool by 46982-submit <at> debbugs.gnu.org id=B46982.165651891329543 (code B ref 46982); Wed, 29 Jun 2022 16:09:02 +0000 Received: (at 46982) by debbugs.gnu.org; 29 Jun 2022 16:08:33 +0000 Received: from localhost ([127.0.0.1]:60008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o6aEy-0007gR-Lu for submit <at> debbugs.gnu.org; Wed, 29 Jun 2022 12:08:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1o6aEw-0007gC-Uj for 46982 <at> debbugs.gnu.org; Wed, 29 Jun 2022 12:08:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:32776) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1o6aEq-0008IS-WD; Wed, 29 Jun 2022 12:08:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ty7GCC5IJhqXeAlNghMG5dANsbbNCy0td7MSYCBP83s=; b=I/KJzl2CYpeC 1Aj00+T9v7fBwXcnkNTwgRBg5GLkPLvF4mBKp13h0wEzgwWWGDBDk9iUpxIyArNrSRSsffckUjJvZ X2jRXxQ64eNgfrar1dDbLNhpswWRb+WldPBjNweldqFyEPiwg8ncRHDhMs10A19bRox9GLHDBWwEK OT9cuPLM5fh4V2vGOvsz+1EkTXaxAVBj1ZxeX/MkzEREYmDtPjol/cbYsktTiey76kFi+f6eMw83s I3agKs1rHhqPr5d7iQB4b9qjxvNkpEVjfc2GKgASRMjP4E087Bm61U6CIrsEoGY0XkgOjYhrwz96o rz3Z+3DmnDwtq4kg+zp6iQ==; Received: from [87.69.77.57] (port=2548 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1o6aEq-00082m-Fs; Wed, 29 Jun 2022 12:08:24 -0400 Date: Wed, 29 Jun 2022 19:08:30 +0300 Message-Id: <83y1xf5u69.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <jwvy1xfpkgr.fsf-monnier+emacs@HIDDEN> (message from Stefan Monnier on Wed, 29 Jun 2022 11:19:37 -0400) References: <87h7lnk2by.fsf@localhost> <jwvv8t06mwe.fsf-monnier+emacs@HIDDEN> <83pmj7q20m.fsf@HIDDEN> <jwvh74jxvtw.fsf-monnier+emacs@HIDDEN> <jwvfsjxu5tl.fsf-monnier+emacs@HIDDEN> <87sfnxppdq.fsf@localhost> <83letpjugf.fsf@HIDDEN> <jwvy1xfpkgr.fsf-monnier+emacs@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Stefan Monnier <monnier@HIDDEN> > Cc: Ihor Radchenko <yantar92@HIDDEN>, 46982 <at> debbugs.gnu.org > Date: Wed, 29 Jun 2022 11:19:37 -0400 > > >> >> It might be a good thing to mention somewhere around > >> >> `clone-buffer`, yes. I'll see what I can come up with. > >> > Hmm... we don't document `clone-buffer` anywhere that I can see. > >> > Any suggestion where I could put that kind of info? > >> `clone-indirect-buffer' I think. For example, in 19.6 Indirect Buffers > >> section of the manual. > > Yes, there, please. > > How does the patch below sound to you? LGTM, thanks.
X-Loop: help-debbugs@HIDDEN Subject: bug#46982: 28.0.50; after-change-functions in an indirect buffer are not called if the change is done while base buffer is active (and vice versa) Resent-From: Stefan Monnier <monnier@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 29 Jun 2022 17:17:01 +0000 Resent-Message-ID: <handler.46982.B46982.16565229854263 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 46982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 46982 <at> debbugs.gnu.org, yantar92@HIDDEN Received: via spool by 46982-submit <at> debbugs.gnu.org id=B46982.16565229854263 (code B ref 46982); Wed, 29 Jun 2022 17:17:01 +0000 Received: (at 46982) by debbugs.gnu.org; 29 Jun 2022 17:16:25 +0000 Received: from localhost ([127.0.0.1]:60094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o6bIf-00016h-AE for submit <at> debbugs.gnu.org; Wed, 29 Jun 2022 13:16:25 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:33935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1o6bId-00016U-HC for 46982 <at> debbugs.gnu.org; Wed, 29 Jun 2022 13:16:24 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 26962100135; Wed, 29 Jun 2022 13:16:18 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id A1FBA10000D; Wed, 29 Jun 2022 13:16:16 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1656522976; bh=3ocCs5dC0juMbPv05eEW1dp5mDCL2Cy6isdj6DQYfI0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=TelLBGCmAaNZtpfdwZU5qnz6mr6YwojNJ/nSrOag167EMKY2Yh7eZCJcn56cWpcSa MIDVc7WP1FdJ0NxwnPIwwnMwqosIuHTZawIUiO/wlJIl/OyVsykqS68hR2CoGjZfFC BFG6jOEZCgPYMs97R69pfPQ+T94Pjp/Rdbzpy0WtCp1p5e2o4VsZqHD4iRUIc4A1db DDXdX8zM/l2NjQJID3o+c2McZmMEY99NS0DcOUsHsZ9SjAdIDYIS3oGOChmkUvE++g VOkcVYzyf/nKoZ0GNXSuBWqDjUJq6pkwNy7f10uOrHQpsekUjTNUwLGik4j1RahsLB fW2blrKqb6b2A== Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 69F15120192; Wed, 29 Jun 2022 13:16:16 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> Message-ID: <jwvh743pf0y.fsf-monnier+emacs@HIDDEN> References: <87h7lnk2by.fsf@localhost> <jwvv8t06mwe.fsf-monnier+emacs@HIDDEN> <83pmj7q20m.fsf@HIDDEN> <jwvh74jxvtw.fsf-monnier+emacs@HIDDEN> <jwvfsjxu5tl.fsf-monnier+emacs@HIDDEN> <87sfnxppdq.fsf@localhost> <83letpjugf.fsf@HIDDEN> <jwvy1xfpkgr.fsf-monnier+emacs@HIDDEN> <83y1xf5u69.fsf@HIDDEN> Date: Wed, 29 Jun 2022 13:16:15 -0400 In-Reply-To: <83y1xf5u69.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 29 Jun 2022 19:08:30 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.180 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) >> How does the patch below sound to you? > LGTM, thanks. IIUC 28.2 is super-near so I assume I should only push this to `master`, right? Or should I wait for 28.2 and then push to `emacs-28`? Stefan
X-Loop: help-debbugs@HIDDEN Subject: bug#46982: 28.0.50; after-change-functions in an indirect buffer are not called if the change is done while base buffer is active (and vice versa) Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 29 Jun 2022 17:31:02 +0000 Resent-Message-ID: <handler.46982.B46982.16565238075895 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 46982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier <monnier@HIDDEN> Cc: 46982 <at> debbugs.gnu.org, yantar92@HIDDEN Received: via spool by 46982-submit <at> debbugs.gnu.org id=B46982.16565238075895 (code B ref 46982); Wed, 29 Jun 2022 17:31:02 +0000 Received: (at 46982) by debbugs.gnu.org; 29 Jun 2022 17:30:07 +0000 Received: from localhost ([127.0.0.1]:60119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o6bVu-0001Wc-PO for submit <at> debbugs.gnu.org; Wed, 29 Jun 2022 13:30:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1o6bVp-0001SE-GW for 46982 <at> debbugs.gnu.org; Wed, 29 Jun 2022 13:30:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34278) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1o6bVk-0004JU-47; Wed, 29 Jun 2022 13:29:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=tF8Al1bAzrjZvcbwa0iv6+wloZuHw/7GSnICAlFWbIg=; b=H+X89VxjJ7hw nwYY//G5kwDa+oP53sqjcikzBALKaGSi+WL54LxBzQdbkciS24HgKtDHyNf+5uMQ7e4v8cDNideEI XjyzEs/Y0LZOV2Cb0pYcyLH29Iq1mjsD/Hc8zeusEc3h7FOEL6+S7/Zq01opO5sbkN9xcBrDd8snl P2Ubm9usfJjvJOZ0KwOcudBMq19KUb1NNDRiNZqlWFvZ3RT2wS/DowvqGVWH0vErIdkEVtyMkWM27 WF2a2A8vQ/QKV8HpVtYi3LCaO6z42CKWd+O9NtJcMbpOPvHmCgMIn002J4ZOmAHrmfMcxUdpCjV1O oQaCIgN7U5BbO59fwATCBg==; Received: from [87.69.77.57] (port=3563 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1o6bVj-0005Xf-Er; Wed, 29 Jun 2022 13:29:55 -0400 Date: Wed, 29 Jun 2022 20:30:02 +0300 Message-Id: <83sfnn5qed.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <jwvh743pf0y.fsf-monnier+emacs@HIDDEN> (message from Stefan Monnier on Wed, 29 Jun 2022 13:16:15 -0400) References: <87h7lnk2by.fsf@localhost> <jwvv8t06mwe.fsf-monnier+emacs@HIDDEN> <83pmj7q20m.fsf@HIDDEN> <jwvh74jxvtw.fsf-monnier+emacs@HIDDEN> <jwvfsjxu5tl.fsf-monnier+emacs@HIDDEN> <87sfnxppdq.fsf@localhost> <83letpjugf.fsf@HIDDEN> <jwvy1xfpkgr.fsf-monnier+emacs@HIDDEN> <83y1xf5u69.fsf@HIDDEN> <jwvh743pf0y.fsf-monnier+emacs@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Stefan Monnier <monnier@HIDDEN> > Cc: yantar92@HIDDEN, 46982 <at> debbugs.gnu.org > Date: Wed, 29 Jun 2022 13:16:15 -0400 > > >> How does the patch below sound to you? > > LGTM, thanks. > > IIUC 28.2 is super-near so I assume I should only push this to > `master`, right? Or should I wait for 28.2 and then push to `emacs-28`? You can install on the emacs-28 branch now.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.