From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Per-port read options, reader directives, SRFI-105 Date: Tue, 23 Oct 2012 23:30:06 +0200 Message-ID: <87ehko98rl.fsf@gnu.org> References: <87a9vmvh9s.fsf@tines.lan> <87mwzdzpqf.fsf@tines.lan> 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 1351028109 2608 80.91.229.3 (23 Oct 2012 21:35:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2012 21:35:09 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Oct 23 23:35:17 2012 Return-path: Envelope-to: guile-devel@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 1TQm82-0000ww-UE for guile-devel@m.gmane.org; Tue, 23 Oct 2012 23:35:15 +0200 Original-Received: from localhost ([::1]:35610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQm7v-0004vY-9n for guile-devel@m.gmane.org; Tue, 23 Oct 2012 17:35:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQm7s-0004tt-8l for guile-devel@gnu.org; Tue, 23 Oct 2012 17:35:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQm7r-0002Wz-6A for guile-devel@gnu.org; Tue, 23 Oct 2012 17:35:04 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQm7r-0002WU-0D for guile-devel@gnu.org; Tue, 23 Oct 2012 17:35:03 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TQm7s-0000pk-3q for guile-devel@gnu.org; Tue, 23 Oct 2012 23:35:04 +0200 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Oct 2012 23:35:04 +0200 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Oct 2012 23:35:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 2 Brumaire an 221 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:J0dye5JYkfAAGf7ut7TFdAOcdXw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15037 Archived-At: Mark H Weaver skribis: > From 2ee3bdba0ae59e6f52a9fde61ac24f219db158fa Mon Sep 17 00:00:00 2001 > From: Mark H Weaver > Date: Tue, 23 Oct 2012 00:58:38 -0400 > Subject: [PATCH 8/9] Implement #!fold-case and #!no-fold-case reader > directives. > > * libguile/read.c (set_per_port_case_insensitive_p): New internal static > function. > > (scm_read_shebang): Handle #!fold-case and #!no-fold-case. > > * doc/ref/api-evaluation.texi (Case Sensitivity, Scheme Read): Document > #!fold-case and #!no-fold-case reader directives. > > * test-suite/tests/reader.test ("per-port-read-options"): Add tests. OK. > +read options on a per-port basis. Currently, the only read option that > +is overridden in this way is the @code{case-insensitive} option, which Instead of “Currently, the only...”, perhaps “For instance, the @code{case-insensitive} option can be...”? > +/* Set case-insensitivity on a per-port basis. */ > +static void > +set_per_port_case_insensitive_p (SCM port, scm_t_read_opts *opts, int value) Comment: Set OPTS and PORT’s case-insensitivity according to VALUE. Ludo’.