From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.pretest.bugs,gmane.emacs.devel Subject: Re: error when tty-coding-system is utf-8 Date: Thu, 2 Jun 2005 17:41:11 -0500 (CDT) Message-ID: <200506022241.j52MfBi02931@raven.dms.auburn.edu> References: <871x7k7b1w.fsf@tc-1-100.kawasaki.gol.ne.jp> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1117752304 16297 80.91.229.2 (2 Jun 2005 22:45:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Jun 2005 22:45:04 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Fri Jun 03 00:44:55 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DdyPx-0006YT-VP for gebp-emacs-pretest-bug@gmane.org; Fri, 03 Jun 2005 00:44:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdyVX-0008Ky-NA for gebp-emacs-pretest-bug@gmane.org; Thu, 02 Jun 2005 18:49:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DdyVA-00087r-9X for emacs-pretest-bug@gnu.org; Thu, 02 Jun 2005 18:49:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DdyV6-00085V-61 for emacs-pretest-bug@gnu.org; Thu, 02 Jun 2005 18:49:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdyV4-00083h-S3; Thu, 02 Jun 2005 18:49:18 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DdyQA-000595-Fj; Thu, 02 Jun 2005 18:44:14 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j52MfoCK008738; Thu, 2 Jun 2005 17:41:51 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j52MfBi02931; Thu, 2 Jun 2005 17:41:11 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: miles@gnu.org In-reply-to: <871x7k7b1w.fsf@tc-1-100.kawasaki.gol.ne.jp> (message from Miles Bader on Fri, 03 Jun 2005 05:34:19 +0900) X-BeenThere: emacs-pretest-bug@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: emacs-pretest-bug.gnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Errors-To: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.pretest.bugs:7691 gmane.emacs.devel:38056 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38056 Is gnus-start-date-timer running when your problem occurs? It runs article-update-date-lapsed which conducts a regexp search without saving and restoring the match data, as it should. I believe that the patch below is necessary, _regardless_ of whether it solves your problem. Does it? There may be other similar problems in gnus or elsewhere. I could install the patch, if desired. An alternative is to automatically restore the match data around _all_ timers, but Richard pointed out that this would lead to inefficiencies. ===File ~/gnus-art-diff===================================== *** gnus-art.el 01 Jun 2005 10:13:45 -0500 1.74 --- gnus-art.el 02 Jun 2005 17:21:40 -0500 *************** *** 3034,3053 **** (defun article-update-date-lapsed () "Function to be run from a timer to update the lapsed time line." ! (let (deactivate-mark) ! (save-excursion ! (ignore-errors ! (walk-windows ! (lambda (w) ! (set-buffer (window-buffer w)) ! (when (eq major-mode 'gnus-article-mode) ! (let ((mark (point-marker))) ! (goto-char (point-min)) ! (when (re-search-forward "^X-Sent:" nil t) ! (article-date-lapsed t)) ! (goto-char (marker-position mark)) ! (move-marker mark nil)))) ! nil 'visible))))) (defun gnus-start-date-timer (&optional n) "Start a timer to update the X-Sent header in the article buffers. --- 3034,3054 ---- (defun article-update-date-lapsed () "Function to be run from a timer to update the lapsed time line." ! (save-match-data ! (let (deactivate-mark) ! (save-excursion ! (ignore-errors ! (walk-windows ! (lambda (w) ! (set-buffer (window-buffer w)) ! (when (eq major-mode 'gnus-article-mode) ! (let ((mark (point-marker))) ! (goto-char (point-min)) ! (when (re-search-forward "^X-Sent:" nil t) ! (article-date-lapsed t)) ! (goto-char (marker-position mark)) ! (move-marker mark nil)))) ! nil 'visible)))))) (defun gnus-start-date-timer (&optional n) "Start a timer to update the X-Sent header in the article buffers. ============================================================