From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joseph Turner Newsgroups: gmane.emacs.devel Subject: Re: How to autoload easy-menu? Date: Sat, 14 Oct 2023 18:35:05 -0700 Message-ID: <87v8b88y5y.fsf@breatheoutbreathe.in> References: <87o7h84ptr.fsf@breatheoutbreathe.in> <87pm1jv6r2.fsf@breatheoutbreathe.in> <87a5slg6dc.fsf@breatheoutbreathe.in> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30814"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs Devel Mailing List , Adam Porter To: Eshel Yaron Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 15 07:10:12 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qrtOC-0007ka-Nh for ged-emacs-devel@m.gmane-mx.org; Sun, 15 Oct 2023 07:10:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrtNq-0005o6-Ux; Sun, 15 Oct 2023 01:09:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrq3L-00021j-0q for emacs-devel@gnu.org; Sat, 14 Oct 2023 21:36:24 -0400 Original-Received: from out-203.mta1.migadu.com ([2001:41d0:203:375::cb]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrq3I-0001BA-H5 for emacs-devel@gnu.org; Sat, 14 Oct 2023 21:36:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1697333774; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9y6KpTTOfDOdabqH423JfbPDBeS0n06sMxgFZpd8Bfk=; b=E6w8O4NQwhyxe4yRQ09/37cu9yN10g9pL31YW4fl4q+U4NipKhCQ8KXYloMzJYNuWHacY1 KTwvDWgBvBjry+oKefxfihGMNHcuinweGz0hsIZwU67M1p+xRtl9ARx3O0Ep5jmvVoPovh /UDMNfVNmFma1NF1AsyeC4lEuW/Ml9s= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-reply-to: X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:203:375::cb; envelope-from=joseph@breatheoutbreathe.in; helo=out-203.mta1.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 15 Oct 2023 01:09:41 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311467 Archived-At: Eshel Yaron writes: > Joseph Turner writes: > >> Thank you for testing out hyperdrive.el!!! Now, the "Tools > Hyperdrive" >> menu is added only after the user calls `hyperdrive-menu-bar-mode': >> >> https://git.sr.ht/~ushin/hyperdrive.el/commit/0869edbd >> > > Nice :) > > FYI when trying this on macOS I had some issues with the `hyper-gateway` > program, it basically fails and quits after most hyperdrive.el commands. > For example, when I call `hyperdrive-hyper-gateway-version` it prints: > > --8<---------------cut here---------------start------------->8--- > Request: { > method: 'GET', > url: '/', > headers: { > host: 'localhost:4973', > 'user-agent': 'curl/8.1.2', > accept: '*/*', > 'accept-encoding': 'deflate, gzip' > } > } > Requested: { > method: 'GET', > url: 'hyper://', > status: 500, > responseHeaders: { 'content-type': 'text/plain; charset=utf-8' } > } > Error [ERR_HTTP_HEADERS_SENT]: Cannot write headers after they are sent to the client > at new NodeError (node:internal/errors:406:5) > at ServerResponse.writeHead (node:_http_server:345:11) > at Server. (file:///usr/local/lib/node_modules/hyper-gateway/src/index.js:131:11) > at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { > code: 'ERR_HTTP_HEADERS_SENT' > } > node:internal/errors:497 > ErrorCaptureStackTrace(err); > ^ > > Error [ERR_HTTP_HEADERS_SENT]: Cannot write headers after they are sent to the client > at new NodeError (node:internal/errors:406:5) > at ServerResponse.writeHead (node:_http_server:345:11) > at Server. (file:///usr/local/lib/node_modules/hyper-gateway/src/index.js:139:11) > at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { > code: 'ERR_HTTP_HEADERS_SENT' > } > --8<---------------cut here---------------end--------------->8--- Thank you for the report!! We can track it here: https://github.com/RangerMauve/hyper-gateway/issues/20 >> We may consider adding a defcustom to make `hyperdrive-menu-bar-mode' >> add "Hyperdrive" menu to the global map instead of a submenu. WDYT? > > I don't really have a strong opinion about this one. Okay :) Joseph