From unknown Wed Jun 25 09:07:29 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#11478 <11478@debbugs.gnu.org> To: bug#11478 <11478@debbugs.gnu.org> Subject: Status: 23.1; In ediff-mode, which-func does not update the mode lines. Reply-To: bug#11478 <11478@debbugs.gnu.org> Date: Wed, 25 Jun 2025 16:07:29 +0000 retitle 11478 23.1; In ediff-mode, which-func does not update the mode line= s. reassign 11478 emacs submitter 11478 Jack Duthen severity 11478 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue May 15 11:10:43 2012 Received: (at submit) by debbugs.gnu.org; 15 May 2012 15:10:43 +0000 Received: from localhost ([127.0.0.1]:56193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUJOc-0005SG-Qm for submit@debbugs.gnu.org; Tue, 15 May 2012 11:10:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56327) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUJOa-0005S3-3j for submit@debbugs.gnu.org; Tue, 15 May 2012 11:10:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUJOK-00081G-30 for submit@debbugs.gnu.org; Tue, 15 May 2012 11:10:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:53093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUJOJ-00081A-T0 for submit@debbugs.gnu.org; Tue, 15 May 2012 11:10:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUJOC-0006Ay-Bu for bug-gnu-emacs@gnu.org; Tue, 15 May 2012 11:10:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUJO8-0007xw-Db for bug-gnu-emacs@gnu.org; Tue, 15 May 2012 11:10:15 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:54317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUJO8-0007ws-4U for bug-gnu-emacs@gnu.org; Tue, 15 May 2012 11:10:12 -0400 Received: by obbwd18 with SMTP id wd18so11233625obb.0 for ; Tue, 15 May 2012 08:10:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=JS1flNwjqgILueFswdHoDwS8pQAYbTlM3llKfu58Ylw=; b=CrhOlmbdFGwjgF4XAAoIaupnnlNbDOqkWFZflM2FqOs+rENen6OZarIpLSy3ggReL6 opWFPS3P9FdKnxo6gjKRtoNglyM2kZow4OeKTbD5uLNhbhey8+1Jhg5L9Texs0V8Oypl czHF79+1e412LCCF9oJ2vrLUF8RZDMvmMiHe8Yqftq0SNFH4nv6vaOu3r9EnYxHmxcTo CVXu4p/0y0TfSFp+D6S1dUxhmcghujofIjXqzshjVknCA/o9ub7eE1WE/foZAJvqNTmu CjbB3nNWS+eQXReo/L5qaP5aCJBFdecCCya2V7yYnO9zuW1/GtPbI540fRDMzLjAmKOO u6IQ== Received: by 10.182.18.136 with SMTP id w8mr18127451obd.38.1337094610363; Tue, 15 May 2012 08:10:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.182.99 with HTTP; Tue, 15 May 2012 08:09:49 -0700 (PDT) From: Jack Duthen Date: Tue, 15 May 2012 17:09:49 +0200 X-Google-Sender-Auth: w6NNHxMRJZkJ7TxAHcvFyt_bRf4 Message-ID: Subject: 23.1; In ediff-mode, which-func does not update the mode lines. To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) --text follows this line-- Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Hi! I'm still again using "which-func" and always find it very convenient! I often compare files with "ediff" and I noticed that, in ediff-mode, the keys ' ' 'DEL' 'j' change the point of buffers A B C but the "which-func" part of their mode-line is not updated because "which-func-update" updates only the "selected-window". I first tried to change "which-func-update" using the commented line (with "walk-windows") or my function "which-func-update-ediff-windows" (see below). It worked correctly but refreshed the modeline only after a second (the delay of the which-func-update-timer). So, I found it more appropriate to use the "ediff-select-hook" and added the following code (anywhere in "which-func.el"): (defun which-func-update-ediff-windows () "Update the Which-Function mode display for the ediff'ed windows." (when (eq major-mode 'ediff-mode) ;; In ediff-mode, the selected window is the "*Ediff Control Panel*"! ;; We should also update the other windows. (when ediff-window-A (which-func-update-1 ediff-window-A)) (when ediff-window-B (which-func-update-1 ediff-window-B)) (when ediff-window-C (which-func-update-1 ediff-window-C)))) (add-hook 'ediff-select-hook 'which-func-update-ediff-windows) As I'm not familiar with patches, could you fix it, please? )jack( If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.1/etc/DEBUG for instructions. In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0) of 2011-03-04 on roseapple, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10900000 configured using `configure '--build=i686-linux-gnu' '--host=i686-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i686-linux-gnu' 'host_alias=i686-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fr_FR.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t eldoc-mode: t which-function-mode: t show-paren-mode: t recentf-mode: t desktop-save-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: (only . t) Recent input: C-v C-u C-v C-u C-v C-x b M-x b u r r C-x b j M-p C-s C-w C-w C-w C-w C-x o C-s C-s C-s C-s C-w C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-u C-u M-v C-h f M-w M-: C-y C-x C-e C-x C-e C-x b C-x b j M-p M-d e x p l o r e M-f M-f u s i n g SPC h e l p C-x C-s C-p - - - - - C-x C-s C-h f M-w C-v C-v C-v C-v C-v M-: C-y C-u M-v C-u M-v M-: M-p C-x o C-x C-g M-x M-p C-x o q C-M-x C-M-b C-M-SPC M-w C-x o M-: C-y M-: M-p C-e C-b C-M-b C-b C-k ( ) ) C-s C-w C-x o C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-a Recent messages: uncompressing add-log.el.gz...done Note: file is write protected jd-test-which-func-cleanup-function Mark set jd-test-which-func-cleanup-function Type of fun-name '(which-function)' is cons Type of (car fun-name) 'which-function' is string nil Mark saved where search started [2 times] /usr/bin/mail is not an executable. Setting mail-interactive to t. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 03 07:13:25 2012 Received: (at 11478) by debbugs.gnu.org; 3 Jun 2012 11:13:25 +0000 Received: from localhost ([127.0.0.1]:55331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sb8kO-0003i9-U7 for submit@debbugs.gnu.org; Sun, 03 Jun 2012 07:13:25 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:40563 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sb8kL-0003i0-KL for 11478@debbugs.gnu.org; Sun, 03 Jun 2012 07:13:22 -0400 Received: from cm162.gamma80.maxonline.com.sg ([202.156.80.162]:42161 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Sb8iW-0003pI-Hg; Sun, 03 Jun 2012 07:11:29 -0400 From: Chong Yidong To: Jack Duthen Subject: Re: bug#11478: 23.1; In ediff-mode, which-func does not update the mode lines. References: Date: Sun, 03 Jun 2012 19:11:21 +0800 In-Reply-To: (Jack Duthen's message of "Tue, 15 May 2012 17:09:49 +0200") Message-ID: <87wr3ofy5i.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 11478 Cc: 11478@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Jack Duthen writes: > So, I found it more appropriate to use the "ediff-select-hook" > and added the following code (anywhere in "which-func.el") Looks good; I've committed this code to trunk. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 03 07:13:31 2012 Received: (at control) by debbugs.gnu.org; 3 Jun 2012 11:13:31 +0000 Received: from localhost ([127.0.0.1]:55334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sb8kU-0003iP-8e for submit@debbugs.gnu.org; Sun, 03 Jun 2012 07:13:31 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:40565 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sb8kS-0003iI-Nl for control@debbugs.gnu.org; Sun, 03 Jun 2012 07:13:29 -0400 Received: from cm162.gamma80.maxonline.com.sg ([202.156.80.162]:42162 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Sb8ie-0003pb-Kq for control@debbugs.gnu.org; Sun, 03 Jun 2012 07:11:37 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 11478 Date: Sun, 03 Jun 2012 19:11:32 +0800 Message-ID: <87d35gwsyj.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) close 11478 thanks From unknown Wed Jun 25 09:07:29 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 01 Jul 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator