From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Advice on troubleshooting function to "unscroll" Date: Sun, 25 Jan 2015 17:33:20 -0800 (PST) Message-ID: <05bf1f27-c5d9-4930-ab5e-ea5170fe993b@default> References: <54C5577D.4030700@gmail.com> <871tmih6w0.fsf@wmi.amu.edu.pl> <54C56827.6030802@gmail.com> <54C5748E.4060605@gmail.com> <87ppa2flao.fsf@wmi.amu.edu.pl> <54C595A7.9020204@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1422236024 24513 80.91.229.3 (26 Jan 2015 01:33:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Jan 2015 01:33:44 +0000 (UTC) To: Will Monroe , Marcin Borkowski , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 26 02:33:40 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YFYYd-0008KW-NC for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Jan 2015 02:33:39 +0100 Original-Received: from localhost ([::1]:39564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFYYc-0000Wo-LV for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Jan 2015 20:33:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFYYQ-0000Wd-HM for help-gnu-emacs@gnu.org; Sun, 25 Jan 2015 20:33:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFYYN-0002Wh-Au for help-gnu-emacs@gnu.org; Sun, 25 Jan 2015 20:33:26 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:28048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFYYN-0002WZ-5f for help-gnu-emacs@gnu.org; Sun, 25 Jan 2015 20:33:23 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t0Q1XLU4002886 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 26 Jan 2015 01:33:21 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t0Q1XKUI012899 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 26 Jan 2015 01:33:21 GMT Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id t0Q1XJbT002212; Mon, 26 Jan 2015 01:33:20 GMT In-Reply-To: <54C595A7.9020204@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102274 Archived-At: > I'll have to go back and look at what "interactive" actually means. It means that you invoked it by name or via a key binding (which includes a menu-item binding). More precisely, it means that `called-interactively-p' returns non-nil. See also `interactive-p'. > 'scroll-up' is advised (and invoked?) in the code below. Advised, not invoked. Invoked means called. `scroll-up' is not called in the advice definition you show. > Not sure if that means that I am also invoking it interactively. The advice applies whenever and however the function is called, in particular, whether it is called interactively or not. > I thought being invoked, "as a command", meant that I was > invoking it using `M-x scroll-up`. `M-x' invokes commands interactively, but it is not the only way to do that - see above. Note that `M-: (scroll-up)' does *not* invoke `scroll-up' interactively. > Marcin, I also wondering what prompted the addition of > scroll-up-command. I think Drew addresses this but I probably need to > look at the docstrings for both to grasp it more clearly. Look too at the beginning of the code for `scroll-up-command': (cond ((null scroll-error-top-bottom) (scroll-up arg)) ... That tells you that when the option is nil (the default value) `scroll-up-command' just calls `scroll-up'.