From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#12293: setf behavior difference Date: Tue, 28 Aug 2012 09:47:11 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1346161696 10519 80.91.229.3 (28 Aug 2012 13:48:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Aug 2012 13:48:16 +0000 (UTC) To: 12293@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 28 15:48:17 2012 Return-path: Envelope-to: geb-bug-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 1T6M9P-0001n1-6w for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Aug 2012 15:48:15 +0200 Original-Received: from localhost ([::1]:40984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6M9M-0001JU-WB for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Aug 2012 09:48:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6M9K-0001JP-OV for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 09:48:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6M9E-00024u-Ln for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 09:48:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6M9E-00024f-Hw for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 09:48:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T6MAA-0000WV-Aj for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 09:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dan Nicolaescu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Aug 2012 13:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12293 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.13461617041961 (code B ref -1); Tue, 28 Aug 2012 13:49:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Aug 2012 13:48:24 +0000 Original-Received: from localhost ([127.0.0.1]:54160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T6M9W-0000VY-BQ for submit@debbugs.gnu.org; Tue, 28 Aug 2012 09:48:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39961) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T6M9T-0000VQ-KA for submit@debbugs.gnu.org; Tue, 28 Aug 2012 09:48:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6M8V-0001vJ-KZ for submit@debbugs.gnu.org; Tue, 28 Aug 2012 09:47:20 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:49768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6M8V-0001vF-I9 for submit@debbugs.gnu.org; Tue, 28 Aug 2012 09:47:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6M8P-0000Xg-Sp for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 09:47:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6M8O-0001tX-KW for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 09:47:13 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:33245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6M8O-0001tQ-Gp for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 09:47:12 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1T6M8O-00030y-13 for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 09:47:12 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (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.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:63553 Archived-At: setf behaves differently in 24.1 vs current trunk. Save this in test.el: (require 'cl) (defvar my-string " TEST TEST") (defun my-test () (with-temp-buffer (insert my-string) (goto-char (point-min)) (while (re-search-forward "\r\n" nil t) (replace-match "\n" nil nil nil 1)) (setf (buffer-string) (buffer-string)) (princ (buffer-string)))) (my-test) $ /usr/bin/emacs-24.1 --batch -l test.el TEST TEST $ ./emacs --batch -l test.el $ that is emacs from trunk prints nothing. The code sequence is derived from bbdb-vcard.el at http://github.com/trebb/bbdb-vcard and the effect is that the package stopped working. Searching the web for "(setf (buffer-string)" there are hits in a few other packages. It's a rather odd thing to do, but it looks like people are doing it...