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 14:45:37 -0800 (PST) Message-ID: References: <54C5577D.4030700@gmail.com> <871tmih6w0.fsf@wmi.amu.edu.pl> <54C56827.6030802@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 1422225972 11305 80.91.229.3 (25 Jan 2015 22:46:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Jan 2015 22:46:12 +0000 (UTC) To: Will Monroe , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 25 23:46:12 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 1YFVwZ-0005QL-QA for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Jan 2015 23:46:11 +0100 Original-Received: from localhost ([::1]:39216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFVwZ-0006jL-4l for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Jan 2015 17:46:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFVw9-0006iu-2Y for help-gnu-emacs@gnu.org; Sun, 25 Jan 2015 17:46:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFVw4-00080M-1E for help-gnu-emacs@gnu.org; Sun, 25 Jan 2015 17:45:44 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:50691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFVw3-0007yz-PK for help-gnu-emacs@gnu.org; Sun, 25 Jan 2015 17:45:39 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t0PMjba3022744 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 25 Jan 2015 22:45:38 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t0PMjafd014495 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 25 Jan 2015 22:45:37 GMT Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t0PMjaD2028819; Sun, 25 Jan 2015 22:45:36 GMT In-Reply-To: <54C56827.6030802@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: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:102260 Archived-At: > the "problem" was that C-v was bound to another (older?) function. The command `scroll-up' is indeed older, and it is still usable. It is, in fact, the core of the `scroll-up-command' implementation. (In Emacs, it is often the case that you can use a command non-interactively, though this is sometimes explicitly not recommended for certain commands.) `scroll-up-command' was added in Emacs 24.1, to (a) retain the `scroll-up' behavior as a separate function, and yet (b) provide additional behavior when you scroll interactively, in particular the handling of the new (in 24.1) option `scroll-error-top-bottom'. > I've hesitated from diving into Edebug because there was no > "error" as such. That is, the code "worked" it just didn't do > what I intended. Using the debugger (and debugging generally) is not necessarily about finding why Emacs raises a particular error. (That is the particular use of variable `debug-on-error': enter the debugger to show a backtrace when an error is raised.) In addition to Edebug, there is the regular Emacs debugger, aka `debug'. Some of us prefer to use that. Others prefer to use it in some cases but `edebug' in other cases. Keep in mind too that any debugger does not necessarily tell you everything that goes on, and its representation of what happens with debugging turned off is not flawless. In particular, this is because using the debugger itself changes what Emacs does. (Think of the debugger's buffer display and its handling of input events, for example.) The regular debugger is what you get with `debug-on-entry' and by inserting calls to `(debug)' in code to serve more or less as breakpoints. See `C-h f debug' for information about evaluating and displaying the results of sexps (cdr ARGS) upon entry into the debugger.