From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christophe TROESTLER Newsgroups: gmane.emacs.bugs Subject: bug#6187: Wrong type argument: number-of-marker-p, nil Date: Sat, 13 Aug 2011 00:34:48 +0200 (CEST) Organization: Universite de Mons (http://math.umons.ac.be/an/) Message-ID: <20110813.003448.1022072973517760368.Christophe.Troestler@umons.ac.be> References: <20110812.155445.1091515187084524607.Christophe.Troestler@umons.ac.be> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1313188545 26324 80.91.229.12 (12 Aug 2011 22:35:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 12 Aug 2011 22:35:45 +0000 (UTC) To: 6187@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 13 00:35:41 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 1Qs0KK-0004ah-EY for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Aug 2011 00:35:40 +0200 Original-Received: from localhost ([::1]:41371 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qs0KJ-0005Bn-Lq for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Aug 2011 18:35:39 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qs0KG-0005Bg-8o for bug-gnu-emacs@gnu.org; Fri, 12 Aug 2011 18:35:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qs0KF-0001UU-6Q for bug-gnu-emacs@gnu.org; Fri, 12 Aug 2011 18:35:36 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qs0KE-0001UQ-Vf for bug-gnu-emacs@gnu.org; Fri, 12 Aug 2011 18:35:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qs0Ld-0003e0-OS; Fri, 12 Aug 2011 18:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christophe TROESTLER Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Aug 2011 22:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6187 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6187-submit@debbugs.gnu.org id=B6187.131318858413962 (code B ref 6187); Fri, 12 Aug 2011 22:37:01 +0000 Original-Received: (at 6187) by debbugs.gnu.org; 12 Aug 2011 22:36:24 +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 1Qs0L2-0003d8-7o for submit@debbugs.gnu.org; Fri, 12 Aug 2011 18:36:24 -0400 Original-Received: from relay03ant.iops.be ([212.53.5.218]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qs0Kz-0003d0-IT for 6187@debbugs.gnu.org; Fri, 12 Aug 2011 18:36:22 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by relay03ant.iops.be (Postfix) with ESMTP id 279DA6BF0127; Sat, 13 Aug 2011 00:34:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iops.be; h= content-transfer-encoding:content-type:content-type:mime-version :x-mailer:organization:references:in-reply-to:from:from:subject :subject:message-id:date:date:received:received:received; s= scooby; i=postadmin@iops.be; t=1313188492; bh=mxhOxUE1lSS+3Z4k/8 /QhygPjn3Ik4eM0YmEtJYiDQw=; b=tAitBH8KTmSc/ufXQjiukXHdtfPHuGQlY9 O7h01uBcgZ9PnAprIjWC5ZFJlrYqgBzmktamKHfCCj6izyzXnfbvKdepZ6p/YcoE FmEii3xJodew4+bCm/G6kvqjQxfBlSoZ0QdzNZaPEvoAs6B3t+vdfPq/CvJuh8ds Po9fz8DDk= X-Virus-Scanned: amavisd-new at iops.be Original-Received: from relay03ant.iops.be ([127.0.0.1]) by localhost (bdell028.dcn.iops.be [127.0.0.1]) (amavisd-new, port 10026) with LMTP id nZgQXWd5mZHe; Sat, 13 Aug 2011 00:34:52 +0200 (CEST) Original-Received: from poincare (cust-72-196-109-94.dyn.as47377.net [94.109.196.72]) by relay03ant.iops.be (Postfix) with ESMTP id 6197B6BF007F; Sat, 13 Aug 2011 00:34:49 +0200 (CEST) Original-Received: from localhost ([::1]) by poincare with esmtp (Exim 4.76) (envelope-from ) id 1Qs0JU-00065D-To; Sat, 13 Aug 2011 00:34:49 +0200 In-Reply-To: <20110812.155445.1091515187084524607.Christophe.Troestler@umons.ac.be> X-Face: #2fb%mPx>rRL@4ff~TVgZ"<[:,oL"`TUEGK/[8/qb58~C>jR(x4A+v/n)7BgpEtIph_neoLKJBq0JBY9:}8v|j X-Mailer: Mew version 6.3.51 on Emacs 23.3 / Mule 6.0 (HANACHIRUSATO) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 12 Aug 2011 18:37:01 -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:50034 Archived-At: I redefined select-safe-coding-system-interactively to try to track the bug and it confirms that the variable `unsafe', AFTER the “(setq unsafe …”, has value ((iso-latin-1-unix)) ― which then returns (nil) when processed with (mapcar #'(lambda (x) (car (cadr x))) unsafe) The correct value for `unsafe' is (iso-latin-1-unix (1 . 7868)) Note that the bug is not present when Emacs starts, it only shows up after some time. My wild guess is that somehow regions are processed incorrectly ― I have some region issues with other Emacs packages too. The backtrace : Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) min(nil) apply(min nil) (goto-char (apply (quote min) (mapcar ... unsafe))) (progn (pop-to-buffer bufname) (goto-char (apply ... ...))) (if (and unsafe (not ...)) (progn (pop-to-buffer bufname) (goto-char ...))) (when (and unsafe (not ...)) (pop-to-buffer bufname) (goto-char (apply ... ...))) (save-excursion (when (and unsafe ...) (pop-to-buffer bufname) (goto-char ...)) (with-output-to-temp-buffer "*Warning*" (with-current-buffer standard-output ... ... ...)) (setq coding-system (read-coding-system ... default)) (setq last-coding-system-specified coding-system)) (let ((window-configuration ...) (bufname ...) coding-system) (save-excursion (when ... ... ...) (with-output-to-temp-buffer "*Warning*" ...) (setq coding-system ...) (setq last-coding-system-specified coding-system)) (kill-buffer "*Warning*") (set-window-configuration window-configuration) coding-system) select-safe-coding-system-interactively(1 3 (utf-8 viscii gb18030 utf-7 utf-16 utf-16be-with-signature utf-16le-with-signature utf-16be utf-16le x-ctext iso-2022-7bit utf-8-auto utf-8-with-signature emacs-mule raw-text iso-2022-8bit-ss2 iso-2022-7bit-lock vietnamese-tcvn vietnamese-viqr vietnamese-vscii utf-7-imap utf-8-emacs no-conversion compound-text-with-extensions ctext-no-compositions iso-2022-7bit-ss2) (iso-latin-1-unix) nil utf-8) select-safe-coding-system(1 3 iso-latin-1-unix nil "/tmp/a.txt") write-region(nil nil "/tmp/a.txt" nil t "/tmp/a.txt") basic-save-buffer-2() basic-save-buffer-1() basic-save-buffer() save-buffer(1) call-interactively(save-buffer nil nil)