From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#53776: Modeline indicator when using define-minor-mode Date: Mon, 07 Feb 2022 23:40:22 +0100 Message-ID: <871r0ewbah.fsf@rub.de> References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> <87r18in49c.fsf@rub.de> <87iltsmzn9.fsf@web.de> <87tudc2m3n.fsf@gmx.net> <878run7jea.fsf@web.de> <87sfsvd1wc.fsf@rub.de> <874k5b7di4.fsf@web.de> <87mtj3cyfp.fsf@gmx.net> <87v8xr5wj6.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13179"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 53776@debbugs.gnu.org, goncholden To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 07 23:44:50 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1nHCkc-0003JE-O6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 23:44:50 +0100 Original-Received: from localhost ([::1]:43198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHCkb-0002Au-MD for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 17:44:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHCh2-0004XJ-1D for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 17:41:09 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50166) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHCgw-0005kU-NB for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 17:41:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHCgw-00064T-Ly for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 17:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Feb 2022 22:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53776 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 53776-submit@debbugs.gnu.org id=B53776.164427363223286 (code B ref 53776); Mon, 07 Feb 2022 22:41:02 +0000 Original-Received: (at 53776) by debbugs.gnu.org; 7 Feb 2022 22:40:32 +0000 Original-Received: from localhost ([127.0.0.1]:44062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHCgS-00063W-1w for submit@debbugs.gnu.org; Mon, 07 Feb 2022 17:40:32 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:57793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHCgR-000637-1y for 53776@debbugs.gnu.org; Mon, 07 Feb 2022 17:40:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644273623; bh=Ru7alcN1EXPvGPes9tCmlvenEc106WAY0NxFjAsz5K8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=VTMnnSNI9i+wsMp4gEsZwGx4bhsRu4yw67kIByhnIakNx4UooRFDQ9c/lI7qvBDg0 oLSCRt6hc0LgGyjtR9E8BX0lokdwP4c960QXBvnklVOWGrv5DKHue30u1YP+hXKWZz DAqy12HU097HMeyG7IgCUuY3ZwB1TulIJ+VSI7Cw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs2 ([89.246.36.229]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N5G9n-1oHaHC2xGf-011BMC; Mon, 07 Feb 2022 23:40:23 +0100 In-Reply-To: <87v8xr5wj6.fsf@web.de> (Michael Heerdegen's message of "Mon, 07 Feb 2022 01:51:25 +0100") X-Provags-ID: V03:K1:+wvWqiKwrr2Jj5vJJH8ZDi4uTGy7ZX58FaCgq/46zt0k6gxKevi uwLj889tHAwwg/QRQ6PJS6IQc1u2LT3oQYYxC7Y3KPNL/fzJfl0MoeGM/iwnruYTOi8m6om r1yQhbFMhLiNjRrpiQnMr9VZuq3h27+GPZUJgBLSu9QSyxzdFdGwoU8wIn1M82MinUQ0yPc t58EsZ2DlzV4IYJ2Fti+Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:uSj2y3bsBus=:aePg+70Dn41WYnDNyigM/h rIkwNakLWd8GyakQaIlFYCZ1mqXCXfnRMJVWaoMp8NkxXRP5D3IchuesL99qFtB/wcXAciGbj Olo9uUhfdbsdC1l9ZZv9MT9vFlDIf+81bgkACVXi13dtrxmLxAiQcRR2Qfwz9E8MnoW2CNtgU uNFbzjQY6l1FL2IMV1Zo5G6u9RztMfNnl2kWBQEi9Ml8f8i2+KqYI/1nHiRxA3E/qa+R/Ajru 6alGPi3Mm4ok+YI7Up2EVhKAXuLBajiAVLtAgblLfwuCGlSGVJg9qYOJhHeoaS3TaDxjG6FXt Ge37a+s4JKSuw3PTpLsduyd3EnKRbo2nqMlNOQremyPKimx1jIqsphNmKdDIRKS19XCxFDsHh vnbTpOs8vZggua0/gzVzhEUFjDR9hvvFoym0oXQiqyJpFm/za58wIYHA4tOBsdYaDFiWd7S9U EVlOY4u+mfT9G2u6/A05oHddZQUkrIv2Kt1TtfQFbiHW+ECxzn5vIqpgl5eHqqSVWG7ZIfJOm cIfORCgsxyOuJD2tV3CmGiOhOmClwUMxFkbpMGunL//8VAPDyf8ZDDZIpgS6aSxMGBUhSmlpC 0zVVZH1hmM2AcUnY1o//+eQQgX/83GKDxsSue29A8yw5ogKRn7AY/+Qtg768lVzBLHOdW7OWm kJUJZ3T7lg1htAuxsE6ym0kMvRfjqcS8/e5we61AKf7xs+m54OLGDiNoCRz5bnWi/h/FTf7Pv wqqPM9TIoSCVBPGlvpIw41pJY0qAKke8ttu55y/jMsWfneLGEOoEuIthOoh3IjZ20EfT32Ci X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226289 Archived-At: On Mon, 07 Feb 2022 01:51:25 +0100 Michael Heerdegen wrote: > Stephen Berman writes: > >> Since I don't have mouse-4 and mouse-5 > > These are the "keys" associated with the mouse wheel. In case you want > to scroll with the mouse wheel. Ah, ok. >> I just tried evaluating that sexp with integral values (1, 0, -1) for >>ml-scroll-amnt, and only got truncation. Maybe I don't understand what >>you mean by "let mouse-4 and mouse-5 over the mode-line de- and >>increase `ml-scroll-amnt'". Can you show me bindings I can try with a >>3-button mouse, or just with the keyboard? > > I dunno how you want to scroll. Drag with mouse-1, scroll with a wheel > or a key, something else? > > The code > > #+begin_src emacs-lisp > (defvar ml-scroll-amnt 0) > > (setq-default > mode-line-format > `(:eval (substring (format-mode-line ',mode-line-format) > ml-scroll-amnt))) > #+end_src > > has to be evaluated once. Mode-line looks like before. > > (setq ml-scroll-amnt 3) scrolls the mode-line three chars to the left. > (setq ml-scroll-amnt 0) to scroll back. Changing `ml-scroll-amnt' > changes the scroll amount. > > How you implement changing the binding of `ml-scroll-amnt' is up to you, > depends on how you want it to be. Ok. When I have more time to spend on this, I'll try to do it. Steve Berman