From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#21780: 25.0.50; Saving *Help* results in bad encoding because of curly quotes Date: Sat, 31 Oct 2015 18:10:11 +0000 Message-ID: <86mvuy7vuk.fsf@gmail.com> References: <48a87436-595a-4f65-9e3c-094f6d77ee96@default> <83eggcytam.fsf@gnu.org> <83d1vwyt02.fsf@gnu.org> <86bnbgot1t.fsf@gmail.com> <83a8qzzed0.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1446315148 20953 80.91.229.3 (31 Oct 2015 18:12:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Oct 2015 18:12:28 +0000 (UTC) To: 21780@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 31 19:12:15 2015 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 1ZsadO-0001Ob-Qx for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Oct 2015 19:12:11 +0100 Original-Received: from localhost ([::1]:56602 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsadO-0004i7-Bn for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Oct 2015 14:12:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsadK-0004fA-AW for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2015 14:12:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZsadH-00017z-4q for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2015 14:12:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsadH-00017s-1x for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2015 14:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZsadG-0003HK-Ix for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2015 14:12:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Oct 2015 18:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21780 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.144631506312506 (code B ref -1); Sat, 31 Oct 2015 18:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Oct 2015 18:11:03 +0000 Original-Received: from localhost ([127.0.0.1]:47310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZsacI-0003FT-Cc for submit@debbugs.gnu.org; Sat, 31 Oct 2015 14:11:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53943) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zsabx-0003Et-B5 for submit@debbugs.gnu.org; Sat, 31 Oct 2015 14:11:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zsabw-0000wK-AB for submit@debbugs.gnu.org; Sat, 31 Oct 2015 14:10:41 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zsabw-0000wF-2m for submit@debbugs.gnu.org; Sat, 31 Oct 2015 14:10:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zsabu-0004Ca-GN for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2015 14:10:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zsabr-0000vg-A0 for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2015 14:10:38 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:49169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zsabr-0000vK-33 for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2015 14:10:35 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zsabn-0008TW-Ch for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2015 19:10:31 +0100 Original-Received: from 82-69-64-228.dsl.in-addr.zen.co.uk ([82.69.64.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Oct 2015 19:10:31 +0100 Original-Received: from andrewjmoreton by 82-69-64-228.dsl.in-addr.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Oct 2015 19:10:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 82-69-64-228.dsl.in-addr.zen.co.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) Cancel-Lock: sha1:5NMFrNuBk3X6KMs2A0vLgBK7gS0= 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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:108241 Archived-At: On Sat 31 Oct 2015, Eli Zaretskii wrote: >> From: Andy Moreton >> Date: Fri, 30 Oct 2015 23:06:22 +0000 >> >> On Fri 30 Oct 2015, Eli Zaretskii wrote: >> >> >> Date: Fri, 30 Oct 2015 22:50:57 +0200 >> >> From: Eli Zaretskii >> >> Cc: 21780@debbugs.gnu.org >> >> >> >> If you want to have Unix EOLs by default, the correct customization is >> >> this: >> >> >> >> (setq-default buffer-file-coding-system >> >> (coding-system-change-eol-conversion >> >> buffer-file-coding-system 'unix)) >> > >> > This variant is better: >> > >> > (setq-default buffer-file-coding-system >> > (coding-system-change-eol-conversion >> > default-buffer-file-coding-system 'unix)) >> >> Why ? Help for `default-buffer-file-coding-system' says: >> >> This variable is obsolete since 23.2; >> use ‘buffer-file-coding-system’ instead. > > Then use (default-value buffer-file-coding-system) instead. The point > being to use the default value to modify the default value. When this > code runs, the current buffer should have the same value as its > buffer-local value, but I preferred not to rely on that. I see your point. So you prefer this: (setq-default buffer-file-coding-system (coding-system-change-eol-conversion (default-value 'buffer-file-coding-system) 'unix)) Thanks for answering this - a useful addition to my init.el. AndyM