From unknown Sun Jun 15 08:37:10 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#31371 <31371@debbugs.gnu.org> To: bug#31371 <31371@debbugs.gnu.org> Subject: Status: 26.1; [macOS] Menu-bar stops working after search Reply-To: bug#31371 <31371@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:37:10 +0000 retitle 31371 26.1; [macOS] Menu-bar stops working after search reassign 31371 emacs submitter 31371 Nick Helm severity 31371 normal tag 31371 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat May 05 10:16:26 2018 Received: (at submit) by debbugs.gnu.org; 5 May 2018 14:16:26 +0000 Received: from localhost ([127.0.0.1]:50761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fExz8-0000RX-0I for submit@debbugs.gnu.org; Sat, 05 May 2018 10:16:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fExz5-0000RI-58 for submit@debbugs.gnu.org; Sat, 05 May 2018 10:16:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fExyy-0003fo-Fm for submit@debbugs.gnu.org; Sat, 05 May 2018 10:16:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50, RECEIVED_FROM_WINDOWS_HOST,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41618) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fExyy-0003fi-C1 for submit@debbugs.gnu.org; Sat, 05 May 2018 10:16:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fExyw-0004gG-W0 for bug-gnu-emacs@gnu.org; Sat, 05 May 2018 10:16:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fExyr-0003cE-TK for bug-gnu-emacs@gnu.org; Sat, 05 May 2018 10:16:14 -0400 Received: from mail-me1aus01on0119.outbound.protection.outlook.com ([104.47.116.119]:58496 helo=AUS01-ME1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fExyr-0003aF-36 for bug-gnu-emacs@gnu.org; Sat, 05 May 2018 10:16:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenpointcomms.onmicrosoft.com; s=selector1-tenpoint-co-nz; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=P4hP1GY5JGLOFGEir9HwTGL/Vb7PoBG2TjBKbr4SdkQ=; b=EhYux9kHU3eELpYOtJnGYCvPpdzwRonMm/rcLaeszJfTuLFPB+nzqLobD+xAwX8onMPKhdvwwumiv1K1Y5IIRu/E0lfcS1c5/macnLJgOoRYSx3GBfMiFnF6vwhMdHe+urRl8ejnhoFJbAZYbXuwe19/3qyJMbsk8Benxd+Vgv4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=nick@tenpoint.co.nz; Received: from jupiter.local (125.239.171.29) by ME2PR01MB2897.ausprd01.prod.outlook.com (2603:10c6:201:22::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.735.16; Sat, 5 May 2018 14:16:01 +0000 From: Nick Helm To: bug-gnu-emacs@gnu.org Subject: 26.1; Menu-bar stops working after search Date: Sun, 06 May 2018 02:15:57 +1200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [125.239.171.29] X-ClientProxiedBy: SY2PR01CA0011.ausprd01.prod.outlook.com (2603:10c6:1:14::23) To ME2PR01MB2897.ausprd01.prod.outlook.com (2603:10c6:201:22::14) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(7021125)(5600026)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020); SRVR:ME2PR01MB2897; X-Microsoft-Exchange-Diagnostics: 1; ME2PR01MB2897; 3:AtdCf/PE9DReqnPgRqGZGzW+rpW5G5/o+3KmsrelaE+tOakJGltXlSSna8dy+7Ecnfx29JbJxhggKdcwvtKyePWkX99A8gHVHy2eXf25jj/s6a4mZPRtumaxTst7nzJQlaaWXAJQE15LMMVoZL9x0FYLFVmJt6AGDx/xWmfJWyCi0j6JxOUwhN24FfJsJoHvJEFeGG+Kw8dLicmgLdd81zQ+1RujAHPUGrLvudV2GK4t49GVRgX6pQs9lJSKEreH; 25:89p7dxWZ+OrC8bEqpaM7diXfZTlYed81MCCPKTS4xU6P12twRhAf8vk0NkC+EMY8xhBbk6e2tHRBfPolEtO5eZ0koRQtEzhkO3smHUnN8TTe1qGr4Mtil0PBgUXouWJ7t2cufIsQbi68mU2NZj9hIoTI7lLNkMWHjiJUDjaTzJcoV+vsNNnBc8DL2SPqM/JvkwfnUSBaLNU8jxji+mixbZiUfKjUscbdPMWAj9coizCna5Wt7Nzbxn2YOdy/Wkw4KhmcU7QJz9JWOIipcRvDrfRBMDsXA617AQ8DeRTPFAWp4TBr9DpjOTWH1IndQrWVk7Gz+ap+HwY65A5zxHd3zA==; 31:qzINp4vhsTeka44AKYKxPdqTcnpdI5CMaQOBZsLU0SQxgCANUawbebPFVJVoHn503x/FEIi5vdjEe+EiY+IXrK3a494LwxcbNHlKOohiivfQAw02iJJrcu5sTIpM7UH/FZPx5idcg1kp0Ds+ChYyGNBKSorL7hvxn43oY9GEA1rwXowDEwhETN90+GOR18GIGOL0A+ycfbdbdlho35quLHnuH3uHWEa/qcyhSkYiCEU= X-MS-TrafficTypeDiagnostic: ME2PR01MB2897: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(158342451672863)(265634631926514)(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(6041310)(20161123560045)(20161123564045)(20161123562045)(2016111802025)(20161123558120)(6072148)(6043046)(201708071742011); SRVR:ME2PR01MB2897; BCL:0; PCL:0; RULEID:; SRVR:ME2PR01MB2897; X-Microsoft-Exchange-Diagnostics: 1; ME2PR01MB2897; 4:XyyYsUjWtXfpon5clPm6fuep9HOl6baKh7HftKk5foRRf7ARLxZaHOBCfDiDBm1S+byA+ttc+wvw62z8l2slSzmDxAcz3WO99drpGSM+DdrmOJAxmBG9l4VhKMe5sf3hZZP7ARVpTl34Keb8wQP9Vkq6oj0VkHVTyJ5sreuLwABBKidJMrpRyO+PpukAb4XKQESCUr2YdJMLKcOLhWrMlNgx1PEmqhIgpINhyDfeHeC/NcBPHQUXVIv5CBqe5rg6SzbrwjHa5kKi+qSxb/C3mvM3evYZiVBYUQ8s3j9Zaq04sik06cbh4JY+eX+q7UThIblmE4yhVhAtNFswpRzfEpW27bMG7U0EAYRAGtki2ciZl05SJYI17OKtz+6Q0qBx X-Forefront-PRVS: 0663390E1B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(39380400002)(396003)(346002)(376002)(366004)(39830400003)(199004)(189003)(377424004)(7736002)(386003)(6506007)(59450400001)(25786009)(8676002)(2351001)(97736004)(2361001)(86362001)(305945005)(105586002)(956004)(486006)(8746002)(26005)(8936002)(81156014)(81166006)(36756003)(2616005)(476003)(106356001)(5660300001)(6666003)(6916009)(316002)(2486003)(50466002)(58126008)(66066001)(53936002)(45080400002)(186003)(47776003)(74482002)(6512007)(6486002)(52116002)(16526019)(52146003)(478600001)(68736007)(23676004)(551544002)(2906002)(3846002)(6116002); DIR:OUT; SFP:1102; SCL:1; SRVR:ME2PR01MB2897; H:jupiter.local; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: tenpoint.co.nz does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNRTJQUjAxTUIyODk3OzIzOk9GbS9iL0c2U0E2TndHeWFORnhwL1JUNGNS?= =?utf-8?B?bTZKRnFocEFYMmtVT3k1eUsvT1pGMEtub3A3d0M5RXVyRkdteWhtZVZmaDdo?= =?utf-8?B?emN5dFl5bEJjaktaOWJlRkh3end1aWtZbG1OckExREZtWjFoQTUrMm1kaFVP?= =?utf-8?B?V2kxbWlWN1M1ZUxOdVRRUVgrbjlrWWxaSWtuRjhvck5YTGFJMXMzejk1bk1r?= =?utf-8?B?akZ5aklMMlZ6M3I2eVJyaVRiZUFtZ0NhUnZIaEVOQlErVG43U3JTblpWa1Zi?= =?utf-8?B?clFZWkpuWUFPaDZnMDFZRHJmUUVVU0Yvcm9IZWc3TnY0c1RkQUxVZEVFWEo1?= =?utf-8?B?VkR1elVzcEpseG40WXp1SUtVeDA0YldvWkY0emRPcS9DY1ZtbTlzZjRJVWUy?= =?utf-8?B?RTgwd1dGWEU2Skg3UzhGemprS3lScHMwOURuYnhXTThtTnRZcGJXem9KcDRV?= =?utf-8?B?alM1bzQ3Q0ZtZnA4aHZwUmt0ajJvR1pWcXR1M3dxbUZkRjFDdUFYdWovbDdO?= =?utf-8?B?bFIvOTEySGVXdXJYUUZ2SVZXWE5FV05zcUdjQkhNQW16eGFvQXByOEFKWHRC?= =?utf-8?B?blE0dUlWL093Zlh1Q3lYWmNRWVArVWU2MjgzS3o1R2d0VUQ4R2g3VjdCT2RR?= =?utf-8?B?N2xsTm11MnZkekpFK3hxNUxaNjRtM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Y+9MTiN5o21694lGUMJubyNHqPDJIJGw7ICfeAd95URMDqOF2DbWN2mDE+m70=; 24:W6kJ7v78C0RnHjIAa54dAT3Oi7lThNI8RdvsPP+PW0fajAuf2/2uEsRwpnK/pcRDU0a30SajnaUHsPXVhTWMvMF49Q+2Q/NULsfQRg3+oAI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; ME2PR01MB2897; 7:VOVDXlUKm5khu7XY/CdsDnh4emq+EZd89y9c6WqjukdclAvKTpCVhGW164LvM2rLxocLe4RFURalu6dReBFjWF49T8pQgaENNmgO2vqtfMOl1gVy5fU/VaZI8pH25n0EckjLUT24nP0zwpTcxXk//i2bVTfFEAhLHxUBaqai3NToYiCXUnIsOS4aV8DGt+NNIvSdqz6FpsMbhzJgprJKw292pGX0jT/tnU4gKEAJyuquN/Ei1jfluOqtEJ2YkLgT X-MS-Office365-Filtering-Correlation-Id: 5075d252-0a72-44ca-7c14-08d5b292bb5b X-OriginatorOrg: tenpoint.co.nz X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2018 14:16:01.9046 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5075d252-0a72-44ca-7c14-08d5b292bb5b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: ed686f26-19e8-407b-91d0-7364c1c6f5cf X-MS-Exchange-Transport-CrossTenantHeadersStamped: ME2PR01MB2897 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit 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: -5.1 (-----) Emacs menu-bar does not work after a help search on macOS. Emacs -Q Click "Help" in the macOS menu-bar Enter any text in the help search field, e.g. "text" Move the mouse pointer to the right until the help menu disappears Move the mouse pointer back over "Help" Note that the Help menu does not reappear and the mouse does not move correctly (slows down) while moving over the word "Help". Subsequent clicks on the menu-bar do not work as expected either.=20 This can also cause frames not receive focus correctly =E2=80=93 e.g. two f= rames can simultaneously appear to have focus or all frames can be out of focus while Emacs is the foreground app. The latter can give the impression that Emacs has locked up, as no keystrokes reach the frame. It's possible to avoid the problem by hiding the whole system-provided help menu in nsterm.m, but this is obviously not a great solution. In GNU Emacs 26.1 (build 1, x86_64-apple-darwin17.5.0, NS appkit-1561.40 Ve= rsion 10.13.4 (Build 17E202)) of 2018-04-28 built on jupiter.local Windowing system distributor 'Apple', version 10.3.1561 Recent messages: Opening nnimap server on Office365... Opening connection to localhost via shell... Opening connection to localhost...done Opening nnimap server on Office365...done Opening nntp server on Gmane...done 1 new newsgroup has arrived Checking new news... Reading active file via nnnil...done Reading active file via nndraft...done Checking new news...done Configured using: 'configure --with-gnutls=3Dno' Configured features: JPEG NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS THREADS LCMS2 Important settings: value of $LANG: en_NZ.UTF-8 locale-coding-system: utf-8-unix Major mode: Group Minor modes in effect: gnus-undo-mode: t savehist-mode: t global-eldoc-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow gnus-cite sort mail-extr nnir emacsbug sendmail gnus-async gnus-ml disp-table gnus-demon nndraft nnmh cl-extra help-mode utf-7 network-stream nsm auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs starttls nnfolder nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message rmc puny seq byte-opt bytecomp byte-compile cconv format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr wid-edit time dired-x easymenu dired dired-loaddefs pcase savehist easy-mmode iso-transl edmacro kmacro cl-loaddefs cl-lib gv plain-theme time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 292450 17785) (symbols 48 29375 1) (miscs 40 60 366) (strings 32 55165 2991) (string-bytes 1 1653924) (vectors 16 44144) (vector-slots 8 831856 12902) (floats 8 221 584) (intervals 56 272 60) (buffers 992 19)) From debbugs-submit-bounces@debbugs.gnu.org Sun May 06 06:14:22 2018 Received: (at 31371) by debbugs.gnu.org; 6 May 2018 10:14:22 +0000 Received: from localhost ([127.0.0.1]:51007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fFGgQ-0006g7-1W for submit@debbugs.gnu.org; Sun, 06 May 2018 06:14:22 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:34459) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fFGgO-0006fv-2F for 31371@debbugs.gnu.org; Sun, 06 May 2018 06:14:20 -0400 Received: by mail-wm0-f41.google.com with SMTP id a137-v6so12139875wme.1 for <31371@debbugs.gnu.org>; Sun, 06 May 2018 03:14:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=AIFj2pacl8wmk89UsEd0nU8O32Jbj1dXECPmIVsuJ34=; b=bCTK/E/EAUZSNEwl8BobDn/FgeOS97WmCa0ycztLmDUJU+3vFPaJ4PxLkkGYCX0I2M hZD7H9G4pvIYEaOnqCXCnHpCIWaWD3sm2oznSiCQvhPcfZdUEe5kDgsFhHjz4dSRBdWo VFECm9kcNS0wH0kM4OWC+0oXnz8LGj6ZHvu2xVaOC3nGiIesqG0ymIqk5DV0MYuUVLme 8ZiKf0Kz2pqsdyycW3znai7c9+iS06JQNG+AKD4crVZrn392Ljzmh7N4Q3+PY4ZKYijf LQQjv2Ih+3xNQ/L3QTWoZgcOog/dZfeRPp2pzBAn0vyBJVIZMf9Zhl5Kgm9sJpv+chRU pepw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=AIFj2pacl8wmk89UsEd0nU8O32Jbj1dXECPmIVsuJ34=; b=VT6axK9ZtDSaZSCIB4Z+2mW+2khikUcTJPo7CpIgQHRaQkmFBpPmeCGuh3zS2q9IJj csVp1fKORHXgdD2QxuXiSrT4d8kcIwnJPaIFl/BdrM5md/TeajzWbWMErgS3IFvEUX1X FBPHmRxmmJ9RP6eiX4aHSRDq0YA6rqbnCCq21YAqHpTz6tNBumbQ/cOAP4rMl+ruIyaA LIJ6tgcXS1EOVKLXCGcSi7fD5wJF2b/tCKRDRL/LoM05SOrbld2Re3gt/0uLPMonLj34 vw5qOE6EJftXSlq+JdDtmbiogVNom+9irBycntYZZsHulgmiya4wJzaqYs85kXJHxImh zMEQ== X-Gm-Message-State: ALQs6tBJhYN4fEJ+xD9VyFeebcdNZro7A9Z36g7v9yOa8ZI3pzW9hc0a acr3uytchWaXapubIyYV90caVATx X-Google-Smtp-Source: AB8JxZo39eEX+aaglZa/IOE5LEr9d/Cj4Sgmo2K6oubjPuBabs0u/9sfvQ0YTg4frtpOsUCIv7a0Eg== X-Received: by 10.28.143.143 with SMTP id r137mr20100482wmd.103.1525601654185; Sun, 06 May 2018 03:14:14 -0700 (PDT) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-3cf5-1d49-5bd6-bd96.holly.idiocy.org. [2001:8b0:3f8:8129:3cf5:1d49:5bd6:bd96]) by smtp.gmail.com with ESMTPSA id 69-v6sm6732607wmi.29.2018.05.06.03.14.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 May 2018 03:14:13 -0700 (PDT) Date: Sun, 6 May 2018 11:14:11 +0100 From: Alan Third To: Nick Helm Subject: Re: bug#31371: 26.1; Menu-bar stops working after search Message-ID: <20180506101411.GA3327@breton.holly.idiocy.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 31371 Cc: 31371@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: -0.5 (/) On Sun, May 06, 2018 at 02:15:57AM +1200, Nick Helm wrote: > > Emacs menu-bar does not work after a help search on macOS. > > Emacs -Q > Click "Help" in the macOS menu-bar > Enter any text in the help search field, e.g. "text" > Move the mouse pointer to the right until the help menu disappears > Move the mouse pointer back over "Help" > > Note that the Help menu does not reappear and the mouse does not move > correctly (slows down) while moving over the word "Help". Subsequent > clicks on the menu-bar do not work as expected either. Looks like it goes into some sort of infinite loop calling ns_update_menubar. If you go to the left so it opens some non‐help menu, then go back to help it works fine (I think). The menu code seems pretty horrible to me, so this may take some time... -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Sun May 06 22:48:33 2018 Received: (at 31371) by debbugs.gnu.org; 7 May 2018 02:48:33 +0000 Received: from localhost ([127.0.0.1]:51853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fFWCW-0007jE-B5 for submit@debbugs.gnu.org; Sun, 06 May 2018 22:48:33 -0400 Received: from mail-sy3aus01on0111.outbound.protection.outlook.com ([104.47.117.111]:32496 helo=AUS01-SY3-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fFWCT-0007iz-CH for 31371@debbugs.gnu.org; Sun, 06 May 2018 22:48:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenpointcomms.onmicrosoft.com; s=selector1-tenpoint-co-nz; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/sJHsSa+MJ1me5N7nM382PkecGw7k0IV3/oBZ+oWFTE=; b=vCUZMv/XNLNKgcRpEK1rBA10IQjqQCfxW5V1V8qiVCeUdCuvmUQqbepy+f1HrqR9OOEkXfGbBA26WtmeWwGIGrhQvoGkpJDDurutBcIElu9dATfEY1hzRXLPcIcIHfc9oemY1c37McCNEGtaVvdEObE/c7zGH4JsOiPDODzC8xM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=nick@tenpoint.co.nz; Received: from oberon.local (125.239.171.29) by SY2PR01MB2907.ausprd01.prod.outlook.com (2603:10c6:1:1e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.17; Mon, 7 May 2018 02:48:20 +0000 From: Nick Helm To: Alan Third Subject: Re: bug#31371: 26.1; Menu-bar stops working after search References: <20180506101411.GA3327@breton.holly.idiocy.org> Date: Mon, 07 May 2018 14:48:16 +1200 In-Reply-To: <20180506101411.GA3327@breton.holly.idiocy.org> (Alan Third's message of "Sun, 6 May 2018 11:14:11 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [125.239.171.29] X-ClientProxiedBy: SY2PR01CA0016.ausprd01.prod.outlook.com (2603:10c6:1:14::28) To SY2PR01MB2907.ausprd01.prod.outlook.com (2603:10c6:1:1e::20) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(7021125)(5600026)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020); SRVR:SY2PR01MB2907; X-Microsoft-Exchange-Diagnostics: 1; SY2PR01MB2907; 3:8xP8UAzw5WC5sKJkSb8smfRTFwzmOiE1VQ6I0TEsvJ3HGkrquglNHoqQUXjvPFWtr8UOgN+0q+kO3bnt1Hlupk4zX3i6x1263imw6PNtYa1Z7XGLNpkwtmvVLB5iYrrHFG1J0XTWkdcaeIV7OQwsa0f5WO9/T82OFMgQKOD2rsNgOe/7knIdaXzC1ZZXAbbI50wsnxLm0RkWfHY3RgoBj5IdjuAI2t6c86m1RIolh7pe2Nn90eyGXVJIPXXRdWi+; 25:DTai4DMMwFcrjZBUMBKs+6c4K5s2IcW/kW/xFmOmrEx4NelL7T/+83K3l+v26QoIw17i7na99nqpKDgWs+gYjHXxamnfwNdmChTkTivtp1us+btUmLVCNqKgpLwVfQ7DHeZia834DWt7RwtaqOfgWucZW78tgNC8YqKuOl+fAeqZUbV42ji+fjRQghs18wuNzbn+9P9lZLK++cU+vM/wiXjLWXkHcH3dJXn8o412eDCgE/Qs156xbEiEkT+C675u/cpohVVtThujkIFe4cap7RcVwqGRbFuPyFiCcZ91wsAqE+pyKRuL1gL8okblGRp/2Vi2jDOkf3/c5MTRE3qSbw==; 31:jeS0S1nF8vhgVE+tETf5gp3uovSqmTDxHOLlK5M26RUvrxbCPZDX1xUaqvzH5Fd+D3WL83lWkHpfQkQQEwcP0yz4lsKJqclmgGgyQQYpHT8yrQYcIMh8xJBnKXj35A7sCdZiYToxR+PPocJFp/SvBUqP9vSxn4a/Pl+hXD+CcyRK/4HewJb/nOmi/zfpYpkbdTK5SQ/WIYiJEMchOwRE/S4jZgNvW8uBWv/0GnyVYiY= X-MS-TrafficTypeDiagnostic: SY2PR01MB2907: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 0 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(149026)(6041310)(20161123564045)(20161123558120)(2016111802025)(20161123560045)(20161123562045)(6043046)(6072148)(201708071742011); SRVR:SY2PR01MB2907; BCL:0; PCL:0; RULEID:; SRVR:SY2PR01MB2907; X-Microsoft-Exchange-Diagnostics: 1; SY2PR01MB2907; 4:CpKMY4rDVpG226XfTLVobliXxrMhBFdJ3iPhMQcXvYaeWAC4sCJUIayoq1YA5fXEnLlemwufqwtTg9p8YX3lyJ/OlfSRX6KOIfkvul3Vbph80PNsftXV9Ca4PIE3evPOOHilvTFObzxSopgob20uvPpW7AItMHc+iVUmM0lhBsFj9WD7aml22PFFus8mXk+3HeckLw9mmo7qVB1KxX8XKswd9ray0UCnbbMp88z45S+ufz2W54ycyNK+FcI83al6X0jGlhGH4tvPpS3CmUvbgQ== X-Forefront-PRVS: 066517B35B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(39380400002)(376002)(396003)(346002)(366004)(39830400003)(199004)(189003)(51444003)(76176011)(16526019)(229853002)(74482002)(6486002)(36756003)(6246003)(106356001)(6512007)(26005)(105586002)(6916009)(6666003)(97736004)(53936002)(186003)(52116002)(2486003)(52146003)(23676004)(50466002)(66066001)(47776003)(476003)(59450400001)(6506007)(305945005)(386003)(81156014)(8676002)(81166006)(8936002)(8746002)(478600001)(68736007)(4326008)(5660300001)(2906002)(7736002)(316002)(58126008)(446003)(11346002)(486006)(956004)(86362001)(3846002)(6116002)(2616005)(25786009); DIR:OUT; SFP:1102; SCL:1; SRVR:SY2PR01MB2907; H:oberon.local; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:3; Received-SPF: None (protection.outlook.com: tenpoint.co.nz does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTWTJQUjAxTUIyOTA3OzIzOmM4MXZzUTNrdVVvR0dMRm16U001aWtodlRp?= =?utf-8?B?RVFQbVhxWjhsQVRmTThHNS9LZEw2NVI3WWZudEtGVy9NUlBHUktxc2F6MXps?= =?utf-8?B?eTkwbnhZYXBmaDJPN1l3QlJOL0w4RDdQcjJhTXpVbml0anU0N3hVZEdmMkZI?= =?utf-8?B?dlFkQWtybzZGdkhUOGc4eU8ybzc5TjRaMDA5TWdQSmMvaXYvR1pPQllsUDJi?= =?utf-8?B?ejBTdVFZOHVMQTFLUDg2dHNhNWRPQWhVWnQ0N2huWk10SDNSOFN5bTVoY3Mw?= =?utf-8?B?OXMyRk5UL1BGOHg2TWJvRTh2TitlQnlmRytxS1BNQ1FtY2N2Vng5Tmk0RXZD?= =?utf-8?B?TlAzZWZkeGZadGpiTUIyNXRscnhDTWhvbmQrQzhRZnNZc1dhM3E0WEVWclVO?=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e4emAiaqzZ/aHl+hrVI2cr4eslLPAEU0tRIRRNB2ZfkEQxIjreMwvGm+kQTJ/3TWi1N2Qfq7I671NLn7gkakwzz1XRveWpZgt4aikPoIFol6IVv2YakatunH43YiwVS126A5kn1RnHyb6LOz+552hx4eHOoAaVpKKwbkCY+X2G6bMVuBhqoX4TCUbTowhPswzkNf2xoMraqUsH9fbF0OXVEd54iZq9jzytA==; 5:nnitNd31sQyBNhtb3a0fTK+aYC/5j5L/agQwDdCsNFfkhYjn0QdAR2DaUrMN/E7JPo1HYsa/MKCo36/GjEJ/f0YnERrDBOeXqe2N9DSENP5rT0caWg8NLVaUW4YSxCwl5TBUEPeL11LHkX62rHCO7k8ejD64EqODEnQMEKSepx8=; 24:IJf1yzL5l3a5BwcQQn89Olpn1wfy8cJ3X4T4yJfuAka510GeWra05NxC51wQio5K3WuaWdOk74s5PqFQriW/4OWAocTEgs0F3Qg5lHjKcgY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SY2PR01MB2907; 7:LwgaslxT1AW0CF+vtAeEqhmJlAXxARel17aUeaREgaUiPdueyJUGqYTb8my4lM/dGTjuUWxd2Aw9sO7gnfVDA+rCoYXwEYpIp/fSKGys65Zvk8vkN1PGJC/bP3mY16RqlSLRiRkK9oQ5abx5p9ZoYEQJNOhjp2b8kuzQg+kxCC9VusySlGfOFozcgwC2ojz8P23+suqbyrxOCPgnPhfmOpzDKDCPxfILKjEhlRrUqsLV8cpRiJ5t5qjilBkM5+xq X-MS-Office365-Filtering-Correlation-Id: 62855a37-0b8c-4acc-cddb-08d5b3c4fe9f X-OriginatorOrg: tenpoint.co.nz X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2018 02:48:20.7609 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 62855a37-0b8c-4acc-cddb-08d5b3c4fe9f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: ed686f26-19e8-407b-91d0-7364c1c6f5cf X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY2PR01MB2907 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31371 Cc: 31371@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: -1.0 (-) On Sun, 06 May 2018 at 22:14:11 +1200, Alan Third wrote: > On Sun, May 06, 2018 at 02:15:57AM +1200, Nick Helm wrote: >>=20 >> Emacs menu-bar does not work after a help search on macOS. >>=20 >> Note that the Help menu does not reappear and the mouse does not move >> correctly (slows down) while moving over the word "Help". Subsequent >> clicks on the menu-bar do not work as expected either.=20 > > Looks like it goes into some sort of infinite loop calling > ns_update_menubar. If you go to the left so it opens some non=E2=80=90help > menu, then go back to help it works fine (I think). > > The menu code seems pretty horrible to me, so this may take some > time... I had a look as well and I see what you mean, it's a bit of a mess. It's a wild guess, but here's a theory: the problem happens because mainMenu is trying to simultaneously be part NSMenu (Help's spotlight search field and the context help topics) and part EmacsMenu (Help's standard Lisp menu items). When a user clicks on the menu bar, Emacs postpones the event via menu_will_open_state, creates all the EmacsMenu menu items from Lisp and regenerates the mouse click event with a call to ns_check_pending_open_menu in order to actually display the menu. The trouble is, NSMenu doesn't know anything about this. When the user clicks it immediately displays what it thinks is the Help menu (sans the Lisp stuff, which doesn't exist yet). When the EmacsMenu part is ready, it regenerates the click event to display the menu, but NSMenu interprets this as an instruction to hide the menu. This repeats for each dragging mouse event over the menu-bar, hence we have a loop. If this is the case, it should cause problems even by simply opening and closing the Help menu. And I think that's what we're seeing. From Emacs -Q, try opening and closing the Help menu (ignore search), then click between the visible frame and the desktop a few times. After a couple of tries, the frame cannot regain proper focus and the menu-bar doesn't operate at all. I had a fiddle around with a couple of ideas. The first removes the NSMenu parts of the Help menu by creating an empty menu object and using it to override the system's default Help. Unfortunately, this removes the search field and the context topics, but the EmacsMenu menu items then work as expected. I don't think NS Emacs has any Apple Help Book files (the only entries that appear seem to be auto-generated) so this might not be so bad. The search field is really useful for command discovery though. I also tried interrupting the call to ns_check_pending_open_menu in x_activate_menubar. If you comment the call out, the menu sort of works as expected, other than having to initially generate two events (click twice) to get the Lisp menus to appear on each frame (one click works for the appMenu and Help, but they only contain the NSMenu menu items, as expected). I tried to make the call conditional on menu_state or trackingMenu, but I haven't got it working. Maybe I don't understand why a custom menu class is necessary, but I think the right solution is to convert Help from EmacsMenu to NSMenu. And, if we're going to do that, why not convert all of mainMenu and do everything with standard NSMenu and NSMenuItem methods?=20 All of the delayed events and tracking stuff seems over-complicated and unnecessary. What am I missing?=20 From debbugs-submit-bounces@debbugs.gnu.org Tue May 08 01:24:19 2018 Received: (at 31371) by debbugs.gnu.org; 8 May 2018 05:24:19 +0000 Received: from localhost ([127.0.0.1]:53420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fFv6p-0000EP-2H for submit@debbugs.gnu.org; Tue, 08 May 2018 01:24:19 -0400 Received: from mail-me1aus01on0099.outbound.protection.outlook.com ([104.47.116.99]:63189 helo=AUS01-ME1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fFv6m-0000EB-Q9 for 31371@debbugs.gnu.org; Tue, 08 May 2018 01:24:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenpointcomms.onmicrosoft.com; s=selector1-tenpoint-co-nz; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=6uIEa7cJJAGBIGicFf56EphilAByd6iVDZVnX3JqFpM=; b=bsjdre6oBQ0dylki6rHOCXFotamB2eQKL20FeFrTCT5txOwXfNB06EUYpgVrX0gnTYr0jgC81LfTIKNU1mu25BcbLAXgtq7AbIkD07odYwpJXM2fCTCcBc5mI0SnaRNKAWYDPhnoHLow7SUmfB9Vt0ZqkHTDphwL/yuFdiRM30w= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=nick@tenpoint.co.nz; Received: from jupiter.local (125.239.171.29) by MEAPR01MB2903.ausprd01.prod.outlook.com (2603:10c6:201:11::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.17; Tue, 8 May 2018 05:24:08 +0000 From: Nick Helm To: 31371@debbugs.gnu.org Subject: Re: bug#31371: 26.1; Menu-bar stops working after search References: <20180506101411.GA3327@breton.holly.idiocy.org> Date: Tue, 08 May 2018 17:24:04 +1200 In-Reply-To: (Nick Helm's message of "Mon, 07 May 2018 14:48:16 +1200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [125.239.171.29] X-ClientProxiedBy: SY3PR01CA0127.ausprd01.prod.outlook.com (2603:10c6:0:1b::12) To MEAPR01MB2903.ausprd01.prod.outlook.com (2603:10c6:201:11::13) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(7021125)(5600026)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020); SRVR:MEAPR01MB2903; X-Microsoft-Exchange-Diagnostics: 1; MEAPR01MB2903; 3:Iiyu09X2JxyPSIp4q45kq1E3JOiGOSGmMHoFtINOv+ktjYlKtRijqCJPgawFnKXWvKN4B1t0AwUVqbCThfebjwHgo+F0UR3SDA8A1ryDc1pIA7D/qBDkSlEUvXYZoucuqxw8gmfutZTfAPa+KHMU8rjdlnS/FpTR/2kzsnhX+9IzVJEpqhNfiW++ufVhddEfjb8wB+2dtmaRjdHxM8bf8NLqHuDzX/2ijnTR9HxCvYq7QKBu0SRZy3VTLi0295O2; 25:+fG5291uENenbmxHBbVfry3VPXqPhBbU71zH3lPHh7RrxvLVaSIHiyxNDMrdKvWfq+uvyVHXtwNIgHb4R1ubrcmc3p/F81AyejOFgAQ4MdXD+uu2yD3Vi6dKg4Ge4em9nJXuhNV63lomAcWS312zaUdeO4J1q6RH1ioBEJixOA1jKRITdzX7WlohDs5TkXb6BBZmbVEgjrp1OXA4Wm1UpFl0uOKJJGU/nVbxA/k2DQjMW3mXzowwrOtBohjg3ArrPLAH3noe2HRmy/xBz4S4SWHNWOqzaBQMFzsGgqjSoev6hMAky++LQqiCEgjR8DqMuEJj1UShJTFvISutm+M3SA==; 31:oW77Viu8PDbke35aIHnR4iOWOaW1H5N6LdyiNfma6SbYYrSK1ygDJKzlsXfOwwLdMEg/z6E8iUViI+qTmByOfVzHoe+z8k+lz2WSjiHG/em22fri62PY7bPQuON/RenZnEcKzlDXogrW/ab50iHEcNtlF8pvC7MplrVA88G8WCoEaMPeEkemVYQKuCEX88guyUHpsTxdsQRN1wvog6MFRA0IEWMJE9gWqmymlrzUd1o= X-MS-TrafficTypeDiagnostic: MEAPR01MB2903: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123564045)(2016111802025)(20161123558120)(6043046)(6072148)(201708071742011); SRVR:MEAPR01MB2903; BCL:0; PCL:0; RULEID:; SRVR:MEAPR01MB2903; X-Microsoft-Exchange-Diagnostics: 1; MEAPR01MB2903; 4:9CA1d7vflUXu7pCXsTwkzbjaM+2uGehfzanndTiHap24TqpGKMJEFwhkb/ms4FQ+8NzK/B3ue047w7Xs0i8k0UVgM17CgF+J3MTcbOgmvlSG42j1O6IkO47QWNWn7lxNdNcrUYQopFPDqsKvwdfp3fkGzpcWXaw8utg8J8NWaPqTASJHB2uOY7+mtW5is4/6gi85qXyw23QjCUuG+HzKzSZT688p3531HlNwHCaRhDSwsn7qp2Ih8zPtT04aISXFxF2fvG2WKmWsNroTGxPvYw== X-Forefront-PRVS: 0666E15D35 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(346002)(366004)(39380400002)(39830400003)(376002)(396003)(199004)(189003)(229853002)(81166006)(8936002)(53936002)(74482002)(68736007)(8676002)(81156014)(6512007)(6246003)(97736004)(316002)(16586007)(6116002)(2906002)(6486002)(106356001)(105586002)(4326008)(58126008)(3846002)(11346002)(16526019)(5660300001)(186003)(26005)(48376002)(2351001)(305945005)(50466002)(386003)(6506007)(2361001)(52116002)(51416003)(76176011)(86362001)(47776003)(2616005)(446003)(6666003)(956004)(6916009)(476003)(66066001)(36756003)(486006)(478600001)(7736002)(25786009); DIR:OUT; SFP:1102; SCL:1; SRVR:MEAPR01MB2903; H:jupiter.local; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: tenpoint.co.nz does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MEAPR01MB2903; 23:VRwyVBBXz837YjwglofrRIUs3JUFRQk+FMvh0640E?= =?us-ascii?Q?VxQ5UPa3gkYUsq4iWZIG035oahuywiCFtCWtO3u2Hwu2mx7Ja+y0MK9vRR9S?= =?us-ascii?Q?xvSbnBvqZybOKOphEtpYTTAiiwtW1si0xZi1wLO2bQ11GygMB43hKWT+bM5C?= =?us-ascii?Q?fhkFcxzMNTcAY0YC7sIPvD+kDi5VYMLLsoX+/xXiSPfsuHo9YF2RkyfHVl8o?= =?us-ascii?Q?sDtepUQX3nANmLMzPeGFwofsFo88vcmv6HVj+igeSRKU5oUNpA8HCvkswv4C?= =?us-ascii?Q?MZi8FXvFYi4/ynDf61QfXS40Sl5Qn5YtXFOKkegOIvtd2QCiZzvv+Dp6w5SC?= =?us-ascii?Q?R+8XN4JzJtbxCli75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nosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MEAPR01MB2903; 7:EcvQ6V32+i5uwWFHEenhiy+G5aIlOTgMhrnycpFnvNvQ4J/fEkbOtQulm3Elr/3A3umxqRLCanrE34jvYf254zhZhRLqvsBkGJ13aefNKfAvJaNvTHyAmNKMtpmgisHXxm0Ais7jr71tkong3LSd7HP54NCwZ84TTkBT35ymAAMdkVLayBwMJg7TrJTgmsNuO9vDRQTpt63eEqW6BYO0llMPqUd+Tp5ZhziyxPFqS0iW+xmjWUsPsXoPWlAzTc0P X-MS-Office365-Filtering-Correlation-Id: e97a429d-3e5e-4c96-5199-08d5b4a3ecb8 X-OriginatorOrg: tenpoint.co.nz X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2018 05:24:08.4152 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e97a429d-3e5e-4c96-5199-08d5b4a3ecb8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: ed686f26-19e8-407b-91d0-7364c1c6f5cf X-MS-Exchange-Transport-CrossTenantHeadersStamped: MEAPR01MB2903 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31371 Cc: Alan Third 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: -1.0 (-) On Mon, 07 May 2018 at 14:48:16 +1200, Nick Helm wrote: > here's a theory: the problem happens because mainMenu is trying to > simultaneously be part NSMenu (Help's spotlight search field and the > context help topics) and part EmacsMenu (Help's standard Lisp menu > items). On second glance, I don't think this is quite right, at least it's not the whole story. Other apps seem to have a related problem. Open Terminal for example, click on Help, mouse down and click in the Terminal window, then try to type a command. It doesn't work, I just get system beeps. TextEdit is the same. It's like the Help memu isn't returning focus correctly. Maybe it's a bug in macOS making this show up? From debbugs-submit-bounces@debbugs.gnu.org Tue May 08 17:40:34 2018 Received: (at 31371) by debbugs.gnu.org; 8 May 2018 21:40:35 +0000 Received: from localhost ([127.0.0.1]:54583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGALa-00080c-Lh for submit@debbugs.gnu.org; Tue, 08 May 2018 17:40:34 -0400 Received: from mail-wr0-f179.google.com ([209.85.128.179]:38921) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGALZ-00080Q-D7 for 31371@debbugs.gnu.org; Tue, 08 May 2018 17:40:33 -0400 Received: by mail-wr0-f179.google.com with SMTP id q3-v6so33738124wrj.6 for <31371@debbugs.gnu.org>; Tue, 08 May 2018 14:40:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=1xYuFnjg7FBM0d9js+uZvLNAzCa8Z9L2oSw0QeT+/JU=; b=Bx69dtMJWV05nFBDq4fyG/cREtZ0HgXsbwYyK2u5xRXEfD3Re9OckS6gI42XyD/5JZ xTVodLZDJnroTdvZVZs4QySLTysKvavIiL2RvyN8KB67FtlXdTuJB8CQxY+zkAJ+nVDR 3jhkMKbxokSoNdiRKFVwnO5XEwJk/AqGFiZxLRsz8kmZY8ztbFRuylAYuhoesWNzH8Az 59yNsvN755/L9JxvRAwKeqyH1VYPXzWqh5U4ZGTdBvE38+exVDCn0lIQCG2ZarUaTNQK 5YTQZdwVUpjt7qr7X+mevGVS0oNyMCmOxMdFUfDng43P+v0POgz/wx2PCzzxvJWZfPFB mepQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=1xYuFnjg7FBM0d9js+uZvLNAzCa8Z9L2oSw0QeT+/JU=; b=StEp34HkikTyFMoAMm68BmK1dJ4CPkFgJ69rW6k6rGCQyNcBlYYaMD5YhK3K07u2nc jriYldtSe2GASZoUUi+0BpTYyfBH9CfkFOgiYCxWpk1Dg8dLMEwXAYRwu/enaQ1WeuJV eZQZqbrAbaWEI6oR2cTNCCnA/lGspvH70Oc6lTg9tpew5+lVCPXhn3CkxJ91ykH4d1XS m4Jz0arHMcqVFUSdjH1eQfddxKAPsmdk4XjUgM77PiZxCcemO4K61Jfu3+FhRajwDVyX erJlH8YzAwiToEEVJrT0dIjh5OGSpKUgPxE5Qhfn+btmpVyvPT69cAmVVIkmXKQfLfXO mR4Q== X-Gm-Message-State: ALQs6tD7CtoVP+cr3Znd1goR2dCjRB/CmKKt7uw8mF8d/B7n2/I+5+Jq MoyT6Od5dJllaH7bc3wMJ/diWDu0 X-Google-Smtp-Source: AB8JxZoE7YNBdWZaLzeWOZ0lhfIzizTLDG0/cfqTqVAcmf43VOdbVYKKJXpUmsuYwEtHHWhaWpePFg== X-Received: by 2002:adf:c54b:: with SMTP id s11-v6mr32776465wrf.46.1525815627446; Tue, 08 May 2018 14:40:27 -0700 (PDT) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-c8d4-b636-0fc6-fad1.holly.idiocy.org. [2001:8b0:3f8:8129:c8d4:b636:fc6:fad1]) by smtp.gmail.com with ESMTPSA id f143-v6sm144961wme.43.2018.05.08.14.40.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 14:40:26 -0700 (PDT) Date: Tue, 8 May 2018 22:40:24 +0100 From: Alan Third To: Nick Helm Subject: Re: bug#31371: 26.1; Menu-bar stops working after search Message-ID: <20180508214024.GB13768@breton.holly.idiocy.org> References: <20180506101411.GA3327@breton.holly.idiocy.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 31371 Cc: 31371@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: -0.5 (/) On Mon, May 07, 2018 at 02:48:16PM +1200, Nick Helm wrote: > If this is the case, it should cause problems even by simply opening and > closing the Help menu. And I think that's what we're seeing. From > Emacs -Q, try opening and closing the Help menu (ignore search), then > click between the visible frame and the desktop a few times. After a > couple of tries, the frame cannot regain proper focus and the menu-bar > doesn't operate at all. I can’t replicate this. Nor your experiment with textedit in the other email. I definitely see the issue you originally described, though. > All of the delayed events and tracking stuff seems over-complicated and > unnecessary. What am I missing? Apparently it was added because regenerating the menus calls lisp, which is then able to call ns_select, however the code to regenerate the menus is called from within the NS app loop within ns_select, so we end up with the app loop running within the app loop via ns_select. This isn’t allowed. I notice all this code is cocoa only, though. Makes me wonder why GNUstep is different. (The menus on GNUstep Emacs are awful, though, they flicker constantly.) I still don’t understand how this works, because I get the impression from the code that the menus are generated when the user clicks on them, but they clearly change when you switch windows or frame or whatever. So on the one hand it appears they’re updated within the NS app loop as part of a response to the user clicking on the menu, but on the other they’re generated outside the app loop by some lisp function or something. Maybe it’s both, in which case why? Of course, none of this might be relevant to the help menu bug. I’m quite lost at the moment. -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Sun May 13 06:09:24 2018 Received: (at 31371) by debbugs.gnu.org; 13 May 2018 10:09:24 +0000 Received: from localhost ([127.0.0.1]:60198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fHnwS-0006jl-LD for submit@debbugs.gnu.org; Sun, 13 May 2018 06:09:24 -0400 Received: from mail-sy3aus01on0113.outbound.protection.outlook.com ([104.47.117.113]:40822 helo=AUS01-SY3-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fHnwQ-0006jX-3a for 31371@debbugs.gnu.org; Sun, 13 May 2018 06:09:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenpointcomms.onmicrosoft.com; s=selector1-tenpoint-co-nz; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=jaZiEBY7TReM5SZXWDUtZqwXa1VKRw9aaBzJ8xDpmkI=; b=RZROU9QRxwX1mD+UK1oMFzqrBLiDRXGq5Gg9afyUDLDwXoHyJU6c9V0jgX2HOA5o7JEYnWXuQ5fv8XPn8pfRNg/YDtsWVTuvuzwr0OtqF3u+9X50+3xdJqu+kBuUMv/kNilTy0H16l6XqPMyX+4Sk4OjMhQfns2O175loCTYhCI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=nick@tenpoint.co.nz; Received: from jupiter.local (125.239.171.29) by ME2PR01MB2898.ausprd01.prod.outlook.com (2603:10c6:201:22::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Sun, 13 May 2018 10:09:11 +0000 From: Nick Helm To: Alan Third Subject: Re: bug#31371: 26.1; Menu-bar stops working after search References: <20180506101411.GA3327@breton.holly.idiocy.org> <20180508214024.GB13768@breton.holly.idiocy.org> Date: Sun, 13 May 2018 22:09:06 +1200 In-Reply-To: <20180508214024.GB13768@breton.holly.idiocy.org> (Alan Third's message of "Tue, 8 May 2018 22:40:24 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Originating-IP: [125.239.171.29] X-ClientProxiedBy: SY3PR01CA0121.ausprd01.prod.outlook.com (2603:10c6:0:1a::30) To ME2PR01MB2898.ausprd01.prod.outlook.com (2603:10c6:201:22::15) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(7021125)(5600026)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(49563074)(7193020); SRVR:ME2PR01MB2898; X-Microsoft-Exchange-Diagnostics: 1; ME2PR01MB2898; 3:lGLiZrbZzROgS0bEE9yvnM4oCNpt3mQ1FqqKYpsA8H1q9Yh81WBxDh6ZNnx12ow9YderDkIxLWPg8+VtNqafDY5j/+ZhXqc1nUsNJezXfopYD751u4Ka/QV/F8dO66p4y/oN0LvfuDekZKE5ueJzVxhPWM4HXCW7IncWjrEj5W5wmhUTuP6dlBB3aC9ZHANsVIz0Rpd1zq4fqlj+OGpVRUw0aW13/v4ui0f6hPfmS7HcOEIIL8qdYyU0QLPLFk/z; 25:xSB6cgixodsTiJG3OeA+niY13Cbxiav+FDTz/79oLD0Ilkx4yKv+XU6FMcStCiUHEkOjrQ8Xh076vnQgZCJpKaj6Q5i5RbHsQQYck+4TF6BmPMu8G4THYmTPrFqFUq4x/QFjpKcvVCCtMSD5ePl5DTtQEztbSuNjh+6BGZJ1fEQx4QFMqIQKwxiElMfSpKumbH0+EFClOze5qKZKLHmZ+NrK09xLCqMYvUjQGQfk1fybnQ93JVWBjEqtPZtZchL8e8JhCDOE/mrVs2wZ7WGZ/LMaVvRANwIGElqGykBP6j/JgOIvwEs4C09EwCzpCnZhXBN1/abwC+huYj8Vt7HySw==; 31:ucqs0RS/2jd9+zJL66VTe+z6VrHVzLtOlHEbSrm3jG9FQiG/R9+SqI4/djbHoMMNrjXgwLpvMnDIYjvwmVQxd36K7v1c54ZAkapplNpQAIx2Up+j4szMuWKOC48NxMuDACgUbErudLRz1/x8le0TXMx9jTw/hPrmGAgAowbrPBNZBca4XGT0UAMInIkF1POU/6AoBOWBAcuxMJ2WBnlyPtRC/OIi8GrmxxQSD2vgKvI= X-MS-TrafficTypeDiagnostic: ME2PR01MB2898: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(102415395)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(149027)(150027)(6041310)(2016111802025)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(6072148)(6043046)(201708071742011); SRVR:ME2PR01MB2898; BCL:0; PCL:0; RULEID:; SRVR:ME2PR01MB2898; X-Microsoft-Exchange-Diagnostics: 1; ME2PR01MB2898; 4:x0+TPwfxgDfbrBQi9Vvs3QF1NuRYUSfkjCIXcchnaJ7WHXf6Dwqgf4yu3PSKjcul+HD6HXngpJqo04TuT2wqQL7krkxQiFEbGrfkF1jjMIHbB56kgzMPEDLxN1FEd7qI5ysXohcgi49JIqohE/7LW4k82mgDNGUe2O+gCcUmzThZ4wvXGrSFW6iH//xZLepZVCDYg2LeF2fRYufF3XNRIWPyHA4APGKZYcouHODuBkyjgqPqYS6ffoUP2b6ZMtXto4LAnFbeW6gkYhkGDsQJqw== X-Forefront-PRVS: 0671F32598 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(39380400002)(376002)(346002)(39830400003)(396003)(366004)(189003)(199004)(316002)(59450400001)(16526019)(2906002)(8936002)(53936002)(26005)(486006)(2616005)(476003)(956004)(11346002)(4326008)(568964002)(93886005)(6246003)(386003)(6506007)(446003)(36756003)(68736007)(186003)(76176011)(52116002)(478600001)(66066001)(97736004)(6666003)(6916009)(229853002)(5890100001)(4610100001)(81156014)(81166006)(6486002)(74482002)(84326002)(2476003)(86362001)(16586007)(58126008)(6116002)(105586002)(5660300001)(3846002)(106356001)(305945005)(25786009)(7736002)(6512007)(8676002); DIR:OUT; SFP:1102; SCL:1; SRVR:ME2PR01MB2898; H:jupiter.local; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:3; A:1; Received-SPF: None (protection.outlook.com: tenpoint.co.nz does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; ME2PR01MB2898; 23:6qMnvoa+cpNVRTP/WK7L7xhqAknOD8l9flE0fUDvq?= =?us-ascii?Q?eogiAFlFVIqitlivPhKJCNb72BOiHHs9g+qf194BF21lMNZrP0q/G4fIBOJe?= =?us-ascii?Q?ztlqpQfk8iRdlby8lNkSRKk8qQQMbNN7WbbYCE+267MIi/COJ9AQa/G/9dF5?= =?us-ascii?Q?0bFL6xLL8iETMgbGf+E3hok84hhQZJ+sC3jcCg1HKhJw2QyCvB3qri444Cat?= =?us-ascii?Q?G3CVKWo9aySLsQUV9pJFQwYg+RQ/39s4QPyGAlRBcfvqvSDXvH0M2g9b1G9E?= =?us-ascii?Q?y3TmLFi45r0EdBFNNZljdOTzepCg3m9ut8KW8o+PB4G8uPHUfRZ2SpAZX83h?= =?us-ascii?Q?BEOT/fca2dAMCKl/Ai3EyZkkr2/Ea5dRwhG36F4CTtj8iccdv1jBBsLnGHwF?= =?us-ascii?Q?/Ug7NsWfXLApE+d0DJCTKzszk1mwqfBVpafuwwwf90DV5CnT0MNhpeK9R+XW?= =?us-ascii?Q?Wz+sGkdoYMqwDx47RWr6bmTuYZyQbnwrgoo7e6wrRuTgC3VA+TlecABINlPp?= =?us-ascii?Q?r43wZvXKy+3ueTvtqrXFwdwyJCRgm7IjoN/a1oxtyUnXlZrFunOZwNb8lmfc?= =?us-ascii?Q?NnrlRyT9JAmuA0IcdBnjmsBvk7VLlxsZKXoyc0dUZSGqir5xIi1JTa/rtu1m?= =?us-ascii?Q?YRR+cMjdypwHlapcOkxAEx7Nc+pzR1xDJ+6VlRcg5HfDplAJlOL5nZaevPiV?= =?us-ascii?Q?dmHiYKSaccQ4U4LQpkMylrBoiFEjIoEdggl60ww+PScOYTlYzF11e03FEaxo?= =?us-ascii?Q?F/8OYtDUce/cSdCs5BtXLXoEGv+M2XXug6yvjPWMYTpG88cnQyz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Xue2cFy9FptLvCrLRXfsWIP1DqlKpXmTU6vdWJERnAT8ENFRIu03OltDt6c5PQHZuqqXBG64qbQ5ggcrwxTF2OSGMRXNa55Azhlqu4iOF8Lc5ul5ikbxFjeSntjGtP/Nh9IyIQ3tjUH1x7mYCqI94/RXuL5Ps9UQ9olzlGIOBcQfIt/hz+wVg4NQjwMnQAWed5JVUE9cW6C/LrF4ftD0VQ1WbIB8JBZl5FjO+xJMaSEdh8r0oVJSmcsZPGNkze+ZPK0qkLWvCuTRkI4hXkag4OTeIwngOE1RIGwg==; 5:kAmOs7zunlD1lAMUQVYXqRPndaCOXyyTHvKDiLWBF+LKJyk6yy1mvjjU7LrSARZs+PDmEGsTzd/kogR8w0tM/O4LKxzCNvOohHONlCQW+S/awcRISu8k2McDVHUT+X4M6uwO9JzTe4xDKnJ+cQ0tZh0K8lUGS1rUbm5njVrOUNc=; 24:uQBrZWmsIUFku9GrRTx1APPi4ft6ISpF3GJWaBkD1gO005GnWQ0uQfbNnWJIBxxylfCXafxRwtWtjW0ek5gDf6JOR/hWpMVysRM2AwnovVg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; ME2PR01MB2898; 7:XKdnIDmdueWs/+Bnp0NRB2LyBmd5m80DOAFe7rnnHYLavY7VlNqu1yCt3PWx+gS6KOvXQLFM/+K8Dc4HPwDGS9pet6tO32dyqIJxNh7+/R7tMg+2lH5OJ9ZMrdn2MRUgHWrZEwLbn4uAKrgd0zP3PhqO2XzmRlyTGeLg/rZOTnqmsN2QyVlI4to4tukYA9J7r9ti7NkkkAam7UocckhgQ4Kex9GcBIFgOZqh3OwtSGsidyEz8i+JhrCzjkvHBdzZ X-MS-Office365-Filtering-Correlation-Id: 1fd63a6f-862d-425e-e6b4-08d5b8b99337 X-OriginatorOrg: tenpoint.co.nz X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2018 10:09:11.8355 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1fd63a6f-862d-425e-e6b4-08d5b8b99337 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: ed686f26-19e8-407b-91d0-7364c1c6f5cf X-MS-Exchange-Transport-CrossTenantHeadersStamped: ME2PR01MB2898 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31371 Cc: 31371@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: -1.0 (-) --=-=-= Content-Type: text/plain I think I've worked out what's going on here. I've attached a patch - could you give it a try and see if works for you? When the user types in the search field, NSMenu looks for matching candidates by creating events to open each menu, trigger an update and read the results. If the search field already contains text, this happens as soon as the Help menu opens, either when the user clicks Help or mouse drags onto the Help menu. The code in ns_check_menu_open and ns_check_pending_open_menu that postpones mouse clicks (to fetch menus from Lisp) also tries to postpone these drag and search events. When it releases a delayed click on Help (even if the event wasn't a click to begin with), the menu reopens and the process loops. The attached patch gets around this by never postponing mouse drag or non-user mouse down events. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=31371.patch --- a/src/nsterm.m 2018-05-13 16:45:39.000000000 +1200 +++ b/src/nsterm.m 2018-05-13 16:44:31.000000000 +1200 @@ -4299,14 +4299,22 @@ NSEvent *theEvent = [NSApp currentEvent]; struct frame *emacsframe = SELECTED_FRAME (); - [menu cancelTracking]; - menu_will_open_state = MENU_PENDING; - emacs_event->kind = MENU_BAR_ACTIVATE_EVENT; - EV_TRAILER (theEvent); - - CGEventRef ourEvent = CGEventCreate (NULL); - menu_mouse_point = CGEventGetLocation (ourEvent); - CFRelease (ourEvent); + /*On macOS, the following can cause an event loop when the + Spotlight for Help search field is populated. Avoid this by + not postponing mouse drag and non-user-generated mouse down + events. (bug#31371).*/ + if (([theEvent type] == NSEventTypeLeftMouseDown) + && [theEvent eventNumber]) + { + [menu cancelTracking]; + menu_will_open_state = MENU_PENDING; + emacs_event->kind = MENU_BAR_ACTIVATE_EVENT; + EV_TRAILER (theEvent); + + CGEventRef ourEvent = CGEventCreate (NULL); + menu_mouse_point = CGEventGetLocation (ourEvent); + CFRelease (ourEvent); + } } else if (menu_will_open_state == MENU_OPENING) { --=-=-= Content-Type: text/plain On Wed, 09 May 2018 at 09:40:24 +1200, Alan Third wrote: > I notice all this code is cocoa only, though. Makes me wonder why > GNUstep is different. (The menus on GNUstep Emacs are awful, though, > they flicker constantly.) I think Cocoa uses a delegate method to update single submenus which (I've read) isn't supported on GNUStep. This means ns_update_menubar has to recreate every menu on every call (deep_p is always 1). Maybe that has something to do with it? --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 18 17:33:49 2018 Received: (at 31371) by debbugs.gnu.org; 18 May 2018 21:33:49 +0000 Received: from localhost ([127.0.0.1]:40253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJn0X-0007Al-46 for submit@debbugs.gnu.org; Fri, 18 May 2018 17:33:49 -0400 Received: from mail-io0-f175.google.com ([209.85.223.175]:43986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJn0U-0007AZ-LS for 31371@debbugs.gnu.org; Fri, 18 May 2018 17:33:47 -0400 Received: by mail-io0-f175.google.com with SMTP id t23-v6so7860392ioc.10 for <31371@debbugs.gnu.org>; Fri, 18 May 2018 14:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orbitalimpact.com; s=google; h=from:to:cc:subject:in-reply-to:date:message-id:mime-version; bh=5rb77OUHrGmX279zpOo7Da5gHhjAMixZZlEO9akIDgU=; b=Vh8Su8RO3V/rT4c2YGFj50AVQjo1UUgjBpgUcx+Iv9y50aQHZPkUKYJ5vEvCttNGXj 6/a3pBLnTt8XAuohrRW8gFfpDfPtDl3/YaLvX1OL5yJsiZAbzmurIZPJaVF3xDj1BrgH sfDnOGgJCNrnb8ZP9OWYBE0d1lSfqsCjK/UbI= 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:in-reply-to:date:message-id :mime-version; bh=5rb77OUHrGmX279zpOo7Da5gHhjAMixZZlEO9akIDgU=; b=kFg3ynN/dDkcIASSnLu/pUN3rEhN+1yjsCeNfq1PA7Oop5/S07uu7+8cyNrEoT6wcd cuUdfno2sXkvGNt12SrL+2FjwUsrOqhQVeIKZ+ML3ghFXrcKhXNkRlxZjJz58MCnf3OB ao2eATmWPCCz7ds0tB0u/yp5WTYOYAbNRHQFKLipzpepiFoihvCjuQAKgbjLXkvXmGV9 c7dM9sPrlsoH+Y9Hm88xhB+bfrrW07KCYMRlpxt3flfUCXDlWa2IUzsv5uI1Gh5Ttx1h 9oR7Fh2VyqzmCJQi2oIzF0zLFStQja0zE/1PqoCM4QqqQ7UrfIm9JgYHz9DfnMMd+Iue w3cg== X-Gm-Message-State: ALKqPwe56ZAZpBylirw7XA/CEI65o1JYsw2fCy6Nz4Rd8qanZVRtH4MO SGIjP/opNy7w7YFXqwaUouES8Q== X-Google-Smtp-Source: AB8JxZqUAqL4DbU5gC9/Zh7fHK7BCB2CeW3CBq+cZifRQCA1i/IKrTlmOVz3Fwe2sA3wNXD8dvQRhg== X-Received: by 2002:a6b:37c2:: with SMTP id e185-v6mr11749517ioa.231.1526679221214; Fri, 18 May 2018 14:33:41 -0700 (PDT) Received: from lehi.dev.orbitalimpact.com (ip-6-39-52-196.chicago.us.northamericancoax.com. [196.52.39.6]) by smtp.gmail.com with ESMTPSA id i11-v6sm5610938itb.38.2018.05.18.14.33.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 14:33:40 -0700 (PDT) From: George Plymale II To: Nick Helm Subject: Re: bug#31371: 26.1; Menu-bar stops working after search In-Reply-To: (message from Nick Helm on Sun, 06 May 2018 02:15:57 +1200) Date: Fri, 18 May 2018 17:33:39 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 31371 Cc: alan@idiocy.org, 31371@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: -1.6 (-) Hi, Just passing by since I saw this bug mentioned by Alan Third on emacs-devel. I want to point out that this bug does not occur at all on the Emacs Mac Port by Mitsuharu Yamamoto. I've described it in more detail here: https://lists.gnu.org/archive/html/emacs-devel/2018-05/msg00404.html Thanks, - George Plymale II From debbugs-submit-bounces@debbugs.gnu.org Sat May 19 00:26:25 2018 Received: (at 31371) by debbugs.gnu.org; 19 May 2018 04:26:25 +0000 Received: from localhost ([127.0.0.1]:40359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJtRp-0007tx-7b for submit@debbugs.gnu.org; Sat, 19 May 2018 00:26:25 -0400 Received: from mail-me1aus01on0112.outbound.protection.outlook.com ([104.47.116.112]:17968 helo=AUS01-ME1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJtRm-0007tj-Uz for 31371@debbugs.gnu.org; Sat, 19 May 2018 00:26:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenpointcomms.onmicrosoft.com; s=selector1-tenpoint-co-nz; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hWOgf1WnVX49xTfKT/0dszwcLGeVxUlvwDJFe5HYYlM=; b=BtUT0LwkMqPvr9QdlCQdvI1Xfdo44U2a+fBGJO7u4D0qiO7FGlRaG4oD403RsepZLA9e3WjlzNvNRPDZBi0hs4GllrqLv9D/F/OzrX3ZqpQfetkmBTGj89Y3IsUh88IRYUI2ERNIP9kEO3aFairFF1/SsKpe3161oAD1JVtXEf0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=nick@tenpoint.co.nz; Received: from jupiter.local (125.239.171.29) by SY2PR01MB2908.ausprd01.prod.outlook.com (2603:10c6:1:1e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.776.11; Sat, 19 May 2018 04:26:14 +0000 From: Nick Helm To: George Plymale II Subject: Re: bug#31371: 26.1; Menu-bar stops working after search References: Date: Sat, 19 May 2018 16:26:05 +1200 In-Reply-To: (George Plymale, II's message of "Fri, 18 May 2018 17:33:39 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [125.239.171.29] X-ClientProxiedBy: SY2PR01CA0016.ausprd01.prod.outlook.com (2603:10c6:1:14::28) To SY2PR01MB2908.ausprd01.prod.outlook.com (2603:10c6:1:1e::21) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(7021125)(5600026)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020); SRVR:SY2PR01MB2908; X-Microsoft-Exchange-Diagnostics: 1; SY2PR01MB2908; 3:Qy9zJnWkwuJpl2O5yzXO5+kUPsmNKqcfFOAwwHvl1/lVL9oqiTH8G2TCuCvF+tPe1zV9ZH+cvbPWrZnp5vLRDAclI5ty7zdAaRQXOpC2lgvxEcSZFWkfJeDNMIgmbZ/l3zgSCvPP8Ob7LnD31SzBvK9KrUzkvKxdIg9DT41cxWb28xzA6OkWbia6xxholi3KwiwqjpuouhlkcWBrM9d6jdI7DYWlFoCmmMfxPqEqkt3iav5OX1TJ6VQQPCswWTua; 25:hUTszb1n7nMj3L96Od0wjAswlC1kyPs83u4OKGz+rHSqLhqz9/KL12D/IPjUI5OWKjUlpiMHAEYXVKJgT1cEQvA4uo6czFq9vbQIoSBFCiC5/4LTLyUbieBZD7A0WDSqqcBXEJ7i1JV6LQchUpzyWpMHH97jM+PhBdR1DeExoZT63iySvFU6cGMfOcDP03C73OnsLvAwmVN9lxmnFs1yLM8JCk/+rAFpPNcYSeIftQlo9G7vtR11reWjYift+Fk5h/Bf6myfPb8naP6IvlCBlbMBwJeGAkUkwqDH96fPQ2mRiQEq6BWQwx6eLD4/XxUhJbPe5obdrsFtTYZ9BO3mqQ==; 31:VoVF0lFEnewqOb46fGf4eXiZStOPEX3FVklDeTTnkuTrgfBblA1o3I5mVoigb4i50WT5nz4qL47t/sYlHIuC95epEWlLWbmln+C4gMmgfUOMcZRsLaNbCMvu0Su0QIJVq/mgJeluH6BJI3kbrmml7M5AYinqGms6Vns7z2Iz9nvyfMzeljS062Gy7q1vHCpslAmVOqL2zVmGOTmkJvndLlwBgOS/OoycUiEFsji6yco= X-MS-TrafficTypeDiagnostic: SY2PR01MB2908: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(149027)(150027)(6041310)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(2016111802025)(6043046)(6072148)(201708071742011)(7699016); SRVR:SY2PR01MB2908; BCL:0; PCL:0; RULEID:; SRVR:SY2PR01MB2908; X-Microsoft-Exchange-Diagnostics: 1; SY2PR01MB2908; 4:3NE0XsxM64uyhsCaiojYIO2OKqQ3p4KpGvl+S9lQYqc6Gox0eCG5UVXPY89aPLni8xQhqoIGubk+SGaK3kTuTORmNeLHJnj+ebslxihuKDTks2OeJoMx4htnB3vh1oadk9FIMyPQ7AyMudLFPXex1LjIB/nyEkeawp7iTFENpJi+SpaULFQFeb0eFMm146dVRd+/FQa5XUudUJI9M3ekSWz39nE5GJHJKvKttp36v44q/WbuK0D1c3WIQjiNNUxJMEXtVKuodxg5lwe4Sg9g+w== X-Forefront-PRVS: 0677FFABBF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(39380400002)(346002)(39830400003)(396003)(376002)(189003)(199004)(6506007)(386003)(26005)(48376002)(6116002)(3846002)(8676002)(58126008)(186003)(16526019)(5660300001)(50466002)(6246003)(47776003)(66066001)(11346002)(2906002)(478600001)(476003)(486006)(2616005)(956004)(36756003)(81166006)(25786009)(81156014)(53936002)(105586002)(86362001)(4326008)(106356001)(6666003)(6486002)(8936002)(68736007)(97736004)(446003)(51416003)(7736002)(6512007)(316002)(229853002)(52116002)(76176011)(6916009)(305945005)(74482002)(16586007); DIR:OUT; SFP:1102; SCL:1; SRVR:SY2PR01MB2908; H:jupiter.local; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:3; A:1; Received-SPF: None (protection.outlook.com: tenpoint.co.nz does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SY2PR01MB2908; 23:XE3NLe0ivQxPluh//9yUzM3KwYRGactZCOMzRuAkO?= =?us-ascii?Q?ujJBZMAmEVJGWPrQJU/QryuxognJo+AN2iNMhR7ZG8iwHRVFbb2o5pEeBroE?= =?us-ascii?Q?cCtc4RhJ5e6l8WF0Bw8S2APOud0n3+RtN2SNlc55lxM2t7KS6TqgDg4oDGuL?= =?us-ascii?Q?gZOBcKihSDHzgr7C6tZF+MGAczdTTt/afPV62kz2FhMMuLOQJc4ZSywzGDRZ?= =?us-ascii?Q?2l1DJXnodN8BA+5OvFf69SG8Z3yrGSKprFtKcZG4z1EX9oK0k+AfI8Ct/iZ1?= =?us-ascii?Q?IhAnBj97KocV0ZrCq3WrN2+MNvr6vmWYsvK/TzciuN0QeaY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Mk9qV9F5w= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SY2PR01MB2908; 7:IoUVrUOV/0HkBElr5T6To4cgvDiWYQSO1vWXbfGCmW8Sst7NGZ2LqPjuqOE6FkaKEStk80D/bUYsQwsgtRRN2Dz5mw3z0p4O9K5BoRRijP/6tRDcFjwIebB5ohkZwIn28Rd3hbyLO6lbg3FisSRV8c0K5w97lxoVBV2TBQJTXBG6OTFY7GAxnRuubLwf2+45XYZBbcsL1+Q1dyePw+frHgfYkg+ewPJOn064T4eh6YrJSprfHLuT90GjufR5+1V8 X-MS-Office365-Filtering-Correlation-Id: f355d4d2-3c4e-41d5-ae10-08d5bd40a887 X-OriginatorOrg: tenpoint.co.nz X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2018 04:26:14.2845 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f355d4d2-3c4e-41d5-ae10-08d5bd40a887 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: ed686f26-19e8-407b-91d0-7364c1c6f5cf X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY2PR01MB2908 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31371 Cc: alan@idiocy.org, 31371@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: -1.0 (-) On Sat, 19 May 2018 at 09:33:39 +1200, George Plymale II wrote: > I want to point out that this bug does not occur at all on > the Emacs Mac Port by Mitsuharu Yamamoto. Thanks. Yes, you're right, the mac-port doesn't suffer from this particular issue. Although it handles menu-bar events slightly differently, it takes the same general approach to the problem as we do on NS. BTW, has anyone had a chance to try my patch for this bug? From debbugs-submit-bounces@debbugs.gnu.org Thu May 31 21:18:36 2018 Received: (at control) by debbugs.gnu.org; 1 Jun 2018 01:18:36 +0000 Received: from localhost ([127.0.0.1]:56416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fOYiB-0006f8-Tg for submit@debbugs.gnu.org; Thu, 31 May 2018 21:18:36 -0400 Received: from mail-it0-f46.google.com ([209.85.214.46]:51203) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fOYiA-0006eu-GQ for control@debbugs.gnu.org; Thu, 31 May 2018 21:18:35 -0400 Received: by mail-it0-f46.google.com with SMTP id d10-v6so30061840itj.1 for ; Thu, 31 May 2018 18:18:34 -0700 (PDT) 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=IuGyq/qXougeplRA9niHFL9pTflDstMj5LpI4FMz3o4=; b=Tb31rDykYop0pYOQApgLZtMmkHOJq3AVZYuWbLVj/mc+20/L3hOS8WnMrM0UWHQcFH BAbnRQcp/obzsP4Jg0R3q9jjR3WpnA+mFQlbn6LmmPlM+yLboQ8uM5jn03NG+ndJH4Yq cGBy6nQjrjFfyHA2ISm2NVXhq8x8jW7eNEB8ehneY4U7QwW7o07krA34lIhht2HU07dT vu52//Y4UorbxaGfAfuizhfPxvTfuVqupI3XQb0xfPpTAM+7Rmvii/HvbtLKfPbqkTT9 5TMttXaDiBSxKifWeL6bWrw4w987so8VT3QevpDBbT5/j/nvq/S3d0sybRgrKex4/RsX b5oQ== 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=IuGyq/qXougeplRA9niHFL9pTflDstMj5LpI4FMz3o4=; b=srEKG8Bj+zVTphhNnlr1XQglWfPFBFVsbG0AhF5NcpPllMAB7CvZ55PDXGj0+t6mty JldKYAlt2ARrWujzFZfuVXmHVS6B2gq4pt7F5aGfbNnFfI5OD4QDGQ/ZwtULBwSw3tKU qFIQmUIWPlOdyI0Fa7VuussOnijXECb5LvwxewxLbl6oqQ1s1NAF1O9ysEp50NoBFQ8F +mraH9Ho+DlTlBZn28yyUgFlw8oiYuIscf/xvvHhHNNfn7XtXdfC9J/DlT/dPBiYnAtV umRIivzRLZSyf0phiA6vacrsFJpcEpVRXJ4+37aZdtNBGa1iaUbqE1XWdoB3Y9PXCP5H dNZQ== X-Gm-Message-State: APt69E0MI8S6ptgcRw/vSfqpeobEfgvskf7IvRCidbOf0+CWbvRBRlr2 ZlanCDl9BW86aBDuNII/xZSi6g== X-Google-Smtp-Source: ADUXVKJB4ygFkLINxTvzWYmZj1OCXy+oOIqb+xht/hhZ2721scDdxzOo+EqqtQ0pYONJU4L+1Kwb/w== X-Received: by 2002:a24:eb0e:: with SMTP id h14-v6mr2522448itj.69.1527815908914; Thu, 31 May 2018 18:18:28 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id e189-v6sm893427ioe.0.2018.05.31.18.18.27 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 May 2018 18:18:27 -0700 (PDT) From: Noam Postavsky To: control@debbugs.gnu.org Subject: control message for bug #31371 Date: Thu, 31 May 2018 21:18:26 -0400 Message-ID: <87efhrb8yl.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) retitle 31371 26.1; [macOS] Menu-bar stops working after search quit From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 11 07:25:27 2019 Received: (at 31371) by debbugs.gnu.org; 11 Oct 2019 11:25:27 +0000 Received: from localhost ([127.0.0.1]:58097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIt31-0001L7-6O for submit@debbugs.gnu.org; Fri, 11 Oct 2019 07:25:27 -0400 Received: from mail-pf1-f182.google.com ([209.85.210.182]:33238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIt2y-0001Kd-53 for 31371@debbugs.gnu.org; Fri, 11 Oct 2019 07:25:25 -0400 Received: by mail-pf1-f182.google.com with SMTP id q10so5934282pfl.0 for <31371@debbugs.gnu.org>; Fri, 11 Oct 2019 04:25:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=VkVxZpxxF9eEmmkwVQnetyNUR+HaEd7WEyS0zi6yy5U=; b=gv8lmeAmInsL9ihz6ogyw58ymFAz9Kg9NLs9pNm+cJCEGrYK+S1PGBr6aZ42GyrZMg lUIb9VZ37K2SoJ7Yq6Lr8CnxkI05mDENKL+R9Tk6Mo5fBFSivhYHkneKy7YoZVnLTQM8 fjcnmlqORfJ7TL8z6PIp2FxKN4H/XLi7k2zjnALsA0Lqn1u9EPmQZPO94cJynL9BSq4k WrlNZ6VlW0/MxDmv5LBLt8GGUzhxbeDYUkX077iftaWTXTwTFLsiUz6Uews/hX9LZEFp SMFmXABBxjOTlDEATMb3Xb3zzNrM5bGsNsXgS9dkflpQXpnu3hKkZbBl3I9Fn+E8Vv5D LliA== X-Gm-Message-State: APjAAAW78GPxyyOmKcV8XArOM52cm7edTWCNKsUsze996rVTMDN8WYo1 ddBL+/B6U9jIQxQacGn987SR/R6T89LKTfsVwAs= X-Google-Smtp-Source: APXvYqy0vI5lPPBvc8G06inEdXiwzC+vabZ1EoKDWEMxq0NLxwlBGSIC9iEb01R+XV+PK4tqS44EuMsD9em+WQyWRIg= X-Received: by 2002:a63:1c03:: with SMTP id c3mr15770867pgc.198.1570793118181; Fri, 11 Oct 2019 04:25:18 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Fri, 11 Oct 2019 13:25:06 +0200 Message-ID: Subject: Re: bug#31371: 26.1; Menu-bar stops working after search To: Nick Helm Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 31371 Cc: Alan Third , 31371@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: -0.7 (/) tags 31371 + patch quit Nick Helm writes: > I think I've worked out what's going on here. I've attached a patch - > could you give it a try and see if works for you? > > When the user types in the search field, NSMenu looks for matching > candidates by creating events to open each menu, trigger an update and > read the results. If the search field already contains text, this > happens as soon as the Help menu opens, either when the user clicks Help > or mouse drags onto the Help menu. > > The code in ns_check_menu_open and ns_check_pending_open_menu that > postpones mouse clicks (to fetch menus from Lisp) also tries to postpone > these drag and search events. When it releases a delayed click on Help > (even if the event wasn't a click to begin with), the menu reopens and > the process loops. > > The attached patch gets around this by never postponing mouse drag or > non-user mouse down events. I've tried your patch on macOS 10.13, and it fixes the issues with the help menu for me. The code looks okay to me, but I don't know much about Objective-C or macOS development, so it would be good if someone else could review it too. Nick, could you please provide a ChangeLog entry for these changes and send them using "git format-patch -1"? Details on how to do that well are in the CONTRIBUTE file. Thanks in advance. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 11 08:04:49 2019 Received: (at 31371) by debbugs.gnu.org; 11 Oct 2019 12:04:49 +0000 Received: from localhost ([127.0.0.1]:58147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iItf7-0004oa-Eq for submit@debbugs.gnu.org; Fri, 11 Oct 2019 08:04:49 -0400 Received: from mail-wm1-f43.google.com ([209.85.128.43]:53413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iItf5-0004oB-Jw for 31371@debbugs.gnu.org; Fri, 11 Oct 2019 08:04:48 -0400 Received: by mail-wm1-f43.google.com with SMTP id i16so10147386wmd.3 for <31371@debbugs.gnu.org>; Fri, 11 Oct 2019 05:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=rGtQEPW6hjcX3+jps9Db21wVyqPFmT+E6rftBuKn/EA=; b=bfpDs094dzR2FHIZpNgjqLzYU4+Zo7zh6sTDh6cYZgLeJI7FZkjCzalrsydt0Le3yS 3aazVk1C3hRDnCK1gPL9ywd0WrrVavp/m2tu417XREi30UyaZU/YuC5rlbNKCOT3zakZ wc0o8fuNNl2Y64erBNXduBd+QJPDG2cMjOGTqbmJ7APb/sPDX8mwuS+QQuw2L2qWzrA1 SYhZnHLbl25YpCtY8qYOy1k/yKG7K2TdNDllBHKwEG5h6r+RJp5SUG+OmZuPaLJebepM +YokV7UT4GoptYgQ2mqMeVvjwNVRyHUi7XfrIC3fGU/y3Vof7URq70/XtL6PoyKb6+im 2TTg== 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:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=rGtQEPW6hjcX3+jps9Db21wVyqPFmT+E6rftBuKn/EA=; b=fLEg9MrUZfXwTF4ENAZ2t/L4RajpriSTZAbS2evZjPFxpJFq2ln60JSfoTfp2rTgTr F7whHrdPC923F7o4EEdOHLDqvSvIE9jpv9WxkBQ2RmdQOqcU0nbEWlUxVwN4S0bQ6p9g 2cBKfSDO1dPqGWFT+XtPzlGBuAhxPD1wY7wdCF4ttU8ctUC2gKlC5HD0NwkghZ4yVA/g fCFpeaBHjBAhnn6W8ZJM7sguxmodHGWMAptTQwCVmvy0Qs5edo0w5hjWM07LWx1HHagf vG/QZStNGxJhpOq7rti4vBIK/bpM2zeIRxU2OpDt1cqQ/hlV19BTKUAprIfX+4SYudOT ijkg== X-Gm-Message-State: APjAAAWOY1G9lhEjw8u4NKs7lI3KaXUIjCEAtwRW+/0H8c23/wGZ2U0r 0X6qjMg0xlJcuCbf3oAW6l/v7oZOcZ0= X-Google-Smtp-Source: APXvYqxBbiKtsRS3CEXuT8/BTmimJRnWuMrGWR3BM4kKWILp+zmx4geVqvnt6PogWUuv2Yn/pNNQQQ== X-Received: by 2002:a05:600c:294c:: with SMTP id n12mr2797212wmd.99.1570795481179; Fri, 11 Oct 2019 05:04:41 -0700 (PDT) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id i11sm10633710wrw.57.2019.10.11.05.04.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 05:04:39 -0700 (PDT) From: Robert Pluim To: Stefan Kangas Subject: Re: bug#31371: 26.1; Menu-bar stops working after search References: Date: Fri, 11 Oct 2019 14:04:39 +0200 In-Reply-To: (Stefan Kangas's message of "Fri, 11 Oct 2019 13:25:06 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31371 Cc: Alan Third , Nick Helm , 31371@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: -1.0 (-) >>>>> On Fri, 11 Oct 2019 13:25:06 +0200, Stefan Kangas = said: Stefan> I've tried your patch on macOS 10.13, and it fixes the issues w= ith the Stefan> help menu for me. The code looks okay to me, but I don't know = much Stefan> about Objective-C or macOS development, so it would be good if = someone Stefan> else could review it too. I don=CA=BCt know anything about those either, but it definitely fixes the reported issue for me on macOS 10.14 (I=CA=BCm too chicken to move to 10.15 just yet). Stefan> Nick, could you please provide a ChangeLog entry for these chan= ges and Stefan> send them using "git format-patch -1"? Details on how to do th= at well Stefan> are in the CONTRIBUTE file. Thanks in advance. There=CA=BCs also trailing whitespace in the comment, and missing spaces after '.' Thanks Robert From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 13 21:50:20 2019 Received: (at 31371) by debbugs.gnu.org; 14 Oct 2019 01:50:21 +0000 Received: from localhost ([127.0.0.1]:37382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJpV6-0002pt-Hx for submit@debbugs.gnu.org; Sun, 13 Oct 2019 21:50:20 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:54215) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJpV2-0002pX-Ac for 31371@debbugs.gnu.org; Sun, 13 Oct 2019 21:50:17 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 23162345; Sun, 13 Oct 2019 21:50:10 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 13 Oct 2019 21:50:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenpoint.co.nz; h=to:cc:subject:references:from:date:in-reply-to:message-id :mime-version:content-type; s=fm1; bh=nrRjLAf2TpIi9Zs0e9vDLEcvSY gM8110dYSOYZgZYvE=; b=RBKXVmbUvczBrxYSgB71m9bze/pSUk/1xR8I71VFqY LzSgtwdqDKGuQJZMg7Mz/5s8psEzaGLtcBzI1TaRGIV0Fwys1ydzdPnigR0ffSq5 aO5lcwFoPlMeM/MjsMk/woIc5vA7oyF6kVHIXFX9o25fi6y6PY9pOZZOlbvsZy79 eABfc2jILkrjha5NkZpcDC9NZPdfm+/JoDnpPhHi4C06RCXpj4krp9PSUb1Jm/bM gBxxgWaz0q8b2FI5LXRubtoHuUAVj1wtBZZCfJh1MS3Eashug4dzb2cA9EYoTk8G 6aThUTQ5/WVeF9y9HvtCVoJsklsXY1lOjNX2lLo6z2Gw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=nrRjLA f2TpIi9Zs0e9vDLEcvSYgM8110dYSOYZgZYvE=; b=f3tDdT/iIS5askovf69/Qu sxNH5V1G3FEDmdw0O2WthvUoS8Yt70ihHlijQjtkfjoGlkzfn6MELCiAD4n3TZjK t/kA8WI/NV1waTTUglf98PrEXUxzzAtPOeOrM27qPzUm0PpF6BGfUY2pogC6jCFW n+5w4WZX4fR+lqqWCBFq84Sbb4cqWtv09d9y3JvzRTVInCy3Q3SiUdvJvs2XcSfH MhL/yPPfNcyiSurx7NyJ7ezig/uoEk5N2Y4OAoWVln65Dhdk7cIMJodFppBaeamn RvvbQC/jOCCAkx0T5xypuq7safQJ53hdFdyR6U6fioc+KUppXTP9/+X45WMHaiBg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrjedtgdehvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefvufhfhfffjgfkfgggtgesmhdtreertdertdenucfhrhhomheppfhitghkuceo nhhitghksehtvghnphhoihhnthdrtghordhniieqnecukfhppeduvdehrddvfeelrdduvd dtrdduledtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehnihgtkhesthgvnhhpohhinhht rdgtohdrnhiinecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from jupiter.local (125-239-120-190-vdsl.sparkbb.co.nz [125.239.120.190]) by mail.messagingengine.com (Postfix) with ESMTPA id 8D6ADD6005D; Sun, 13 Oct 2019 21:50:07 -0400 (EDT) To: Stefan Kangas Subject: Re: bug#31371: 26.1; Menu-bar stops working after search References: From: Nick Date: Mon, 14 Oct 2019 14:50:04 +1300 In-Reply-To: (Stefan Kangas's message of "Fri, 11 Oct 2019 13:25:06 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31371 Cc: Robert Pluim , 31371@debbugs.gnu.org, Alan Third 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: -1.7 (-) --=-=-= Content-Type: text/plain Stefan Kangas writes: > I've tried your patch on macOS 10.13, and it fixes the issues with the > help menu for me. The code looks okay to me, but I don't know much > about Objective-C or macOS development, so it would be good if someone > else could review it too. > > Nick, could you please provide a ChangeLog entry for these changes and > send them using "git format-patch -1"? Details on how to do that well > are in the CONTRIBUTE file. Thanks in advance. Thanks for testing. Updated patch attached. Nick --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Fix-unresponsive-Help-menu-in-macOS.patch >From 9ec201c229fdb8f9fbed1050961730daaf9db718 Mon Sep 17 00:00:00 2001 From: Nick Helm Date: Mon, 14 Oct 2019 14:11:25 +1300 Subject: [PATCH] Fix unresponsive Help menu in macOS * src/nsterm.m (ns_check_menu_open): Don't postpone mouse drag and non-user-generated mouse down events (Bug#31371). --- src/nsterm.m | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/nsterm.m b/src/nsterm.m index bbd2c84..cc21ec3 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -4292,14 +4292,22 @@ in certain situations (rapid incoming events). NSEvent *theEvent = [NSApp currentEvent]; struct frame *emacsframe = SELECTED_FRAME (); - [menu cancelTracking]; - menu_will_open_state = MENU_PENDING; - emacs_event->kind = MENU_BAR_ACTIVATE_EVENT; - EV_TRAILER (theEvent); - - CGEventRef ourEvent = CGEventCreate (NULL); - menu_mouse_point = CGEventGetLocation (ourEvent); - CFRelease (ourEvent); + /* On macOS, the following can cause an event loop when the + Spotlight for Help search field is populated. Avoid this by + not postponing mouse drag and non-user-generated mouse down + events (Bug#31371). */ + if (([theEvent type] == NSEventTypeLeftMouseDown) + && [theEvent eventNumber]) + { + [menu cancelTracking]; + menu_will_open_state = MENU_PENDING; + emacs_event->kind = MENU_BAR_ACTIVATE_EVENT; + EV_TRAILER (theEvent); + + CGEventRef ourEvent = CGEventCreate (NULL); + menu_mouse_point = CGEventGetLocation (ourEvent); + CFRelease (ourEvent); + } } else if (menu_will_open_state == MENU_OPENING) { -- 2.20.1 (Apple Git-117) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 14 08:44:41 2019 Received: (at 31371) by debbugs.gnu.org; 14 Oct 2019 12:44:41 +0000 Received: from localhost ([127.0.0.1]:38318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJziK-0008Dh-V6 for submit@debbugs.gnu.org; Mon, 14 Oct 2019 08:44:41 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41041) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJziI-0008DR-HJ for 31371@debbugs.gnu.org; Mon, 14 Oct 2019 08:44:38 -0400 Received: by mail-pg1-f196.google.com with SMTP id t3so10057001pga.8 for <31371@debbugs.gnu.org>; Mon, 14 Oct 2019 05:44:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NvACQKktrxg8BYLNpEif7VNnDYcOn4avFvwbRY7OxuU=; b=pBLiobrFY6RSEfxwtQerP7gUwL9FdJJNIiTZAaM5AJKsyRTSj7VMKmhI9AgSAgyiaw IzksUplKHYbqAB79bqF7PqlhItz1LnLbuVW6uLz49QvtFl8LPoJ/lDzk4+Y+Cj/ltSw6 S5gofeYK+fM0WmEIIDcl2S7cGl1eY6HOdWCOqN85kDYXMfHdxkxfXOqZkCxRx6Guqha/ iZ+/MjeITb10HCkPM9PC1dIWiaUfda8FsW6EbSmqr7TIgFEeUcpdryQcniMIJS2lvTlI aCkEfKF2r/nHZolzcNSMq3czju06djMwcjYrXLr76ZXQBr4A1+/XbJD5R561EK16AGXD y6DA== X-Gm-Message-State: APjAAAUnNgW5obPkFE5/XC+FOgP6b9+q36JQBPl9vNVPzrJROUn4XfFs 3iO6qKFYhJ8tev7PVMDOQjidXTiWHZuEGyEDJq0= X-Google-Smtp-Source: APXvYqxc0NwuGeLdku0/Ydpb/ut2J34rRmNtxLB3q02uqHIFg5NEUgssNMhxCDeobORKalcjr3tdYf5BKwX6r6igOso= X-Received: by 2002:a62:1bd3:: with SMTP id b202mr32534584pfb.50.1571057072508; Mon, 14 Oct 2019 05:44:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Stefan Kangas Date: Mon, 14 Oct 2019 14:44:21 +0200 Message-ID: Subject: Re: bug#31371: 26.1; Menu-bar stops working after search To: Nick Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 31371 Cc: Robert Pluim , 31371@debbugs.gnu.org, Alan Third 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: -0.7 (/) > Thanks for testing. Updated patch attached. Thanks. Are there any objections to installing this fix? Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 14 08:56:08 2019 Received: (at 31371) by debbugs.gnu.org; 14 Oct 2019 12:56:08 +0000 Received: from localhost ([127.0.0.1]:38322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJztQ-00025C-0v for submit@debbugs.gnu.org; Mon, 14 Oct 2019 08:56:08 -0400 Received: from mail-wr1-f51.google.com ([209.85.221.51]:41431) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJztL-00024q-OA for 31371@debbugs.gnu.org; Mon, 14 Oct 2019 08:56:05 -0400 Received: by mail-wr1-f51.google.com with SMTP id p4so3736863wrm.8 for <31371@debbugs.gnu.org>; Mon, 14 Oct 2019 05:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version; bh=BMWnVHB1dwck34bUjoAWOsdtl0OPmmQf+FJ1/SASP/Y=; b=JZiDb7alOmLfj5kjxw3yUthD1CAQ7w96/UUy9ScsUTWK3M9EzmObPoV/v8cvhoqD5d pfs8ZgDwA4hGUxxuq1c4h65Kz1gTgxLHofxeqkNLDuu1o5PS0ZoDUqLftScJPQG3KZPz efb6I5RrX69c0dsSr4jkmlUhjWjWVaykBmUSjuP3NabeFzXcbAx5QQ0NZWtmA/nGRJCv ZY4J7L/3G+0k+V1QWDtBbUnHGd/O3iIJ+EHnqYeBt80H84BdTZgriku6SFQ+QzTYfbqO IBVWjEM+4SOEKVDIC0eOgtytu1Rv6iB07qj7PRLRNICRp27bc0jxJirHze+vIy3EaZkR Qezg== 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:references:date:in-reply-to :message-id:mime-version; bh=BMWnVHB1dwck34bUjoAWOsdtl0OPmmQf+FJ1/SASP/Y=; b=Z1TpY1ZW1sWzkquX5j/Y+saprn3nlG4wbUk+CO50tXURjx8JV81KTRABtgKpOIdzyg KdXaC57KOG0HWdPVcA+5hS0LsCxQ9i40PXVVHlfwpi2iUMfcQS4szKc60iK95r6xCmVh LcaQaTPhe4NE4BHxK3Ac8wKL0hMRBt0vgZ7ZuptAohI5Tx2BdkBhvoNxeVL+jIiecFgq 52cBaUgdvLSTM9yvWgJReCs39F+5xk9sblE6VHwsLxL/hEe1bCB7HghGRpUaCVPfAMMu pPL+UOn8VXzBDnIoW0ljbxGguJP2td6PIbaeVPWLQoPtIWlu0G0Pq45iexsb2fOitnY2 0itA== X-Gm-Message-State: APjAAAW2XnGdAvGkqGwVlkSmFwfb0CyyAUJcv9ErtElKHf67D75L37ww D+zzPZ+BT5tDqbGBmxGt3F5A78he X-Google-Smtp-Source: APXvYqy53oVum+JFsF+c5IgOzAo42MywgnWRhnR/0oMJCeXRyThlhs25RA5JkjV7BUsRXOxt4ccRXQ== X-Received: by 2002:adf:8526:: with SMTP id 35mr27691881wrh.266.1571057757302; Mon, 14 Oct 2019 05:55:57 -0700 (PDT) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id l6sm14641892wmg.2.2019.10.14.05.55.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2019 05:55:56 -0700 (PDT) From: Robert Pluim To: Stefan Kangas Subject: Re: bug#31371: 26.1; Menu-bar stops working after search References: Date: Mon, 14 Oct 2019 14:55:54 +0200 In-Reply-To: (Stefan Kangas's message of "Mon, 14 Oct 2019 14:44:21 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31371 Cc: Alan Third , Nick , 31371@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: -1.0 (-) >>>>> On Mon, 14 Oct 2019 14:44:21 +0200, Stefan Kangas said: >> Thanks for testing. Updated patch attached. Stefan> Thanks. Are there any objections to installing this fix? LGTM. Robert From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 14 09:15:06 2019 Received: (at 31371) by debbugs.gnu.org; 14 Oct 2019 13:15:06 +0000 Received: from localhost ([127.0.0.1]:38326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK0Bl-0002Wq-QZ for submit@debbugs.gnu.org; Mon, 14 Oct 2019 09:15:06 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:42472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK0Bj-0002W5-JT for 31371@debbugs.gnu.org; Mon, 14 Oct 2019 09:15:04 -0400 Received: by mail-wr1-f50.google.com with SMTP id n14so19654695wrw.9 for <31371@debbugs.gnu.org>; Mon, 14 Oct 2019 06:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=rdApZB2Zj8vbXquD9TrAjTmn2axrDMlA+KTJZ/+zKQ8=; b=oM1wRW8d8vtYsUds1cPYMwAfMxQkzuAfjOyn8XY2WZw1mgn7v7NCbQ6T2KPxoLVw9E cYb+QLdMc7X/18G5//wbDAntwCozxKg2SEf1NTn5QsUQCQ+Vp+UGkOzRtPDgKXg4fK6k 4iWbPubnPIN5WXS/+VQAklrh6KXUXrZrf2Ed0Y/LdMIJr7wA7srOtSUUhBnqdyJa7Hrh V9GEQh5ytdJyJdu5amILcjnp8llu3UzcdkzxQU/mUnRUIA3HhKDdzUe7f6/NnNGijZwN L/cg0T0pJ50xOnyJLdJ61VPBfD+GwbVcHpevINI0EKWeyd7yZDTvMpOYej+jp4O8cIGM P5Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=rdApZB2Zj8vbXquD9TrAjTmn2axrDMlA+KTJZ/+zKQ8=; b=bSbi3Y8PCR3Nr5ei/9wP1admfswre/qJyOeAwP75XfQVxMcjLQAf4d5q7EXjAMn5ns ScEj/FR349b/KDZrYZAUXhb/U6Tb22DBKvulEUHYEkOmES99FMVZVGLlcV0Sic/YZhkd XJdlhvgRwC0CWVunL+Kyor9/l64Cf60sXFwrCPakxRyWjLO6nsYpVfYej/0bvwIR3M+A xu0MbFElPdqOuW1ziUedZugWn+1LBqv+9kWD0T03egVU+pOq8xp/SQVspTj7F+rTun2W a6Yz51UP2Z9j8S4zpQUJTYLc8MjuYcwI4+SfnAHg5ahE8RFRPKvGMVp0KS8hi46242Al LdYA== X-Gm-Message-State: APjAAAXgpI+35cR9GLYbluLtzPGEyZ0KFQpgEQzfWYANOSgV8+WFA8eb EvJl+4rKiWNLFV4DyY7F2zI= X-Google-Smtp-Source: APXvYqxDGWNknekijMmQAUWE4hGskSUBVdj4Vf3adsDe5tk9dMqoSu2+6Su8Ao+zisSHn/canzpPKg== X-Received: by 2002:adf:f704:: with SMTP id r4mr25664309wrp.30.1571058897424; Mon, 14 Oct 2019 06:14:57 -0700 (PDT) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-d9f0-b530-d0ca-1914.holly.idiocy.org. [2001:8b0:3f8:8129:d9f0:b530:d0ca:1914]) by smtp.gmail.com with ESMTPSA id s1sm26259180wrg.80.2019.10.14.06.14.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Oct 2019 06:14:56 -0700 (PDT) Date: Mon, 14 Oct 2019 14:14:55 +0100 From: Alan Third To: Stefan Kangas Subject: Re: bug#31371: 26.1; Menu-bar stops working after search Message-ID: <20191014131455.GB45622@breton.holly.idiocy.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 31371 Cc: Robert Pluim , Nick , 31371@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: -0.7 (/) On Mon, Oct 14, 2019 at 02:44:21PM +0200, Stefan Kangas wrote: > > Thanks for testing. Updated patch attached. > > Thanks. Are there any objections to installing this fix? My only concern is that I believe the postponement stops lisp codie being run within the NS event loop, but if nobody’s seeing any crashes with the patch applied then I have no problem with it being applied. (caveat: I’ve not tried the patch myself) -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 05 10:13:31 2019 Received: (at 31371) by debbugs.gnu.org; 5 Nov 2019 15:13:32 +0000 Received: from localhost ([127.0.0.1]:38950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iS0WP-0000De-8A for submit@debbugs.gnu.org; Tue, 05 Nov 2019 10:13:31 -0500 Received: from host.gofardesign.uk ([208.79.239.190]:44574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iS0WN-0000DO-8K for 31371@debbugs.gnu.org; Tue, 05 Nov 2019 10:13:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=5qxUnlnqUqMkqkfFMz2wUTD4T/jqLnRhgZhaWyTMq8w=; b=pD4hZR6CrU1NHNr36LEzixHIBr 6jxSJe8HITiDl85cIigtVUcgd1lVYqO6sS9vKxpQJ4aPOc89ZYrJIYwmR9EJrvI1n8MJM9WeAbi6r EfuyZk4Xa7quwh++al0O/KORurYFnARsp2bodlBxM3ywnW7d80LjRj5OoZ1vPwVCxkGE=; Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:33166 helo=localhost) by host.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iS0WG-00005U-Er; Tue, 05 Nov 2019 09:13:21 -0600 From: Stefan Kangas To: Alan Third Subject: Re: bug#31371: 26.1; Menu-bar stops working after search In-Reply-To: <20191014131455.GB45622@breton.holly.idiocy.org> (Alan Third's message of "Mon, 14 Oct 2019 14:14:55 +0100") References: <20191014131455.GB45622@breton.holly.idiocy.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Date: Tue, 05 Nov 2019 16:13:18 +0100 Message-ID: <87y2wu5pbl.fsf@marxist.se> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: host.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: host.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 31371 Cc: Robert Pluim , Nick , 31371@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: -1.0 (-) Alan Third writes: > On Mon, Oct 14, 2019 at 02:44:21PM +0200, Stefan Kangas wrote: >> > Thanks for testing. Updated patch attached. >>=20 >> Thanks. Are there any objections to installing this fix? > > My only concern is that I believe the postponement stops lisp codie > being run within the NS event loop, but if nobody=E2=80=99s seeing any cr= ashes > with the patch applied then I have no problem with it being applied. > > (caveat: I=E2=80=99ve not tried the patch myself) Thanks. I haven't seen any crashes, but I haven't subjected it to any heavy testing besides making sure that it solves the issue. Perhaps we could apply it to give it some real world testing. We could always revert the patch before Emacs 27.1 is released if it turns out to cause any problems. Any objections to that plan? Otherwise, I'll go ahead and do that in a couple of days. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 09 05:18:56 2019 Received: (at 31371) by debbugs.gnu.org; 9 Nov 2019 10:18:56 +0000 Received: from localhost ([127.0.0.1]:48251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTNpY-00008P-JP for submit@debbugs.gnu.org; Sat, 09 Nov 2019 05:18:56 -0500 Received: from mail-pl1-f178.google.com ([209.85.214.178]:44815) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTNpV-000089-FL for 31371@debbugs.gnu.org; Sat, 09 Nov 2019 05:18:54 -0500 Received: by mail-pl1-f178.google.com with SMTP id az9so4588476plb.11 for <31371@debbugs.gnu.org>; Sat, 09 Nov 2019 02:18:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=f4xwNivAR6WQeBF5L88yb/aAjkmVj0AuNlc0/PNnZSw=; b=oWF5AOek9o/ygRKTZwTV9yZwy3tZiaGC/ZvamEb1a/MKg87vshoiqeZ+Z26Ae7XCka 8+58V3LfXfcAMrD2T6J+PgCRY33wHhBEGT5OqYs6xfsKeQHXmGGI1dT9U0umLD6KCbzM 0yGb3W7FkwbQWAhnFEHaygY+gkvPLiw7qEtWVmTLHjpW3dGQA2J/XfhavQxZMw7PzoCy Yy5pvHUzZEp2OQmIPTD04Emoq5PXr94q4Y5gNn7OKQNgacBanAs345FYOfjIPXfjGNFJ JvrFZ0YLyuscTMmBteq0FFBhMdbM35v+b6vzjTckEGHuOruLNEYYY6+jB1zoRX43H8O5 T8JQ== X-Gm-Message-State: APjAAAVcQ4FdsEc1RKggJBcRhSt+cGKpMov+n+ZGkFHWPbJsLnsWyDV7 Sv9ZKEx2e/Jk5/+RulCiL4U2eUAi6eEKpXZhoR4= X-Google-Smtp-Source: APXvYqyD1wmZbAl8mKm7bdJgl98387vwkpyx2Ekw9hdMMGdcORvkMyJ1DWF30hcGsUfORUMnjsdiw2KwyO/z1jyRK7s= X-Received: by 2002:a17:902:b482:: with SMTP id y2mr6786901plr.128.1573294727629; Sat, 09 Nov 2019 02:18:47 -0800 (PST) MIME-Version: 1.0 References: <20191014131455.GB45622@breton.holly.idiocy.org> <87y2wu5pbl.fsf@marxist.se> In-Reply-To: <87y2wu5pbl.fsf@marxist.se> From: Stefan Kangas Date: Sat, 9 Nov 2019 11:18:36 +0100 Message-ID: Subject: Re: bug#31371: 26.1; Menu-bar stops working after search To: Alan Third Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 31371 Cc: Robert Pluim , Nick , 31371@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: -0.6 (/) Stefan Kangas writes: > Perhaps we could apply it to give it some real world testing. We > could always revert the patch before Emacs 27.1 is released if it > turns out to cause any problems. Any objections to that plan? > Otherwise, I'll go ahead and do that in a couple of days. No objections within 4 days, so I've now pushed the fix to master as commit 6daa80d04e. I'll leave the bug open for another couple of weeks. Please report here if you see any issues related to this patch. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 09 06:29:18 2019 Received: (at 31371) by debbugs.gnu.org; 9 Nov 2019 11:29:18 +0000 Received: from localhost ([127.0.0.1]:48307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTOvd-000221-T8 for submit@debbugs.gnu.org; Sat, 09 Nov 2019 06:29:18 -0500 Received: from mail-wr1-f42.google.com ([209.85.221.42]:46946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTOvc-00021k-GR for 31371@debbugs.gnu.org; Sat, 09 Nov 2019 06:29:16 -0500 Received: by mail-wr1-f42.google.com with SMTP id b3so9746141wrs.13 for <31371@debbugs.gnu.org>; Sat, 09 Nov 2019 03:29:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0OD+sZ81ZAekTo6vVrNpAnl+7eEUkm8wZk+0q9U2iNE=; b=J3dvnViHXup66JpP01LufQHY1k1BTEP25ZH5pmWoWR8LrbdD9A/siU1trnG5Dx3pDH XJWRoBH46SnXrh4iVmrYdcOmEXDqG79sTmm6CYaRZvZlM3BVDzlIriKul7q+BIe9mcub UOKhxYeqxlKkgvvjF9kwq+wepHVkHKghvLoeGlw2YQqcufE+Wjapmqm48oVVYaPhjb3a 14ipeDm9eGpeE0X97gXjjwUi/OeVaf5C+6b73fAHe24Y851YgfazFjH6300SxrxKiR8h CX+YYZTWLVc6xdlucwmT9jp+YgacihbFejVPZ952t9tGGfGKQaEuKW8a8UV14mxAbBbE mFjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=0OD+sZ81ZAekTo6vVrNpAnl+7eEUkm8wZk+0q9U2iNE=; b=NclMsawmy+C2sSuqlufMdLo+j8Qoh/lEUiT/ewbY5jP1009gSblKqxkWgf1IYL8juw aKrIxB0cJ08z7QXafVXvycdomT85ESi8YbVhmEeJiMqRmN/OXbUGH1t8K20gFQ65dQZx 3H6GYyFYlmqrRaXrzKGikqw4X9P8Ol+jlUPZ2QsQuclvOmMoKTzcvJ5sXDinhOzXnzH9 KkNnAf7p02p9Bb/wY9+yfv9dn9/gRMk9BIZyzPemcJPURb0zjHrxqtDUR5EAm1csLJpQ joFrekUSJTULC7eLsgBIZoox3i5tA9tw5d536Q03MTAWMJb7uSOm0yGq6DqbgH9Vy3cc CWsQ== X-Gm-Message-State: APjAAAVb663pVrH3EAFz1N5IK5NgrKvd0Kr38nLMyMeGkd3MEe3c2rsB Qrcud+v2+NNRbkEPpPOeGQI= X-Google-Smtp-Source: APXvYqyR7m7W/qn33YpZTYqMfnE5y7TudAP07JDqIpd12dNAvmOdtX54baUugRpfVHWkt7BwUmH2gg== X-Received: by 2002:a5d:526f:: with SMTP id l15mr9584340wrc.169.1573298950340; Sat, 09 Nov 2019 03:29:10 -0800 (PST) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-1099-0bb9-742d-01c0.holly.idiocy.org. [2001:8b0:3f8:8129:1099:bb9:742d:1c0]) by smtp.gmail.com with ESMTPSA id i71sm18184812wri.68.2019.11.09.03.29.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Nov 2019 03:29:09 -0800 (PST) Date: Sat, 9 Nov 2019 11:29:07 +0000 From: Alan Third To: Stefan Kangas Subject: Re: bug#31371: 26.1; Menu-bar stops working after search Message-ID: <20191109112907.GA43897@breton.holly.idiocy.org> References: <20191014131455.GB45622@breton.holly.idiocy.org> <87y2wu5pbl.fsf@marxist.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 31371 Cc: Robert Pluim , Nick , 31371@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: -0.6 (/) On Sat, Nov 09, 2019 at 11:18:36AM +0100, Stefan Kangas wrote: > Stefan Kangas writes: > > > Perhaps we could apply it to give it some real world testing. We > > could always revert the patch before Emacs 27.1 is released if it > > turns out to cause any problems. Any objections to that plan? > > Otherwise, I'll go ahead and do that in a couple of days. > > No objections within 4 days, so I've now pushed the fix to master as > commit 6daa80d04e. I'll leave the bug open for another couple of > weeks. Please report here if you see any issues related to this > patch. Thanks. -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 31 05:29:33 2019 Received: (at 31371) by debbugs.gnu.org; 31 Dec 2019 10:29:33 +0000 Received: from localhost ([127.0.0.1]:33757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imEmK-0000Qo-Qr for submit@debbugs.gnu.org; Tue, 31 Dec 2019 05:29:33 -0500 Received: from ted.gofardesign.uk ([67.225.143.91]:37524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imEmJ-0000QU-Ml; Tue, 31 Dec 2019 05:29:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ap14Ps8tT0zXdAC+79WtE3lRItIuv3oMirrI/y5qVeQ=; b=fxgEyS+xdofQdPWM8IPJSMyJvT zZ6/W6i2OATr3dmQtckK+ufSq4/cL03Oo1stvcKuPC7uERGjjBwTk2a32VJlDS1sMISstqntGW5bl MjPD+uR60/i79U7ZMA93WkBQ4/FIgzI4H6myFbHixGrnqG1ZNj1FURaEHPBeiLNS+2Q/68haaxh/m PP0VnHay7b6I1orDCxzGcTYKGLAwojr+3f0RDsxTi9yBVrdprvScneWIaGRSQoZWvlbyEKE1HC9ea TCYZ19ahdGNfxLz2Sl4CsPo/FLAYv7/zBMeSEUJOfetjw7X5leYwJtQUSFF2oVna1rlSlkX0Xf0VR ozkr9waQ==; Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:41886 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1imEmD-001hIF-QB; Tue, 31 Dec 2019 05:29:26 -0500 From: Stefan Kangas To: Alan Third Subject: Re: bug#31371: 26.1; Menu-bar stops working after search In-Reply-To: (Stefan Kangas's message of "Sat, 9 Nov 2019 11:18:36 +0100") References: <20191014131455.GB45622@breton.holly.idiocy.org> <87y2wu5pbl.fsf@marxist.se> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Tue, 31 Dec 2019 11:29:24 +0100 Message-ID: <87woacbxff.fsf@marxist.se> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31371 Cc: Robert Pluim , Nick , 31371@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: -1.0 (-) close 31371 27.1 thanks Stefan Kangas writes: > No objections within 4 days, so I've now pushed the fix to master as > commit 6daa80d04e. I'll leave the bug open for another couple of > weeks. Please report here if you see any issues related to this > patch. Since no one has reported any issues with this patch within 7 weeks, I'm closing this bug report now. Best regards, Stefan Kangas From unknown Sun Jun 15 08:37:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 28 Jan 2020 12:24:07 +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