From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alessandro Bertulli Newsgroups: gmane.emacs.help Subject: Re: Elisp: can't read buffer content with with-current-buffer Date: Fri, 3 Jun 2022 00:48:17 +0200 Message-ID: References: <8735gn9fq2.fsf@gmail.com> <87k09y3in7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9699"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 03 01:04:56 2022 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 1nwts7-0002N9-1q for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 03 Jun 2022 01:04:55 +0200 Original-Received: from localhost ([::1]:53590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwts6-0000lF-27 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Jun 2022 19:04:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwtcF-0003Sy-8y for help-gnu-emacs@gnu.org; Thu, 02 Jun 2022 18:48:31 -0400 Original-Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]:34738) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nwtcD-0000Vn-K1; Thu, 02 Jun 2022 18:48:30 -0400 Original-Received: by mail-yb1-xb34.google.com with SMTP id p13so10873932ybm.1; Thu, 02 Jun 2022 15:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=T1tVvyfoIl5ua02sq++SGZNQdig8ldvbgxjEiCgzHYw=; b=g7E8LTzK38101bRpryQSvehG3aCO2LANSCDGhLpTFqOzOxNzYxSar/lJKPzJnZ5+8t EHMxTQGLXwzT2ES6FwVqxAU1vRwpOIl4kcvg8gPZjgET3/DDHgSu2dwjosM/fjpFljkG dMw5LB3VUTiD5B9w7bMvrPzZupJ4Bfh9sKYdutITK0u24CPtMDozb/fYiqUxsCmWQ9VD eRe2MRW2Gg9rUYH6n+7f67Ok0NDz1bNAhASrYp9yu6I9z0gWzdzA6ExFHpLSBLYQ/oBI qoFcyHMvrnc2NjNPk1T5NVv1GdNdfdrzUY824Ewrg2AOHSGNlRPukE0Jqt5EGNUXBjQi 4/Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=T1tVvyfoIl5ua02sq++SGZNQdig8ldvbgxjEiCgzHYw=; b=VPS3DwBUr5AC1n5wbH9EoM/h48U7N1Id9SqpU0KliFqwnOhNaxzKI7nSeDChx06KUB VCStWTYAMOvKL0BO6XeUCDhPkjVN7vGn7oKI4HRnCf4udgOGCZNBXGT899zZWiQb4HQb dNn/+mV6JUbOG6kg29lSwvgGWBnIwwDUX7N/OF3odRG0m+PEmz4Elawg7zJLsmoOz7kM ztzo/CreEG0dmZ5IZD3uveDBP6RGAH+C7sJTJpwT3kwgIXY/VQAa36HpozGe6E9EFyHk gSXFkHa9BIKhnWCms6rVqyMObLdqWfhpYgfCyiHD0W7vy0ktOARS8MKwx9HcRiFdQk3m n1VQ== X-Gm-Message-State: AOAM531j6nqUwYZlQv/PDrxQNDm/qlOj04/bVFndmlbQoQPSJX25bNRa JfiSakfSLn9yE4JXSXwA+Q6vKpNjn6k1E+2s+O2j8xTJ6Rn4jQ== X-Google-Smtp-Source: ABdhPJzlIFJrJ7Pqk0fwP3A4nHDahgXCa+2H05SXLrzwGY4BVn7BhCp+QYManvpujxVVXMoHWKlmIMSJwPfHHkQBOQs= X-Received: by 2002:a25:5f07:0:b0:65c:e37f:b706 with SMTP id t7-20020a255f07000000b0065ce37fb706mr7616880ybb.156.1654210108221; Thu, 02 Jun 2022 15:48:28 -0700 (PDT) In-Reply-To: <87k09y3in7.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::b34; envelope-from=alessandro.bertulli96@gmail.com; helo=mail-yb1-xb34.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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" Xref: news.gmane.io gmane.emacs.help:137489 Archived-At: Thanks Tassilo, it now works! However, now I have a next problem. I have this function for debug: (defun run-java-main-method (mainClass) (interactive (completing-read "Run main method: " (get-main-method-list))) (message "Read %s" mainClass) ) So that it simply echoes the entered text. Minibuffer completion works fine (I use Vertico), but when pressing RET I got this error (I report the debugger output, got by setting debug-on-error to t): Debugger entered--Lisp error: (wrong-type-argument listp "/home/alessandro/akka/src/main/java/com/example/Ak...") call-interactively(run-java-main-method nil nil) command-execute(run-java-main-method) I don't get it. Where is it expecting a list?