From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.bugs Subject: bug#9258: 24.0.50; image-next-line doesnt allow omitting arg Date: Sun, 07 Aug 2011 00:13:06 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312668860 14953 80.91.229.12 (6 Aug 2011 22:14:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 6 Aug 2011 22:14:20 +0000 (UTC) To: 9258@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 07 00:14:16 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qpp8J-0006yc-I7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Aug 2011 00:14:15 +0200 Original-Received: from localhost ([::1]:35748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qpp8I-0008I8-Mi for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Aug 2011 18:14:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qpp8F-0008Hs-S3 for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 18:14:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qpp8E-0003ss-O4 for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 18:14:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qpp8E-0003sn-Ic for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 18:14:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qpp95-0007ss-9N; Sat, 06 Aug 2011 18:15:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: joakim@verona.se Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Aug 2011 22:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9258 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.131266885630199 (code B ref -1); Sat, 06 Aug 2011 22:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Aug 2011 22:14:16 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qpp8J-0007r2-OT for submit@debbugs.gnu.org; Sat, 06 Aug 2011 18:14:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qpp8G-0007qu-NR for submit@debbugs.gnu.org; Sat, 06 Aug 2011 18:14:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qpp7O-0003es-QQ for submit@debbugs.gnu.org; Sat, 06 Aug 2011 18:13:19 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:58909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qpp7O-0003em-N9 for submit@debbugs.gnu.org; Sat, 06 Aug 2011 18:13:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qpp7N-00087Y-Lt for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 18:13:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qpp7M-0003aV-Cz for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 18:13:17 -0400 Original-Received: from batman.blixtvik.net ([87.96.254.3]:56076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qpp7M-0003SY-2O for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 18:13:16 -0400 Original-Received: from chopper.vpn.verona.se (139-210-96-87.cust.blixtvik.se [87.96.210.139]) by batman.blixtvik.net (Postfix) with ESMTP id 373B97F94AE for ; Sun, 7 Aug 2011 00:13:06 +0200 (CEST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 06 Aug 2011 18:15:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49938 Archived-At: This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': (defun image-next-line (&optional n) "Scroll image in current window upward by N lines. Stop if the bottom edge of the image is reached." (interactive "p") (cond ((= n 0) nil) ((< n 0) (image-set-window-vscroll (max 0 (+ (window-vscroll) n)))) (t (let* ((image (image-get-display-property)) (edges (window-inside-edges)) (win-height (- (nth 3 edges) (nth 1 edges))) (img-height (ceiling (cdr (image-display-size image))))) (image-set-window-vscroll (min (max 0 (- img-height win-height)) (+ n (window-vscroll)))))))) declaration says n is optional but nil will fail on the numeric tests. so, either n isn't optional or the cond rearanged. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/local/share/emacs/24.0.50/etc/DEBUG. In GNU Emacs 24.0.50.20 (x86_64-unknown-linux-gnu, GTK+ Version 3.0.11) of 2011-08-03 on localhost.localdomain Windowing system distributor `Fedora Project', version 11.0.11003000 configured using `configure '--with-xwidgets' '--without-gnutls' '--enable-asserts' '--with-x-toolkit=gtk3'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: shell-dirtrack-mode: t predictive-which-dict-mode: t paredit-mode: t desktop-save-mode: t erc-truncate-mode: t erc-track-mode: t erc-track-minor-mode: t erc-spelling-mode: t erc-ring-mode: t erc-pcomplete-mode: t erc-netsplit-mode: t erc-log-mode: t erc-button-mode: t erc-fill-mode: t erc-autojoin-mode: t erc-autoaway-mode: t ido-everywhere: t erc-stamp-mode: t erc-match-mode: t show-paren-mode: t erc-smiley-mode: t erc-irccontrols-mode: t eldoc-mode: t recentf-mode: t grab-and-drag-mode: t yas/global-mode: t yas/minor-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: -- Joakim Verona