all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christophe TROESTLER <Christophe.Troestler@umons.ac.be>
To: 6187@debbugs.gnu.org
Subject: bug#6187: Wrong type argument: number-of-marker-p, nil
Date: Sat, 13 Aug 2011 00:34:48 +0200 (CEST)	[thread overview]
Message-ID: <20110813.003448.1022072973517760368.Christophe.Troestler@umons.ac.be> (raw)
In-Reply-To: <20110812.155445.1091515187084524607.Christophe.Troestler@umons.ac.be>

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)





  reply	other threads:[~2011-08-12 22:34 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-14  5:30 bug#6187: 23.1; can't save: "Wrong type argument: number-of-marker-p, nil" Ryo Furue
2010-05-21  4:18 ` Glenn Morris
2010-05-25  3:08   ` Ryo Furue
2010-05-25  6:11     ` Ryo Furue
2010-05-25 16:04       ` Chong Yidong
2010-05-25 19:11         ` Ryo Furue
2010-06-17  7:52           ` Glenn Morris
     [not found]             ` <20100616.224611.65962251.furue@hawaii.edu>
2010-06-18 18:58               ` Glenn Morris
2010-06-18 23:07                 ` Ryo Furue
2010-06-25 21:28                   ` Stefan Monnier
2010-06-25 21:47                     ` Ryo Furue
2010-06-26  3:01                       ` Ryo Furue
2011-08-12 13:54 ` bug#6187: Wrong type argument: number-of-marker-p, nil Christophe TROESTLER
2011-08-12 22:34   ` Christophe TROESTLER [this message]
2011-08-12 22:42   ` Christophe TROESTLER
2011-08-12 22:58     ` Christophe TROESTLER
2011-08-13  0:14       ` Johan Bockgård

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

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

  git send-email \
    --in-reply-to=20110813.003448.1022072973517760368.Christophe.Troestler@umons.ac.be \
    --to=christophe.troestler@umons.ac.be \
    --cc=6187@debbugs.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.