From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#37507: 26.3; Non-number value for `fill-column' causes wrong-type-arg error for `C-h f' Date: Sat, 19 Oct 2019 02:35:31 +0200 Message-ID: References: <326973dd-0844-40e1-ad2e-55b3a7ea35bf@default> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="189163"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Noam Postavsky , 37507@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 19 02:36:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iLcj4-000n3w-KJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Oct 2019 02:36:10 +0200 Original-Received: from localhost ([::1]:47034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLcj2-0003u8-S3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Oct 2019 20:36:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39948) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLcix-0003ty-4L for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 20:36:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLciw-0006rW-28 for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 20:36:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42891) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLciv-0006rS-VO for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 20:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iLciv-0007cJ-QV for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 20:36:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <326973dd-0844-40e1-ad2e-55b3a7ea35bf@default> Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2019 00:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37507 X-GNU-PR-Package: emacs Original-Received: via spool by 37507-submit@debbugs.gnu.org id=B37507.157144535129261 (code B ref 37507); Sat, 19 Oct 2019 00:36:01 +0000 Original-Received: (at 37507) by debbugs.gnu.org; 19 Oct 2019 00:35:51 +0000 Original-Received: from localhost ([127.0.0.1]:51712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLcil-0007bo-21 for submit@debbugs.gnu.org; Fri, 18 Oct 2019 20:35:51 -0400 Original-Received: from mail-pf1-f169.google.com ([209.85.210.169]:39239) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLcii-0007bR-Kn for 37507@debbugs.gnu.org; Fri, 18 Oct 2019 20:35:49 -0400 Original-Received: by mail-pf1-f169.google.com with SMTP id v4so4830764pff.6 for <37507@debbugs.gnu.org>; Fri, 18 Oct 2019 17:35:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=b+cv6QflMQeyv8B3NhSrRlD6vhVmOdxkFG+RQq4m98E=; b=U8S3KTMdrsbTy3vII4QD8E5P4KYSoQloe0iy1gRmnkRtNDp/M1kMaFrvByfIYUdxPg gTaQ07iT/f7ozhUWgMoeaqLZ6rRHAhqAH8qZV3LnutA8rb7W2DAwA6KxRh+FKpbhcUX4 +XFVS01F/WA0BzETMC9WGERIQSdE4FwIrxXbxrOFhWNBe+zt5sDiBIatlKYdBr/Q5pnq JaNTkYgfP5akhs1x4LmQr0sL0Ake/BldF5A17bmRmsEiHCWRRJ7hVaAp6Te6CN6UB4H5 3+FeBnsSp8gW/riURRW0pWga/QQskE1Y1hwhrlG92ONsBzYPOwhEXIYKEnMtHIkKGL08 Bvag== X-Gm-Message-State: APjAAAXNtjmcM6BXE26I9cSfNiMmTY1xwKi/Iik3N/ub3K2tuT7tze0M Fdftj6u9C15HyALan9CMzkMxxwfJ9a0qFdpCrsE= X-Google-Smtp-Source: APXvYqx2Gn8KZ3NCrzzIRNSPpeVuV/IeQlAhr4xHLStLEhwi9kYhOHXUO1saGLRYzOik0RZLf30VPWvWlf07B8BLAJw= X-Received: by 2002:aa7:8652:: with SMTP id a18mr9603701pfo.190.1571445342674; Fri, 18 Oct 2019 17:35:42 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:169687 Archived-At: tags 37507 + notabug close 37507 quit Eli Zaretskii writes: >> From: Noam Postavsky >> Date: Tue, 24 Sep 2019 15:53:15 -0400 >> Cc: 37507@debbugs.gnu.org >> >> Drew Adams writes: >> >> > `fill-column' is supposed to have an integer value > 0. >> > >> > But if it has a non-numeric value then other functions can barf, unless >> > they watch out for that. >> >> Shouldn't users just not set it to a non-numeric value then? I'm sure >> you can cause all sort of errors by setting things to invalid values. >> >> > emacs -Q >> > >> > (setq fill-column nil) >> >> Do you mean setq-default (otherwise I can't reproduce)? > > I agree that this is a cockpit error. Users who are prone to such > mistakes should use Customize to set values of variables. Users who > use setq-default should know what they are doing. > > It is unreasonable to request that we have an explicit test for valid > values in every place that references a variable. Our protection is > that we signal an error, and that should IMO be good enough in cases > such as this one. > > P.S. This bug report came from a question on Reddit, where it > received the same responses. I think the above makes it clear that this is not a bug. I'm consequently closing this report. Best regards, Stefan Kangas