From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: What make the modeline update the major mode entry? Date: Fri, 26 Mar 2010 23:46:44 -0700 Message-ID: References: <249A18CA20684635BC645744585ADD17@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1269672454 24575 80.91.229.12 (27 Mar 2010 06:47:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 27 Mar 2010 06:47:34 +0000 (UTC) To: "'Lennart Borgman'" , "'Emacs-Devel devel'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 27 07:47:29 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NvPnf-0002Oz-2T for ged-emacs-devel@m.gmane.org; Sat, 27 Mar 2010 07:47:15 +0100 Original-Received: from localhost ([127.0.0.1]:46285 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvPne-0003Mi-F4 for ged-emacs-devel@m.gmane.org; Sat, 27 Mar 2010 02:47:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvPnZ-0003Ll-Lx for emacs-devel@gnu.org; Sat, 27 Mar 2010 02:47:09 -0400 Original-Received: from [140.186.70.92] (port=57235 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvPnX-0003Jl-17 for emacs-devel@gnu.org; Sat, 27 Mar 2010 02:47:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvPnV-0005qU-QW for emacs-devel@gnu.org; Sat, 27 Mar 2010 02:47:06 -0400 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:41407) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvPnV-0005qQ-K4 for emacs-devel@gnu.org; Sat, 27 Mar 2010 02:47:05 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet12.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o2R6l1co001975 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 27 Mar 2010 06:47:03 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o2R6kxhK014400; Sat, 27 Mar 2010 06:47:00 GMT Original-Received: from abhmt017.oracle.com by acsmt353.oracle.com with ESMTP id 121442951269672405; Fri, 26 Mar 2010 23:46:45 -0700 Original-Received: from dradamslap1 (/141.144.73.76) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 26 Mar 2010 23:46:44 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <249A18CA20684635BC645744585ADD17@us.oracle.com> Thread-Index: AcrNVhvB7XU401bwRWGYFhjI46iL7gAIMz0wAABwxDA= X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt354.oracle.com [141.146.40.154] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4BADA9E4.0181:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:122753 Archived-At: > > Can someone please tell me what makes Emacs update the major mode > > entry in the modeline? > > grep for `mode-line-buffer-identification' in the Lisp source > code. You'll see plenty of hits like `dired-mode' and `info.el' > - places where the variable is set. Those locations set the format, but they do not update the display. Depending on what you meant, you might also want to look for `mode_line_format' and `display_mode_line' in `xdisp.c'. That seems to be where the actual displaying takes place.