unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: `scroll-all-mode' hard to customize
Date: Sun, 28 Jul 2002 19:12:53 -0600 (MDT)	[thread overview]
Message-ID: <200207290112.g6T1Crp12929@aztec.santafe.edu> (raw)
In-Reply-To: <E17YOJF-0002bi-00@bundalo.shootybangbang.com> (message from John Paul Wallington on Sat, 27 Jul 2002 10:56:25 +0100)

This patch looks correct.  Can you install it or do you
need someone else to do so?

To get it into 21.3, please install it in the RC branch
as well as the trunk.

From: John Paul Wallington <jpw@shootybangbang.com>
To: emacs-pretest-bug@gnu.org
Subject: `scroll-all-mode' hard to customize
Date: Sat, 27 Jul 2002 10:56:25 +0100

Symptoms:

M-x customize-variable scroll-all-mode

save its value to "Off"

restart Emacs - hey! it's on!

Here is a patch:

2002-07-27  John Paul Wallington  <jpw@shootybangbang.com>

	* scroll-all.el (scroll-all-mode): Handle numeric arg.  Use `if'
	instead of `cond'.

Index: scroll-all.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/scroll-all.el,v
retrieving revision 1.10
diff -u -r1.10 scroll-all.el
*** scroll-all.el	24 Apr 2002 20:37:04 -0000	1.10
--- scroll-all.el	27 Jul 2002 09:46:13 -0000
***************
*** 125,136 ****
  (defun scroll-all-mode (arg)
    "Toggle Scroll-All minor mode."
    (interactive "P")
!   (setq scroll-all-mode (not scroll-all-mode))
!   (cond
!    ((eq scroll-all-mode 't)
!     (add-hook 'post-command-hook 'scroll-all-check-to-scroll))
!    ((eq scroll-all-mode 'nil)
!     (remove-hook 'post-command-hook 'scroll-all-check-to-scroll))))
  
  (provide 'scroll-all)
  
--- 125,136 ----
  (defun scroll-all-mode (arg)
    "Toggle Scroll-All minor mode."
    (interactive "P")
!   (setq scroll-all-mode
! 	(if (null arg) (not scroll-all-mode)
! 	  (> (prefix-numeric-value arg) 0)))
!   (if scroll-all-mode
!       (add-hook 'post-command-hook 'scroll-all-check-to-scroll)
!     (remove-hook 'post-command-hook 'scroll-all-check-to-scroll)))
  
  (provide 'scroll-all)
  

In GNU Emacs 21.3.50.5 (i686-pc-linux-gnu, X toolkit)
 of 2002-07-25 on bundalo

-- 
John Paul Wallington

       reply	other threads:[~2002-07-29  1:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E17YOJF-0002bi-00@bundalo.shootybangbang.com>
2002-07-29  1:12 ` Richard Stallman [this message]
2002-07-29  3:11   ` `scroll-all-mode' hard to customize John Paul Wallington
2002-07-29 13:14     ` Glenn Morris
2002-07-30  1:00       ` Richard Stallman
2002-08-09  8:02 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200207290112.g6T1Crp12929@aztec.santafe.edu \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).