From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#23026: 25.0.92; menu-bar bug? Date: Thu, 17 Mar 2016 11:26:12 +0800 Message-ID: References: <83y49ia0z4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458185246 23813 80.91.229.3 (17 Mar 2016 03:27:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Mar 2016 03:27:26 +0000 (UTC) Cc: 23026-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 17 04:27:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1agOag-0006n3-67 for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Mar 2016 04:27:14 +0100 Original-Received: from localhost ([::1]:60136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agOae-0000Gs-RP for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Mar 2016 23:27:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agOaa-0000Gl-Q0 for bug-gnu-emacs@gnu.org; Wed, 16 Mar 2016 23:27:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agOaU-0007F0-D0 for bug-gnu-emacs@gnu.org; Wed, 16 Mar 2016 23:27:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agOaU-0007El-9f for bug-gnu-emacs@gnu.org; Wed, 16 Mar 2016 23:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1agOaU-0005a2-5j for bug-gnu-emacs@gnu.org; Wed, 16 Mar 2016 23:27:02 -0400 In-Reply-To: Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Mar 2016 03:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 23026 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 23026@debbugs.gnu.org, sdl.web@gmail.com, sdl.web@gmail.com Original-Received: via spool by 23026-done@debbugs.gnu.org id=D23026.145818519021404 (code D ref 23026); Thu, 17 Mar 2016 03:27:01 +0000 Original-Received: (at 23026-done) by debbugs.gnu.org; 17 Mar 2016 03:26:30 +0000 Original-Received: from localhost ([127.0.0.1]:50579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agOZx-0005ZA-ND for submit@debbugs.gnu.org; Wed, 16 Mar 2016 23:26:29 -0400 Original-Received: from mail-wm0-f51.google.com ([74.125.82.51]:38230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agOZw-0005Yx-6I for 23026-done@debbugs.gnu.org; Wed, 16 Mar 2016 23:26:28 -0400 Original-Received: by mail-wm0-f51.google.com with SMTP id l68so98499124wml.1 for <23026-done@debbugs.gnu.org>; Wed, 16 Mar 2016 20:26:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:message-id:mime-version; bh=PhPjtROai+AG5TCkYISSLDp4g8RNa3LWJNFSuTfSNBY=; b=XT8G/zAakbn+AVfwAh4lhqArLt+jlJVqs6FRH+wvX3NfImjMkhY2Q6OZxOtGI6bSJn Jq+gW3inoQrKq9QXQUqWi7zxSQuraWU5QIfm2UzprWdjJ2o0P2QFnnF55jM0oMDOJocs gv8i9RRF4fZeKWJhr3ByMTfGsTTAVp4aOalGA6aWvKzUHa1Cn/DCRaU3DVJ8QrtgnIfk 5mByn9AjhslV5aW5UlzOP+Ox2lLKqOoA4Ni8JQOL4viFPRR5SEk7u/+yxrRhNUw1gULp 0YsDg+KytJoUN+gKVu2vEPrbQ3MCGvlnxvQH5ExPFjCoOqUFVW+2piC39HZ2kKBL9z0M jJbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:face:date :message-id:mime-version; bh=PhPjtROai+AG5TCkYISSLDp4g8RNa3LWJNFSuTfSNBY=; b=MGemRuYhWCGgUkrxwhXa4m3NVjZ4VzbHoR55vWILEaJ/EUBtSrna4Cj00Q1Li2XdAn URpruSn1WpJQQQrpvBUBdMV9wMtudwxfx8xa042voJKR6KJWbbFStyi4NPrMwyknEs7U xHBSGRou2J0LVlP4C+AUBT+75OgpWX+JVt6bActmA2KvwZMfpWWzJMRF6/e0TVsazgiE Jtw5gj/k+Hk13h3AMPHQT9uKi72HMBqP/l9sFs8tG44X3JqJ91spGk57+yCFirR2+HCB 8Ed9V9yUO6vx9964Ywmc0XxRuyd0H7o5h/a0MZGdolJruRz1wXOLmaB5ZutXBbyM8DkV udTg== X-Gm-Message-State: AD7BkJLFv+4mHeVtGiYrA7jvjru1zNww3FvRf7vGGcjGmqpbZsU0fHoX9/aNsEDeAq3oUA== X-Received: by 10.194.184.139 with SMTP id eu11mr8068619wjc.169.1458185182053; Wed, 16 Mar 2016 20:26:22 -0700 (PDT) Original-Received: from Zeuss-MacBook.local ([46.101.90.246]) by smtp.gmail.com with ESMTPSA id p191sm900006wmb.0.2016.03.16.20.26.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Mar 2016 20:26:21 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAGFBMVEUzRVhbQj4eZqO6SjnT eWpxnMetm5b6/PmidmqrAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1F B9cBBwMLBfKABCMAAAFoSURBVCjPtZI9a8MwEIaFoc7aYDdelQMna0Em3tsSr0XUeE2Q6a22a+v+ fk8fSSBkbDUI6dHpfe9OEvRgiD+ApqKPJgJeB6iUUXWESjUe/ig38AJrhqqvaU2nTIXbNvOQ40fe qdry4kyGoVWsfCQalXpHnJGM01wjWdYbMlXNFdsZDO69m9aqNqxEJqTEgbM5OF7wlEfIoll1Ked4 LbM5X2EdILLokEdmI8z7g5cKED0cuTC930TYhy7ZDekkXVGw/L60TguJePPxcJF48lpsSUWEA/Ju jGFNgJOXc4Hz7TmAdBeu5Ve4AEjOi2/2jfd3cAJZ+IbNrvdjgBZY01b+HTuG3cLws6BJZqVOj/pp T0OqVwx3rFq+QmJwx3loK5JSLEhDIt62+mtC2C+SrAUxEbV6C6v2BRbd6pILBKFpepKZJHgGgrKF sptSUUoczpwg2pQ7ZH1tgs0ou/917mzz6Cs2//C978cv5l07L02orIEAAAAASUVORK5CYII= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114987 Archived-At: On 2016-03-16 17:36 +0200, Eli Zaretskii wrote: > No, it's a redisplay optimization: Emacs doesn't redraw the menu bar > when all that's changed is cursor position. In 99.999% of cases, > cursor motion doesn't require any changes in the menu-bar items, so > redrawing the menu bar after each movement of point would just slow > down cursor motion and cause annoying flickering of the menu bar. > Therefore, we don't do it. I'm not sure I understand what's special > about this use case that we'd want to disable this optimization. > > By contrast, a mouse click potentially activates/deactivates the mark > and extends or removes the region highlight, so many redisplay > optimizations are disabled when we process the click -- it isn't just > moving point. Make sense and thanks for the info. >> How to make the two behave consistently? > > By "consistently" I believe you mean you'd like the menu bar updated > when point moves via keyboard commands, yes? If so, you should force > a more thorough redisplay, e.g. by calling force-mode-line-update, > when point moves in a way that requires a change in the menu bar. How > exactly to do that depends on your real-life use case -- it could be a > post-command-hook, or a special binding in the keymap which you put in > the property, or a function in cursor-sensor-functions property, or > something else. Thanks. Leo