From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel Reicher Newsgroups: gmane.emacs.help Subject: Re: interactive argument not meeting condition Date: Sun, 22 Dec 2024 23:06:30 +1100 Message-ID: <86o713j515.fsf@gmail.com> References: <6uCGeVwlSpMEpLWeIe66TBIB74JuRSNjoX31kRonQLicPN3kf1VbAhJWDNS97pjSGTAa1MiYRdic77b2MbajEk0iyk8Kmxup3ENmG4fOaP4=@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12972"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Heime To: Heime via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 22 13:07:22 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tPKjx-0003Gs-N0 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 22 Dec 2024 13:07:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPKjU-000649-5l; Sun, 22 Dec 2024 07:06:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPKjI-000625-9A for help-gnu-emacs@gnu.org; Sun, 22 Dec 2024 07:06:42 -0500 Original-Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPKjE-0007Pu-Fr for help-gnu-emacs@gnu.org; Sun, 22 Dec 2024 07:06:38 -0500 Original-Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-216281bc30fso35626675ad.0 for ; Sun, 22 Dec 2024 04:06:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734869195; x=1735473995; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=mUi0zsBQR5L/b20b28m89IU+3ADUo/aoFXLBuCI+dNs=; b=LAOU6RbJg8+Ue3VdT71SFajrmGTMdHkOsQVclMzeJIXSLyFVEkSrs2wq3ojkwZ4x2+ HN1rDCd37tzcDMD4eeq/8KB2HuMFipm0ISe+NemRhC3KcE8jUEaG06P1cFI3o2PNmWYw kYxW5fK9xRpl5J+/NjQOO1F64y6UEU7SaA9Jo8yVCiTGHkp2H0MT4tIZ3CnWwQsx9KMB DKTAt2+OyS/VWHYSsSkveLHXyykYt83h49QQGyUzgbNEu+GhPmD5jB04bevRb5Dh2Iup C79YJL55C8ULxS/kGOA/txq3YXzScCYA58/HWx/ggzvuatlYpgUmV2MAVYKI8DGVnq28 6teQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734869195; x=1735473995; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=mUi0zsBQR5L/b20b28m89IU+3ADUo/aoFXLBuCI+dNs=; b=uq+raieOrtH0pLwiq5Bm2uhO4dKXbEN4lOJ8ZFMvPeVhl/Ob801h6cwC3/FMo2i+xb 4TYK6VQxGYx67S9RW9yi24JwWFCaqa+htpdkBa+FLVGe6C7CPonmIsIXPqYi2LzIAw+Q n+U4LaBXYpBZsZpqO/kXViB78Q9cViAL9jUu0iEe4Y17+oWjrvD30llOqrFaBE0mnyfA W5AQcixRk1Y4Ws4S2bJrv0cCr8NAFHR0IDt09BAB+hcQyRSk1xoD3SiK9gLlIDTQpTzC Pw/8urB+AuJK29i3YGT8l1ObMLFrIuZTnuUQyoipJH7ptUYMRfZaMBZgSsutO6JmTAan X+JA== X-Gm-Message-State: AOJu0YyJ8tvXyZ9wbgQYj8gehDPBedbtF12u7eABQj6ecKadYR0P74Ct V8MT1UhRPtlpIVIRRGtcX9rJHP+8gDVIGXr+WnJpqXDiC0Am37kIoKxUJg== X-Gm-Gg: ASbGncutNvlQGevtFKH0PfmYrvYoNJTt2phq4oXpqEfHKefZokvZPgmvoVGHTF4GA1N jb4zuIEenKq3jZLHhDaG/w60JBIqaHGVCsMbFR1r354gphtgOQuySPFznq6h3ES7/6P/UsLRhB3 muSleqjcSE0OgkKAHe/77CaLBGxwGdML1Cgav45m6zveThTSbbIENsuBCHiuypQkmRqYOt+vNc/ 1kY1/pMwO7JMW7qD31L0lbrV8GPc7dHIjBt0PcSNDJojNct1oo5xuIH8cFYClC5/LPVxiDx8/wN f8AHzvH9eYCAXPsgnfoRSW4Lc1v6Z5XHPtvdjBGTCQa2 X-Google-Smtp-Source: AGHT+IEyS7tYU56bOzLEFifkCtJkliqMMeCDfwEen0gK9VAt64ZqtnyadgHohC5rGRSfRpy0w+pu7Q== X-Received: by 2002:a17:902:ce0e:b0:216:3d72:1712 with SMTP id d9443c01a7336-219e6f38292mr141349015ad.48.1734869194915; Sun, 22 Dec 2024 04:06:34 -0800 (PST) Original-Received: from LAPTOP-ACR66VVN (139-218-25-158.sta.wbroadband.net.au. [139.218.25.158]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc9f51c2sm56086605ad.190.2024.12.22.04.06.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2024 04:06:34 -0800 (PST) In-Reply-To: <6uCGeVwlSpMEpLWeIe66TBIB74JuRSNjoX31kRonQLicPN3kf1VbAhJWDNS97pjSGTAa1MiYRdic77b2MbajEk0iyk8Kmxup3ENmG4fOaP4=@protonmail.com> (Heime via Users list for the's message of "Wed, 27 Nov 2024 12:37:21 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=joel.reicher@gmail.com; helo=mail-pl1-x634.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148917 Archived-At: Heime via Users list for the GNU Emacs text editor writes: > For the line column I test whether actm disables the value. > What happens to line-column when the condition does not invoke > read-number? Would I need some default for it? > > (defun polaq (actm line-column) > > (interactive > (let* ( (cseq '("extended" "disable" "tabtrail")) > (actm (completing-read "Dragovis: " cseq nil t > "tabtrail")) > (line-column (if (not (string= actm "disable")) > (read-number "Set line column: " > 72))) ) > > (list actm line-column)) ) It looks like line-column is being set to the result of the "if". Regards, - Joel