From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.devel Subject: Re: Context menus and mouse-3 Date: Thu, 17 Sep 2020 08:49:17 +0900 Message-ID: <26336BF5-CDA2-4CED-90B9-5CCB1155CFD2@misasa.okayama-u.ac.jp> References: <67FBE6CE-73C5-4C14-8531-AB55ADE3CC36@misasa.okayama-u.ac.jp> <87d02lykl3.fsf@mail.linkov.net> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.15\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17515"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?B?5Zu95bqD5Y2T5Lmf?= , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 17 01:50:28 2020 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 1kIhBx-0004PC-6i for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Sep 2020 01:50:25 +0200 Original-Received: from localhost ([::1]:48198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIhBw-0004FV-5Z for ged-emacs-devel@m.gmane-mx.org; Wed, 16 Sep 2020 19:50:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIhBC-0003q6-3T for emacs-devel@gnu.org; Wed, 16 Sep 2020 19:49:38 -0400 Original-Received: from mlsec.cc.okayama-u.ac.jp ([150.46.12.254]:17853) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIhB9-0000aV-Bc for emacs-devel@gnu.org; Wed, 16 Sep 2020 19:49:37 -0400 Original-Received: from jlsv301.okayama-u.ac.jp (unknown [150.46.12.5]) by mlsec.cc.okayama-u.ac.jp with smtp id 40cc_1f49_21ebedc5_bc1c_47aa_9bd9_238b385d1267; Thu, 17 Sep 2020 08:49:18 +0900 Original-Received: from [192.168.1.53] (vesta.misasa.okayama-u.ac.jp [150.46.48.154]) by jlsv301.okayama-u.ac.jp (Postfix) with ESMTPSA id F2C88760003; Thu, 17 Sep 2020 08:49:17 +0900 (JST) In-Reply-To: <87d02lykl3.fsf@mail.linkov.net> X-Mailer: Apple Mail (2.3445.104.15) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 11 X-NAI-Spam-Score: 0.1 X-NAI-Spam-Rules: 5 Rules triggered GME_TWTRE=0.1, EDT_SA_AU_PASS=0, EDT_SA_DN_PASS=0, EDT_SA_TS_TEMP_ERROR=0, RV6867=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6867> : inlines <7226> : streams <1867663> : uri <3123770> Received-SPF: pass client-ip=150.46.12.254; envelope-from=tkk@misasa.okayama-u.ac.jp; helo=mlsec.cc.okayama-u.ac.jp X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/16 19:49:28 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:255944 Archived-At: >> - Horizontal scroll by wheel is supported. >> - Moving text using mouse is supported. > Please explain how horizontal scroll by wheel is supported. > Also please explain how moving text using mouse is supported. Try something like this. (setq mouse-wheel-tilt-scroll t) (setq mouse-drag-and-drop-region 'meta) >> * Contextual menu is not supported yet. >>=20 >> I think that depending on a thing at mouse event (file, dir, or URL), >> choice of operation should be popped up. When there is no = suggestion, >> `Edit' menu should be popped up. Also, by click on mode-line, buffer >> list should be popped up. >>=20 >> I am using a global minor mode `poplife-mode' that puts commands on >> mouse-3. I attach a file with poplife-mode to show the idea. >=20 > Thanks, this is a good starting point for adding contextual menu. > I tried poplife-mode, and it pops up the menu on mouse-3, > but it seems only when there is the selection already, > i.e. it doesn't pop up the menu when nothing is selected. > Is this intended to work this way? That=E2=80=99s not intended behavior! I found that for unknown reason, poplife-mode does not overwrite=20 [mouse-3] started with emacs -Q. I=E2=80=99ll fix it and come back soon while the topic is hot.