From unknown Sun Jun 22 17:14:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16882: 24.3.50; with-temp-buffer-window broken Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Feb 2014 18:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16882 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 16882@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13933536523931 (code B ref -1); Tue, 25 Feb 2014 18:41:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Feb 2014 18:40:52 +0000 Received: from localhost ([127.0.0.1]:39770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIMvz-00011L-Fs for submit@debbugs.gnu.org; Tue, 25 Feb 2014 13:40:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41991) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIMvw-000113-NX for submit@debbugs.gnu.org; Tue, 25 Feb 2014 13:40:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIMvm-0007Yf-Gp for submit@debbugs.gnu.org; Tue, 25 Feb 2014 13:40:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=AC_HTML_NONSENSE_TAGS, BAYES_50, FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIMvm-0007YU-DG for submit@debbugs.gnu.org; Tue, 25 Feb 2014 13:40:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIMvh-0003nT-96 for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 13:40:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIMvb-0007S6-Su for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 13:40:33 -0500 Received: from mail-we0-x231.google.com ([2a00:1450:400c:c03::231]:64632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIMvb-0007QW-E9 for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 13:40:27 -0500 Received: by mail-we0-f177.google.com with SMTP id t61so752775wes.22 for ; Tue, 25 Feb 2014 10:40:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=G0jiCdn3+ICaWaN7QPZW78c30T8Og+ofB6OuqswHDTo=; b=oPNQ9vKN9+zyfo0doi0T/qqxykCIBXpyEV7Q11GrWvcFaT/6UPcvtemGcTnfmKmkVM 1sXik6225xS+Y+kE1/MtNEaJGjlcqvfzIwrHLuvcD7AaJrXvBnsKXf8NPVBuHaIFCZgB 3Ec2Ew5AM46jRKYhcusRP2Jc19KTbl8buxFHhYJ3B/tTK6/q/T0tJ8RM79hPWcr+H1aM PpikfKRwbDrISgRgLH8vL/NpZvSg5UnHiEoeibWaoHvhYzYb2PPepDR/qoZbOG7RbiY5 9ODt51pSGmKxGGtmIlnO2QcijuP5gDnAPuqO6vftamqIVjkVuRqPCBquwEspsLxIYh/G s3zg== X-Received: by 10.180.8.130 with SMTP id r2mr1465150wia.14.1393353625827; Tue, 25 Feb 2014 10:40:25 -0800 (PST) Received: from dell-14z ([37.160.50.252]) by mx.google.com with ESMTPSA id d6sm2615908wiz.4.2014.02.25.10.40.21 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 25 Feb 2014 10:40:25 -0800 (PST) From: Thierry Volpiatto Date: Tue, 25 Feb 2014 19:40:09 +0100 Message-ID: <87k3cj2fzq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.9 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.9 (---) Hi Martin, the change introduced by this commit is breaking with-temp-buffer-window: --8<---------------cut here---------------start------------->8--- commit 7e85209801a75d074fb0d952d38cf3f1e45ba1f7 Author: martin rudalics Date: Fri Feb 21 12:04:27 2014 +0100 In with-temp-buffer-window don't evaluate BODY within with-current-buff= er (Bug#16816). =20=20=20=20 * window.el (with-temp-buffer-window): Don't evaluate BODY within with-current-buffer (Bug#16816). --8<---------------cut here---------------end--------------->8--- The content of body is printed in current-buffer instead of being printed in the temp buffer. I will inline the emacs-24.3 version waiting a fix. Thanks. In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, X toolkit) of 2014-02-24 on dell-14z Windowing system distributor `The X.Org Foundation', version 11.0.11103000 System Description: Ubuntu 12.04.4 LTS Configured using: `configure --with-x-toolkit=3Dlucid --without-toolkit-scroll-bars --without-gconf --without-gsettings' Important settings: value of $LC_MONETARY: fr_FR.UTF-8 value of $LC_NUMERIC: fr_FR.UTF-8 value of $LC_TIME: fr_FR.UTF-8 value of $LANG: fr_FR.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t git-gutter-mode: t psession-mode: t global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t semantic-mode: t golden-ratio-mode: t winner-mode: t global-undo-tree-mode: t undo-tree-mode: t auto-image-file-mode: t eldoc-in-minibuffer-mode: t show-paren-mode: t display-time-mode: t recentf-mode: t savehist-mode: t eldoc-mode: t minibuffer-depth-indicate-mode: t helm-mode: t helm-descbinds-mode: t shell-dirtrack-mode: t helm-adaptative-mode: t helm-match-plugin-mode: t helm-occur-match-plugin-mode: t tooltip-mode: t electric-indent-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-< C-x C-=C2=B2 C-x C-b =20 C-x C-f * . e l M-C C-g C-_ C-x C-b =20 C-x C-d C-e l l =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 SPC =20 =20 C-< =20 =20 =20 =20 =20 M-x t v SPC b =20 q SPC SPC C-< =20 C-SPC C-n C-n C-n C-n=20 C-n C-n C-n C-n M-w q q q M-x r e p o Recent messages: Restoring buffers...73% Setting up indent for shell type bash Indentation variables are now local. Indentation setup for shell type bash Restoring buffers...done (No files need saving) Type a prefix key to toggle it. Run 'actions' with their prefixes. '?' for = more help. Starting Firefox... Beginning of buffer Mark set Load-path shadows: /usr/local/share/emacs/24.3.50/lisp/gnus/.dir-locals hides ~/elisp/magit/.d= ir-locals ~/elisp/auctex/lpath hides ~/elisp/emacs-wget/lpath /usr/local/share/emacs/24.3.50/lisp/emacs-lisp/tq hides ~/elisp/emms/lisp/tq Features: (shadow gnus-dired nnir mail-extr gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range gnus-win helm-dabbrev emacsbug helm-command magit-cherry magit-bisect magit-log-edit log-edit add-log magit-key-mode magit view ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff diff-mode magit-compat ido vc-hg semantic/bovine/make semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn semantic/bovine/make-by semantic/bovine make-mode markdown-mode sh-script smie executable conf-mode vc-rcs semantic/tag-file semantic/db-file data-debug cedet-files semantic/wisent/python semantic/decorate/include semantic/db-find semantic/db-ref semantic/decorate/mode semantic/decorate pulse semantic/dep semantic/wisent/python-wy semantic/wisent semantic/wisent/wisent rx vc-git naquadah-theme em-unix em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias align-let git-gutter server persistent-sessions semantic/db-mode semantic/db eieio-base semantic/idle semantic/format ezimage semantic/tag-ls semantic/find semantic/ctxt semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet config-w3m w3m-search w3m timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util w3m-load golden-ratio winner undo-tree diff image-file newsticker newst-treeview newst-plainview newst-reader newst-ticker newst-backend xdvi-search preview-latex tex-site auto-loads pcomplete-extension em-term term disp-table ehelp helm-ipython helm-elisp helm-eval python eldoc-eval warnings whitespace paren time avoid recentf tree-widget savehist smtpmail-async smtpmail sendmail dired-async iterator simple-call-tree iedit-rect rect iedit iedit-lib smallurl mm-url gnus gnus-ems nnheader wid-edit rectangle-utils ledger-config ledger esh-var esh-io esh-cmd esh-opt esh-ext esh-proc eldoc esh-groups eshell esh-module esh-mode esh-arg esh-util tv-utils async pcvs vc-cvs pcvs-parse pcvs-info pcvs-defs pcvs-util ewoc mb-depth cl-info slime-autoloads esh-toggle flymake no-word htmlize cl dired-extension emms-mpd-config emms-playlist-limit emms-volume emms-volume-amixer emms-i18n emms-history emms-score emms-stream-info emms-metaplaylist-mode emms-bookmarks emms-cue emms-mode-line-icon emms-browser sort emms-playlist-sort emms-last-played emms-player-xine emms-player-mpd tq emms-playing-time emms-lyrics emms-url hl-line emms-tag-editor emms-mark emms-mode-line emms-cache emms-info-ogginfo emms-info-mp3info emms-playlist-mode emms-player-vlc emms-player-mplayer emms-info emms-streams later-do emms-source-playlist emms-source-file emms-player-simple emms-setup emms emms-compat org-config-thierry ob-sh org-crypt cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs appt diary-lib diary-loaddefs org-element org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view jka-compr image-mode org-bibtex bibtex org-bbdb org-w3m org-agenda org-annotation-helper addressbook-bookmark message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader firefox-protocol bookmark-firefox-handler bookmark-extensions org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs init-helm-thierry helm-mode helm-dictionary helm-ls-git helm-descbinds helm-ls-hg helm-files image-dired tramp tramp-compat tramp-loaddefs trampver shell pcomplete format-spec dired-x dired-aux ffap thingatpt helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptative helm-info helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars mailcap helm-plugin bookmark pp helm-help helm-match-plugin helm-grep wgrep-helm wgrep helm-regexp grep helm-external helm-utils dired compile comint ansi-color ring helm-locate helm vc vc-dispatcher helm-config helm-aliases epa-file epa derived epg epg-config auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util time-date mm-util mail-prsvr password-cache package info easymenu cl-macs gv edmacro kmacro advice help-fns net-utils cl-loaddefs cl-lib tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting font-render-setting x-toolkit x multi-tty emacs) --=20 Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997=20 From unknown Sun Jun 22 17:14:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16882: 24.3.50; with-temp-buffer-window broken Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Feb 2014 19:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16882 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Thierry Volpiatto Cc: 16882@debbugs.gnu.org Received: via spool by 16882-submit@debbugs.gnu.org id=B16882.13933548436163 (code B ref 16882); Tue, 25 Feb 2014 19:01:01 +0000 Received: (at 16882) by debbugs.gnu.org; 25 Feb 2014 19:00:43 +0000 Received: from localhost ([127.0.0.1]:39805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WINFA-0001bJ-3g for submit@debbugs.gnu.org; Tue, 25 Feb 2014 14:00:41 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:52668 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WINF2-0001b1-Hd for 16882@debbugs.gnu.org; Tue, 25 Feb 2014 14:00:33 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WINF1-0003bg-Ku; Tue, 25 Feb 2014 14:00:31 -0500 From: Glenn Morris References: <87k3cj2fzq.fsf@gmail.com> X-Spook: Forte UNSCOM Pine Gap cryptanalysis codes Rubin Arnett X-Ran: )u3fa7$UCE%y?m(XKNW'~%J9Ivw$fqv!x!bjEeJ]]BFm8|+RKUZo1nVP"h9V7`PFf*=@Q* X-Hue: red X-Attribution: GM Date: Tue, 25 Feb 2014 14:00:31 -0500 In-Reply-To: <87k3cj2fzq.fsf@gmail.com> (Thierry Volpiatto's message of "Tue, 25 Feb 2014 19:40:09 +0100") Message-ID: <6ubnxvj9v4.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Thierry Volpiatto wrote: > The content of body is printed in current-buffer instead of being > printed in the temp buffer. Please explain what you mean by "the content of body". Note that with-temp-buffer-window's doc has always said: "It does not make the buffer current for BODY." Things like: (with-temp-buffer-window "foo" nil nil (princ "hello")) continue to work just fine, as documented. From unknown Sun Jun 22 17:14:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16882: 24.3.50; with-temp-buffer-window broken In-Reply-To: <87k3cj2fzq.fsf@gmail.com> Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Feb 2014 19:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16882 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 16882@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.139335743415837 (code B ref -1); Tue, 25 Feb 2014 19:44:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Feb 2014 19:43:54 +0000 Received: from localhost ([127.0.0.1]:39880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WINv0-00047K-9F for submit@debbugs.gnu.org; Tue, 25 Feb 2014 14:43:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59547) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WINuy-000477-1c for submit@debbugs.gnu.org; Tue, 25 Feb 2014 14:43:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WINum-00040D-Ba for submit@debbugs.gnu.org; Tue, 25 Feb 2014 14:43:46 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FSL_HELO_BARE_IP_2,RCVD_NUMERIC_HELO autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WINum-000409-9K for submit@debbugs.gnu.org; Tue, 25 Feb 2014 14:43:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WINug-0003xC-Ds for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 14:43:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WINua-0003wT-EY for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 14:43:34 -0500 Received: from plane.gmane.org ([80.91.229.3]:47271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WINua-0003w1-7w for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 14:43:28 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WINuY-0004FJ-3t for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 20:43:26 +0100 Received: from 37.160.50.252 ([37.160.50.252]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Feb 2014 20:43:26 +0100 Received: from thierry.volpiatto by 37.160.50.252 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Feb 2014 20:43:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ From: Thierry Volpiatto Date: Tue, 25 Feb 2014 20:43:12 +0100 Organization: Emacs Helm Lines: 18 Message-ID: <8738j7ger3.fsf@gmail.com> References: <87k3cj2fzq.fsf@gmail.com> <6ubnxvj9v4.fsf@fencepost.gnu.org> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 37.160.50.252 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:YNBnx1G48DjoEJe7I3ewYXFGXAM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -1.2 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.2 (---) Glenn Morris writes: > Note that with-temp-buffer-window's doc has always said: > > "It does not make the buffer current for BODY." But the code was doing a different thing, you had better time to fix docstring according to code instead of doing the contrary. This make incompatible change between 24.3 and 24.4. > continue to work just fine, as documented. Good for you, so close the bug if you are happy with this. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 25 14:45:55 2014 Received: (at control) by debbugs.gnu.org; 25 Feb 2014 19:45:55 +0000 Received: from localhost ([127.0.0.1]:39885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WINww-0004Bu-U7 for submit@debbugs.gnu.org; Tue, 25 Feb 2014 14:45:55 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:53485 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WINwu-0004Bk-8m for control@debbugs.gnu.org; Tue, 25 Feb 2014 14:45:52 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WINwu-0007bR-1n for control@debbugs.gnu.org; Tue, 25 Feb 2014 14:45:52 -0500 Date: Tue, 25 Feb 2014 14:45:52 -0500 Message-Id: Subject: control message for bug 16882 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) forcemerge 16816 16882 From unknown Sun Jun 22 17:14:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16882: 24.3.50; with-temp-buffer-window broken Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Feb 2014 10:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16882 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Thierry Volpiatto Cc: 16882@debbugs.gnu.org Received: via spool by 16882-submit@debbugs.gnu.org id=B16882.139340983427873 (code B ref 16882); Wed, 26 Feb 2014 10:18:02 +0000 Received: (at 16882) by debbugs.gnu.org; 26 Feb 2014 10:17:14 +0000 Received: from localhost ([127.0.0.1]:40406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIbYA-0007FU-DN for submit@debbugs.gnu.org; Wed, 26 Feb 2014 05:17:14 -0500 Received: from mout.gmx.net ([212.227.15.15]:51146) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIbY8-0007FK-Hr for 16882@debbugs.gnu.org; Wed, 26 Feb 2014 05:17:13 -0500 Received: from [62.47.38.172] ([62.47.38.172]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MJGFi-1WGwaj0jHu-002pqJ for <16882@debbugs.gnu.org>; Wed, 26 Feb 2014 11:17:11 +0100 Message-ID: <530DBF1E.3090106@gmx.at> Date: Wed, 26 Feb 2014 11:17:02 +0100 From: martin rudalics MIME-Version: 1.0 References: <87k3cj2fzq.fsf@gmail.com> <6ubnxvj9v4.fsf@fencepost.gnu.org> <8738j7ger3.fsf@gmail.com> In-Reply-To: <8738j7ger3.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:MhQNH5Bso2LdHl4sxN7aN1Go70ibV+hTeIOIimz+k5oieNr0h00 IiE3jHkU5rgb4w6LGG7ofCFG63ydltqwhwn2GG9i5Gl4eQOVv9rz4ELunP0oSVtRU0HMCXl ggmJAJqoqJ8IBbzR0O9LwbMZCRSg8Bk9g/jjZFMFuMSRI6jVd32vixNGTSAjSs2g1WPTxf1 SOJp3XIgyeEO4Wx9OiWAw== X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) >> Note that with-temp-buffer-window's doc has always said: >> >> "It does not make the buffer current for BODY." > > But the code was doing a different thing, you had better time to fix > docstring according to code instead of doing the contrary. > This make incompatible change between 24.3 and 24.4. The problem is that `with-temp-buffer-window' should substitute `with-output-to-temp-buffer' and the latter doesn't make the buffer current. As a matter of fact, the inconsistency you discovered could have led to output misleading text, for example, if BODY tried to print the value of the current buffer and that buffer would be that of the temporary buffer. The idea is that from Emacs' POV the temporary buffer doesn't exist unless you consider standard output part of that view. I deeply apologize for the inconveniences this has caused you. More so because if you hadn't reported this bug you would not have experienced them in the first place. Nevertheless note that you have reported a bug which may have already caused people to misinterpret Help information without noting it. So yours was a very valuable contribution. I sincerely hope that you can rearrange you code accordingly. Thanks, martin From unknown Sun Jun 22 17:14:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16882: 24.3.50; with-temp-buffer-window broken Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Feb 2014 10:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16882 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics Cc: 16882@debbugs.gnu.org Received: via spool by 16882-submit@debbugs.gnu.org id=B16882.139341087329785 (code B ref 16882); Wed, 26 Feb 2014 10:35:02 +0000 Received: (at 16882) by debbugs.gnu.org; 26 Feb 2014 10:34:33 +0000 Received: from localhost ([127.0.0.1]:40435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIbou-0007kL-T9 for submit@debbugs.gnu.org; Wed, 26 Feb 2014 05:34:33 -0500 Received: from mail-wi0-f172.google.com ([209.85.212.172]:64693) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIbos-0007kC-J9 for 16882@debbugs.gnu.org; Wed, 26 Feb 2014 05:34:31 -0500 Received: by mail-wi0-f172.google.com with SMTP id e4so5688616wiv.5 for <16882@debbugs.gnu.org>; Wed, 26 Feb 2014 02:34:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=KGiWRO0JfP4KAI/LH0ITOfSBujgNviviUUi4m16rYX0=; b=N2Qo/EitUFpWLuQuxS78SVxQ1EqtGCzYZeByTveGs9ST25VI1oE6dQnl6UrMuXFt4A hwe30R2J9EVlnySqJ8hUD6xCTHV976gOLIjRGU/mSlq3EC7e2dPezlR59Lctn/7i7swy I6tkM0YuMob5Y9nJ3NQeinHKCl60F7B/8euiYkdrQ9QBbB1jgoMxCPgSW/aKEPXKQy12 h4CIIyHTpsW0InreGFkF4Pvu+cWwTELPqoGrX2mkd5t+wBNHKZh9Akgb7HvdG9qt6M6L ftJwka01DmKaO3cNhIhvOi4pQARVEJLAa+a7U1n3agdYSg/2gPFTW2X6PkIILQsfV4a9 vr5Q== X-Received: by 10.180.187.237 with SMTP id fv13mr7192230wic.26.1393410869612; Wed, 26 Feb 2014 02:34:29 -0800 (PST) Received: from dell-14z ([37.161.202.197]) by mx.google.com with ESMTPSA id fo6sm4133858wib.7.2014.02.26.02.34.28 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 26 Feb 2014 02:34:29 -0800 (PST) From: Thierry Volpiatto Organization: Emacs Helm References: <87k3cj2fzq.fsf@gmail.com> <6ubnxvj9v4.fsf@fencepost.gnu.org> <8738j7ger3.fsf@gmail.com> <530DBF1E.3090106@gmx.at> Date: Wed, 26 Feb 2014 11:34:22 +0100 In-Reply-To: <530DBF1E.3090106@gmx.at> (martin rudalics's message of "Wed, 26 Feb 2014 11:17:02 +0100") Message-ID: <87bnxunowh.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) martin rudalics writes: > The problem is that `with-temp-buffer-window' should substitute > `with-output-to-temp-buffer' and the latter doesn't make the buffer > current. As a matter of fact, the inconsistency you discovered could > have led to output misleading text, for example, if BODY tried to print > the value of the current buffer and that buffer would be that of the > temporary buffer. The idea is that from Emacs' POV the temporary buffer > doesn't exist unless you consider standard output part of that view. > > I deeply apologize for the inconveniences this has caused you. More so > because if you hadn't reported this bug you would not have experienced > them in the first place. Nevertheless note that you have reported a bug > which may have already caused people to misinterpret Help information > without noting it. So yours was a very valuable contribution. Thanks for explanation. > I sincerely hope that you can rearrange you code accordingly. Done thanks, I have now a macro similar to `with-temp-buffer-window' but that doesn't expect standard-output. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From unknown Sun Jun 22 17:14:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16882: 24.3.50; with-temp-buffer-window broken Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Feb 2014 07:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16882 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics Cc: 16882@debbugs.gnu.org, Thierry Volpiatto Received: via spool by 16882-submit@debbugs.gnu.org id=B16882.139357206311174 (code B ref 16882); Fri, 28 Feb 2014 07:22:02 +0000 Received: (at 16882) by debbugs.gnu.org; 28 Feb 2014 07:21:03 +0000 Received: from localhost ([127.0.0.1]:43537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJHkk-0002tz-5T for submit@debbugs.gnu.org; Fri, 28 Feb 2014 02:21:02 -0500 Received: from mail-we0-f177.google.com ([74.125.82.177]:45507) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJHkh-0002te-Ih for 16882@debbugs.gnu.org; Fri, 28 Feb 2014 02:21:00 -0500 Received: by mail-we0-f177.google.com with SMTP id t61so219348wes.22 for <16882@debbugs.gnu.org>; Thu, 27 Feb 2014 23:20:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; bh=9QMSdA+knM4VslFLLwUTPnnfFn7s5VbFaMAMsHUcK2k=; b=k+L8q3zS4V9wxg20vafNfqsNKwQJjGnkhIqWu8hE5bDr+v8Z5QilWNJa449n+RAfCb vYj8aA4eXtrz1Ey3ppNSE9rLB3Y89nqIGiq+Y42zn2HsrVthHh4qnY9r8Y+O2FjFtA1s RxWhs8WSGQXGfVPMLnPs9he+fygPuKsYtHFiCtRVGtCn9Bji0DOOg9txRwX9INA65RR4 KyJtPlwe2RnGkTDGSZLCmw1GxrorLufOLMBIV+lvGakuvoWZSRAvwxtYlI0cu06p6moC 8NF53NPwmVygb4k3UKtRIBRQoPoebDz7KHt6Q34+wmuv/oMXUMczCqN6SL6pbV3dNwMp tk2A== X-Received: by 10.180.103.227 with SMTP id fz3mr1742514wib.29.1393572058560; Thu, 27 Feb 2014 23:20:58 -0800 (PST) Received: from dell-14z ([37.163.106.95]) by mx.google.com with ESMTPSA id cm5sm2402684wid.5.2014.02.27.23.20.54 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 27 Feb 2014 23:20:57 -0800 (PST) References: <87k3cj2fzq.fsf@gmail.com> <6ubnxvj9v4.fsf@fencepost.gnu.org> <8738j7ger3.fsf@gmail.com> <530DBF1E.3090106@gmx.at> User-agent: mu4e 0.9.9.6pre2; emacs 24.3.50.1 From: Thierry Volpiatto In-reply-to: <530DBF1E.3090106@gmx.at> Date: Fri, 28 Feb 2014 08:20:44 +0100 Message-ID: <87a9dbaek3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) martin rudalics writes: > The idea is that from Emacs' POV the temporary buffer > doesn't exist unless you consider standard output part of that view. Just a note on this: (Sorry to insist) You expect here the code of 'body' returns a stream like prin* function family does, but IMHO 'body' should be any code that is self contained in the "temp-buffer-window" and not elsewhere. IOW the actual version is not safe in this sens because it may affect the current-buffer. I suspect already existing code is affected by this new behavior. Try: (with-temp-buffer-window "foo" nil nil (princ "hello")) and now (with-temp-buffer-window "foo" nil nil (insert "hello")) I expect here "hello" to be inserted in "foo" buffer, but actually it corrupt current-buffer. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From unknown Sun Jun 22 17:14:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16882: 24.3.50; with-temp-buffer-window broken Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Feb 2014 11:00:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16882 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Thierry Volpiatto Cc: 16882@debbugs.gnu.org Received: via spool by 16882-submit@debbugs.gnu.org id=B16882.13935851683958 (code B ref 16882); Fri, 28 Feb 2014 11:00:07 +0000 Received: (at 16882) by debbugs.gnu.org; 28 Feb 2014 10:59:28 +0000 Received: from localhost ([127.0.0.1]:43646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJLA7-00011l-Gt for submit@debbugs.gnu.org; Fri, 28 Feb 2014 05:59:27 -0500 Received: from mout.gmx.net ([212.227.17.20]:53827) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJLA6-00011e-EW for 16882@debbugs.gnu.org; Fri, 28 Feb 2014 05:59:26 -0500 Received: from [62.47.57.2] ([62.47.57.2]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MfjJY-1WXaGH1iB2-00NCNZ for <16882@debbugs.gnu.org>; Fri, 28 Feb 2014 11:59:25 +0100 Message-ID: <53106C0C.6070402@gmx.at> Date: Fri, 28 Feb 2014 11:59:24 +0100 From: martin rudalics MIME-Version: 1.0 References: <87k3cj2fzq.fsf@gmail.com> <6ubnxvj9v4.fsf@fencepost.gnu.org> <8738j7ger3.fsf@gmail.com> <530DBF1E.3090106@gmx.at> <87a9dbaek3.fsf@gmail.com> In-Reply-To: <87a9dbaek3.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:EG9EoC92ijvIUnzkLPA6hYgh/8nW1LIY//akv8PVnboE0bSP6Lh i3tPeTHxNaAYQl0BkR5l/Gju8uP3x0CWGv4GGEd/mOT5zwKys4NNwiUrW7Wht+uT59ZV9UY bAtB82JUijDsaO8X0LnBRUOYKnUhqS5PJ64mcCD4kAY5l+9+1OY6IslKBbPwdf9kMDgUxfo kjBx+Fwo4TQ1j5JPnmT0w== X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > Just a note on this: (Sorry to insist) > > You expect here the code of 'body' returns a stream like prin* function > family does, but IMHO 'body' should be any code that is self > contained in the "temp-buffer-window" and not elsewhere. > IOW the actual version is not safe in this sens because it may affect > the current-buffer. > I suspect already existing code is affected by this new behavior. > > Try: > > (with-temp-buffer-window "foo" nil nil (princ "hello")) > > and now > > (with-temp-buffer-window "foo" nil nil (insert "hello")) > > I expect here "hello" to be inserted in "foo" buffer, but actually it > corrupt current-buffer. As the bug found by Juanma shows I was fooled by this myself. It should now behave again in your sense. I still have to explain the behavior in the manual. Thanks, martin From unknown Sun Jun 22 17:14:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16882: 24.3.50; with-temp-buffer-window broken Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Feb 2014 12:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16882 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics Cc: 16882@debbugs.gnu.org, Thierry Volpiatto Received: via spool by 16882-submit@debbugs.gnu.org id=B16882.139359140424646 (code B ref 16882); Fri, 28 Feb 2014 12:44:02 +0000 Received: (at 16882) by debbugs.gnu.org; 28 Feb 2014 12:43:24 +0000 Received: from localhost ([127.0.0.1]:43758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJMmi-0006PS-2z for submit@debbugs.gnu.org; Fri, 28 Feb 2014 07:43:24 -0500 Received: from mail-we0-f171.google.com ([74.125.82.171]:39706) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJMmf-0006PJ-OH for 16882@debbugs.gnu.org; Fri, 28 Feb 2014 07:43:22 -0500 Received: by mail-we0-f171.google.com with SMTP id u56so508066wes.16 for <16882@debbugs.gnu.org>; Fri, 28 Feb 2014 04:43:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; bh=FwtNA8pSDFGydv7mcfn3bWDIWwnY27u6VRDeGloNDLg=; b=iI54YpQVrXJFkzqjRRiTBNdEni7sYYTSUpyFiTmLPgPEdFwsoaA9Rh93VjUq5nGucG 7yk+aMNrU7yFAOlgDCHc71T9ZWhawG01WrtN+9BYPzpYjWhongueyYcVRJ8lfHvCj5iw uwOVLybwSos9wZZwpiP2mHvjOwd1SPJpyeLeVPCe1wftCTyjHlmHaGjVv/UWpZ3o75db YQwQ5fxv4EZJ7T6X0c0/nPN1MrAam9ARADYPsGi7jR/vBgk2vDS2GrhGS/tp+zqDBiAr CwaISjit17k153xO5kQmd+4WNDMQ0J+G1YTGSqJCdXMGB2nZ6fwph3CZQ7cxKpmf/VLy I7pA== X-Received: by 10.180.207.15 with SMTP id ls15mr2389274wic.50.1393591400622; Fri, 28 Feb 2014 04:43:20 -0800 (PST) Received: from dell-14z ([37.162.190.187]) by mx.google.com with ESMTPSA id f1sm14983477wik.1.2014.02.28.04.43.18 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 28 Feb 2014 04:43:19 -0800 (PST) References: <87k3cj2fzq.fsf@gmail.com> <6ubnxvj9v4.fsf@fencepost.gnu.org> <8738j7ger3.fsf@gmail.com> <530DBF1E.3090106@gmx.at> <87a9dbaek3.fsf@gmail.com> <53106C0C.6070402@gmx.at> User-agent: mu4e 0.9.9.6pre2; emacs 24.3.50.1 From: Thierry Volpiatto In-reply-to: <53106C0C.6070402@gmx.at> Date: Fri, 28 Feb 2014 13:43:05 +0100 Message-ID: <87zjlbh0h2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) martin rudalics writes: > As the bug found by Juanma shows I was fooled by this myself. It should > now behave again in your sense. Great, thanks. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From unknown Sun Jun 22 17:14:04 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Thierry Volpiatto Subject: bug#16882: closed (Re: bug#16882: 24.3.50; with-temp-buffer-window broken) Message-ID: References: <5310D53B.8030209@gmx.at> <87k3cj2fzq.fsf@gmail.com> X-Gnu-PR-Message: they-closed 16882 X-Gnu-PR-Package: emacs Reply-To: 16882@debbugs.gnu.org Date: Fri, 28 Feb 2014 18:29:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1393612144-3147-1" This is a multi-part message in MIME format... ------------=_1393612144-3147-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #16882: 24.3.50; with-temp-buffer-window broken which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 16882@debbugs.gnu.org. --=20 16882: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D16882 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1393612144-3147-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 16882-done) by debbugs.gnu.org; 28 Feb 2014 18:28:17 +0000 Received: from localhost ([127.0.0.1]:44893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJSAS-0000n7-Th for submit@debbugs.gnu.org; Fri, 28 Feb 2014 13:28:17 -0500 Received: from mout.gmx.net ([212.227.15.18]:53972) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJSAQ-0000mz-PG for 16882-done@debbugs.gnu.org; Fri, 28 Feb 2014 13:28:15 -0500 Received: from [62.47.35.87] ([62.47.35.87]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MMTZa-1WItOa05Gg-008GIz for <16882-done@debbugs.gnu.org>; Fri, 28 Feb 2014 19:28:14 +0100 Message-ID: <5310D53B.8030209@gmx.at> Date: Fri, 28 Feb 2014 19:28:11 +0100 From: martin rudalics MIME-Version: 1.0 To: Thierry Volpiatto Subject: Re: bug#16882: 24.3.50; with-temp-buffer-window broken References: <87k3cj2fzq.fsf@gmail.com> <6ubnxvj9v4.fsf@fencepost.gnu.org> <8738j7ger3.fsf@gmail.com> <530DBF1E.3090106@gmx.at> <87a9dbaek3.fsf@gmail.com> <53106C0C.6070402@gmx.at> <87zjlbh0h2.fsf@gmail.com> In-Reply-To: <87zjlbh0h2.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:BaFwa2SuE0r6+vlvKINz95Q+JXWV/GbFT+Z7Zvq68LyUKhWtBng el4x9N5tuy/C94Wkfw45pt5wRr56iLxQs3N06nrGJc0Q7oTbhTPXWHHv9lRQ2hbFgV87Jat 867mbhmTMxxCyg/02/fsvgPT0pmMSwmphB9NAaPzlN0EkoNRXqrHKhs/nUpBjlFvYyIq/ro ka2v71FW/w836nB95HXuw== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16882-done Cc: 16882-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Closing this bug then ... martin ------------=_1393612144-3147-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Feb 2014 18:40:52 +0000 Received: from localhost ([127.0.0.1]:39770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIMvz-00011L-Fs for submit@debbugs.gnu.org; Tue, 25 Feb 2014 13:40:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41991) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIMvw-000113-NX for submit@debbugs.gnu.org; Tue, 25 Feb 2014 13:40:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIMvm-0007Yf-Gp for submit@debbugs.gnu.org; Tue, 25 Feb 2014 13:40:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=AC_HTML_NONSENSE_TAGS, BAYES_50, FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIMvm-0007YU-DG for submit@debbugs.gnu.org; Tue, 25 Feb 2014 13:40:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIMvh-0003nT-96 for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 13:40:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIMvb-0007S6-Su for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 13:40:33 -0500 Received: from mail-we0-x231.google.com ([2a00:1450:400c:c03::231]:64632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIMvb-0007QW-E9 for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 13:40:27 -0500 Received: by mail-we0-f177.google.com with SMTP id t61so752775wes.22 for ; Tue, 25 Feb 2014 10:40:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=G0jiCdn3+ICaWaN7QPZW78c30T8Og+ofB6OuqswHDTo=; b=oPNQ9vKN9+zyfo0doi0T/qqxykCIBXpyEV7Q11GrWvcFaT/6UPcvtemGcTnfmKmkVM 1sXik6225xS+Y+kE1/MtNEaJGjlcqvfzIwrHLuvcD7AaJrXvBnsKXf8NPVBuHaIFCZgB 3Ec2Ew5AM46jRKYhcusRP2Jc19KTbl8buxFHhYJ3B/tTK6/q/T0tJ8RM79hPWcr+H1aM PpikfKRwbDrISgRgLH8vL/NpZvSg5UnHiEoeibWaoHvhYzYb2PPepDR/qoZbOG7RbiY5 9ODt51pSGmKxGGtmIlnO2QcijuP5gDnAPuqO6vftamqIVjkVuRqPCBquwEspsLxIYh/G s3zg== X-Received: by 10.180.8.130 with SMTP id r2mr1465150wia.14.1393353625827; Tue, 25 Feb 2014 10:40:25 -0800 (PST) Received: from dell-14z ([37.160.50.252]) by mx.google.com with ESMTPSA id d6sm2615908wiz.4.2014.02.25.10.40.21 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 25 Feb 2014 10:40:25 -0800 (PST) From: Thierry Volpiatto To: bug-gnu-emacs@gnu.org Subject: 24.3.50; with-temp-buffer-window broken Date: Tue, 25 Feb 2014 19:40:09 +0100 Message-ID: <87k3cj2fzq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.9 (---) Hi Martin, the change introduced by this commit is breaking with-temp-buffer-window: --8<---------------cut here---------------start------------->8--- commit 7e85209801a75d074fb0d952d38cf3f1e45ba1f7 Author: martin rudalics Date: Fri Feb 21 12:04:27 2014 +0100 In with-temp-buffer-window don't evaluate BODY within with-current-buff= er (Bug#16816). =20=20=20=20 * window.el (with-temp-buffer-window): Don't evaluate BODY within with-current-buffer (Bug#16816). --8<---------------cut here---------------end--------------->8--- The content of body is printed in current-buffer instead of being printed in the temp buffer. I will inline the emacs-24.3 version waiting a fix. Thanks. In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, X toolkit) of 2014-02-24 on dell-14z Windowing system distributor `The X.Org Foundation', version 11.0.11103000 System Description: Ubuntu 12.04.4 LTS Configured using: `configure --with-x-toolkit=3Dlucid --without-toolkit-scroll-bars --without-gconf --without-gsettings' Important settings: value of $LC_MONETARY: fr_FR.UTF-8 value of $LC_NUMERIC: fr_FR.UTF-8 value of $LC_TIME: fr_FR.UTF-8 value of $LANG: fr_FR.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t git-gutter-mode: t psession-mode: t global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t semantic-mode: t golden-ratio-mode: t winner-mode: t global-undo-tree-mode: t undo-tree-mode: t auto-image-file-mode: t eldoc-in-minibuffer-mode: t show-paren-mode: t display-time-mode: t recentf-mode: t savehist-mode: t eldoc-mode: t minibuffer-depth-indicate-mode: t helm-mode: t helm-descbinds-mode: t shell-dirtrack-mode: t helm-adaptative-mode: t helm-match-plugin-mode: t helm-occur-match-plugin-mode: t tooltip-mode: t electric-indent-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-< C-x C-=C2=B2 C-x C-b =20 C-x C-f * . e l M-C C-g C-_ C-x C-b =20 C-x C-d C-e l l =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 SPC =20 =20 C-< =20 =20 =20 =20 =20 M-x t v SPC b =20 q SPC SPC C-< =20 C-SPC C-n C-n C-n C-n=20 C-n C-n C-n C-n M-w q q q M-x r e p o Recent messages: Restoring buffers...73% Setting up indent for shell type bash Indentation variables are now local. Indentation setup for shell type bash Restoring buffers...done (No files need saving) Type a prefix key to toggle it. Run 'actions' with their prefixes. '?' for = more help. Starting Firefox... Beginning of buffer Mark set Load-path shadows: /usr/local/share/emacs/24.3.50/lisp/gnus/.dir-locals hides ~/elisp/magit/.d= ir-locals ~/elisp/auctex/lpath hides ~/elisp/emacs-wget/lpath /usr/local/share/emacs/24.3.50/lisp/emacs-lisp/tq hides ~/elisp/emms/lisp/tq Features: (shadow gnus-dired nnir mail-extr gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range gnus-win helm-dabbrev emacsbug helm-command magit-cherry magit-bisect magit-log-edit log-edit add-log magit-key-mode magit view ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff diff-mode magit-compat ido vc-hg semantic/bovine/make semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn semantic/bovine/make-by semantic/bovine make-mode markdown-mode sh-script smie executable conf-mode vc-rcs semantic/tag-file semantic/db-file data-debug cedet-files semantic/wisent/python semantic/decorate/include semantic/db-find semantic/db-ref semantic/decorate/mode semantic/decorate pulse semantic/dep semantic/wisent/python-wy semantic/wisent semantic/wisent/wisent rx vc-git naquadah-theme em-unix em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias align-let git-gutter server persistent-sessions semantic/db-mode semantic/db eieio-base semantic/idle semantic/format ezimage semantic/tag-ls semantic/find semantic/ctxt semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet config-w3m w3m-search w3m timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util w3m-load golden-ratio winner undo-tree diff image-file newsticker newst-treeview newst-plainview newst-reader newst-ticker newst-backend xdvi-search preview-latex tex-site auto-loads pcomplete-extension em-term term disp-table ehelp helm-ipython helm-elisp helm-eval python eldoc-eval warnings whitespace paren time avoid recentf tree-widget savehist smtpmail-async smtpmail sendmail dired-async iterator simple-call-tree iedit-rect rect iedit iedit-lib smallurl mm-url gnus gnus-ems nnheader wid-edit rectangle-utils ledger-config ledger esh-var esh-io esh-cmd esh-opt esh-ext esh-proc eldoc esh-groups eshell esh-module esh-mode esh-arg esh-util tv-utils async pcvs vc-cvs pcvs-parse pcvs-info pcvs-defs pcvs-util ewoc mb-depth cl-info slime-autoloads esh-toggle flymake no-word htmlize cl dired-extension emms-mpd-config emms-playlist-limit emms-volume emms-volume-amixer emms-i18n emms-history emms-score emms-stream-info emms-metaplaylist-mode emms-bookmarks emms-cue emms-mode-line-icon emms-browser sort emms-playlist-sort emms-last-played emms-player-xine emms-player-mpd tq emms-playing-time emms-lyrics emms-url hl-line emms-tag-editor emms-mark emms-mode-line emms-cache emms-info-ogginfo emms-info-mp3info emms-playlist-mode emms-player-vlc emms-player-mplayer emms-info emms-streams later-do emms-source-playlist emms-source-file emms-player-simple emms-setup emms emms-compat org-config-thierry ob-sh org-crypt cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs appt diary-lib diary-loaddefs org-element org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view jka-compr image-mode org-bibtex bibtex org-bbdb org-w3m org-agenda org-annotation-helper addressbook-bookmark message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader firefox-protocol bookmark-firefox-handler bookmark-extensions org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs init-helm-thierry helm-mode helm-dictionary helm-ls-git helm-descbinds helm-ls-hg helm-files image-dired tramp tramp-compat tramp-loaddefs trampver shell pcomplete format-spec dired-x dired-aux ffap thingatpt helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptative helm-info helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars mailcap helm-plugin bookmark pp helm-help helm-match-plugin helm-grep wgrep-helm wgrep helm-regexp grep helm-external helm-utils dired compile comint ansi-color ring helm-locate helm vc vc-dispatcher helm-config helm-aliases epa-file epa derived epg epg-config auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util time-date mm-util mail-prsvr password-cache package info easymenu cl-macs gv edmacro kmacro advice help-fns net-utils cl-loaddefs cl-lib tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting font-render-setting x-toolkit x multi-tty emacs) --=20 Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997=20 ------------=_1393612144-3147-1-- From unknown Sun Jun 22 17:14:04 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Nicolas Richard Subject: bug#16816: closed (Re: bug#16882: 24.3.50; with-temp-buffer-window broken) Message-ID: References: <5310D53B.8030209@gmx.at> <87sire4wqw.fsf@yahoo.fr> X-Gnu-PR-Message: they-closed 16816 X-Gnu-PR-Package: emacs Reply-To: 16816@debbugs.gnu.org Date: Fri, 28 Feb 2014 18:29:05 +0000 Content-Type: multipart/mixed; boundary="----------=_1393612145-3147-3" This is a multi-part message in MIME format... ------------=_1393612145-3147-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #16882: 24.3.50; erroneous docstring in with-temp-buffer-window which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 16816@debbugs.gnu.org. --=20 16882: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D16882 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1393612145-3147-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 16882-done) by debbugs.gnu.org; 28 Feb 2014 18:28:17 +0000 Received: from localhost ([127.0.0.1]:44893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJSAS-0000n7-Th for submit@debbugs.gnu.org; Fri, 28 Feb 2014 13:28:17 -0500 Received: from mout.gmx.net ([212.227.15.18]:53972) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJSAQ-0000mz-PG for 16882-done@debbugs.gnu.org; Fri, 28 Feb 2014 13:28:15 -0500 Received: from [62.47.35.87] ([62.47.35.87]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MMTZa-1WItOa05Gg-008GIz for <16882-done@debbugs.gnu.org>; Fri, 28 Feb 2014 19:28:14 +0100 Message-ID: <5310D53B.8030209@gmx.at> Date: Fri, 28 Feb 2014 19:28:11 +0100 From: martin rudalics MIME-Version: 1.0 To: Thierry Volpiatto Subject: Re: bug#16882: 24.3.50; with-temp-buffer-window broken References: <87k3cj2fzq.fsf@gmail.com> <6ubnxvj9v4.fsf@fencepost.gnu.org> <8738j7ger3.fsf@gmail.com> <530DBF1E.3090106@gmx.at> <87a9dbaek3.fsf@gmail.com> <53106C0C.6070402@gmx.at> <87zjlbh0h2.fsf@gmail.com> In-Reply-To: <87zjlbh0h2.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:BaFwa2SuE0r6+vlvKINz95Q+JXWV/GbFT+Z7Zvq68LyUKhWtBng el4x9N5tuy/C94Wkfw45pt5wRr56iLxQs3N06nrGJc0Q7oTbhTPXWHHv9lRQ2hbFgV87Jat 867mbhmTMxxCyg/02/fsvgPT0pmMSwmphB9NAaPzlN0EkoNRXqrHKhs/nUpBjlFvYyIq/ro ka2v71FW/w836nB95HXuw== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16882-done Cc: 16882-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Closing this bug then ... martin ------------=_1393612145-3147-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 19 Feb 2014 21:30:04 +0000 Received: from localhost ([127.0.0.1]:60723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGEiP-0001HE-UI for submit@debbugs.gnu.org; Wed, 19 Feb 2014 16:30:03 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37338) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGEiN-0001Gm-Je for submit@debbugs.gnu.org; Wed, 19 Feb 2014 16:30:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGEi8-0003n5-OA for submit@debbugs.gnu.org; Wed, 19 Feb 2014 16:29:54 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:60741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGEi8-0003n1-LI for submit@debbugs.gnu.org; Wed, 19 Feb 2014 16:29:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGEi1-0003mv-B8 for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 16:29:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGEht-0003jC-QG for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 16:29:37 -0500 Received: from mailrelay011.isp.belgacom.be ([195.238.6.178]:1296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGEht-0003ff-Ki for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 16:29:29 -0500 X-Belgacom-Dynamic: yes Received: from 199.199-178-91.adsl-dyn.isp.belgacom.be (HELO LDLC-portable) ([91.178.199.199]) by relay.skynet.be with ESMTP; 19 Feb 2014 22:29:27 +0100 From: Nicolas Richard To: bug-gnu-emacs@gnu.org Subject: 24.3.50; erroneous docstring in with-temp-buffer-window Date: Wed, 19 Feb 2014 22:29:27 +0100 Message-ID: <87sire4wqw.fsf@yahoo.fr> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) The docstring of `with-temp-buffer-window' contains : It does not make the buffer current for BODY. (2nd sentence of 2nd paragraph). But I think that is wrong, because : (with-temp-buffer-window (get-buffer-create "foo") nil nil (message "curbuf: %s" (current-buffer))) outputs "curbuf: foo" If this is a docbug, here's a suggestion : --- a/lisp/window.el +++ b/lisp/window.el @@ -149,10 +149,9 @@ BUFFER-OR-NAME must specify either a live buffer, or the name of a buffer (if it does not exist, this macro creates it). This construct makes buffer BUFFER-OR-NAME empty before running BODY. -It does not make the buffer current for BODY. -Instead it binds `standard-output' to that buffer, so that output -generated with `prin1' and similar functions in BODY goes into -the buffer. +It makes the buffer current for BODY and binds `standard-output' to that +buffer, so that output generated with `prin1' and similar functions in +BODY goes into the buffer. At the end of BODY, this marks the specified buffer unmodified and read-only, and displays it in a window (but does not select it, or make -- Nico. ------------=_1393612145-3147-3-- From unknown Sun Jun 22 17:14:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16882: 24.3.50; with-temp-buffer-window broken Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Mar 2014 10:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16882 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Thierry Volpiatto Cc: 16882@debbugs.gnu.org Received: via spool by 16882-submit@debbugs.gnu.org id=B16882.139496409630555 (code B ref 16882); Sun, 16 Mar 2014 10:02:01 +0000 Received: (at 16882) by debbugs.gnu.org; 16 Mar 2014 10:01:36 +0000 Received: from localhost ([127.0.0.1]:37942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WP7su-0007wk-8H for submit@debbugs.gnu.org; Sun, 16 Mar 2014 06:01:36 -0400 Received: from mout.gmx.net ([212.227.17.22]:63636) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WP7sr-0007wc-NO for 16882@debbugs.gnu.org; Sun, 16 Mar 2014 06:01:34 -0400 Received: from [62.46.211.76] ([62.46.211.76]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MWxtA-1Wb6HX2rFE-00W0lZ; Sun, 16 Mar 2014 11:01:31 +0100 Message-ID: <53257676.8010905@gmx.at> Date: Sun, 16 Mar 2014 11:01:26 +0100 From: martin rudalics MIME-Version: 1.0 References: <87k3cj2fzq.fsf@gmail.com> <6ubnxvj9v4.fsf@fencepost.gnu.org> <8738j7ger3.fsf@gmail.com> <530DBF1E.3090106@gmx.at> <87a9dbaek3.fsf@gmail.com> <53106C0C.6070402@gmx.at> In-Reply-To: <53106C0C.6070402@gmx.at> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:8DSNio8prg7Tqh+/jm1SzCBJxTYtoRFDWK6wM9JAOt/hiOT6w0s hsca/zbslhDu9dnZASiozP7MF1mvAhgvu9MZsOI7l5TFjmTqud4ebvRNo0eQxl4UhrWEeY+ He9q//BXiNfrfTdJ+HC/Tu/H4CuzYUSWx/sRxtRYwAnqQFC7cLeMnOV21pUNGzj+0fTdONo LawGQ3E2kRftYpLBhItkA== X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > As the bug found by Juanma shows I was fooled by this myself. It should > now behave again in your sense. I still have to explain the behavior in > the manual. Sorry, but I had to revert that once more in the light of bug#17007. A major aspect of `with-temp-buffer-window' was (and the doc-string indicated it) to evaluate BODY in the original buffer in order to get the local variables, settings and keybindings of that buffer right. I messed that up in the Emacs 24.3 version of the macro and now have it do what the doc-string indicated then. So you will have to change your code as I suggested earlier. As a remedy you can now use the new macro `with-current-buffer-window' instead which does exactly what `with-temp-buffer-window' did in Emacs 24.3. This might not be the most convenient way to work with the same code in Emacs 24.3 and subsequent versions but it's the best I can offer. Apologizing again, martin