From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: Re: Customising Guile's prompt Date: Wed, 11 Dec 2024 16:35:48 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15394"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Thu Dec 12 01:36:41 2024 Return-path: Envelope-to: guile-user@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 1tLXC3-0003tz-Pq for guile-user@m.gmane-mx.org; Thu, 12 Dec 2024 01:36:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLXBN-0003fN-4F; Wed, 11 Dec 2024 19:35:57 -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 1tLXBL-0003ez-9k for guile-user@gnu.org; Wed, 11 Dec 2024 19:35:55 -0500 Original-Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLXBJ-00011V-Qf for guile-user@gnu.org; Wed, 11 Dec 2024 19:35:55 -0500 Original-Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-21636268e43so450655ad.2 for ; Wed, 11 Dec 2024 16:35:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733963751; x=1734568551; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=64dtJct3J16/POA8QOTO/jO9wJzlx6XHWvfm9dG+18I=; b=fYhyacaN/qWpQcB2XN7BiuXM6phN7yhZbI4emxUpHP8pZeLUvylUyYU9YcX/ttZqN7 UegwfcjdjOcea9T8puHhVYeM4D9U67m6+ILoY16I27XV91spdf31HSO+jdftTyhHLr7y +fccfHEZwsmDQZzSsKt8snuH4jPf7A9xbwvOXO2lA4gfp1H2myFukEiVbyktOE7slyTl y+iGyno6k/20g67n/w7c5eGk8SzpB3qjIjeLW7BvaRShjwsgajaMwy8sumD/MA1+wSOV J++0HaIfvV0+kL/7gFcMWUV4+e+i+rk+Ef5ftOeRaAatFLFdGiKAOuE4r02QorRmNjIj oeMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733963751; x=1734568551; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=64dtJct3J16/POA8QOTO/jO9wJzlx6XHWvfm9dG+18I=; b=eldhydWyAVO8xnZ7yzwNSA9BOhY4Ms9jsXZulXQwMBb1HlTm3cJhhKnUpsW2fDgMyQ Zk9MI/2vx+jQBqRQ1NvEn1BpZZ3cslYYKw3oS0rF/9W40ZKLY04oSAzq7I/iyiSWxhyQ urpVje+qYUI/bWhhz5JG2SuTjYl+C8kUKSeExBkzwBxtLDYp9+GzpgLJQMt0hCAmVIC8 rbhjqDnDkveZfxaU3ES0wG46KUm2WE1smTB5y+gBnh8H4b4a4jrHCvF048fmFUNglA8g TTlh9gkebc51p7xAnzd9krJjiLNQucUqyqV0eWPdP04IKXnpLS+PKrhK2N3mN6zY40vh OpYQ== X-Gm-Message-State: AOJu0YyTpfLYJil3P9crUbmuWtst5CICZ9N8doKy5ARXCYNzWzqCGG2Q fsBYWWvqkvmjoWTlwSQoYEq+LxH7WXHllNi5WT5jvvjSCZ3pQ4lxIPITkA== X-Gm-Gg: ASbGncuzIgakHUY7X4SBx9gD4ZsXPRzNo1GJD2Oz1fFeU6qE0TxRX12iW2SlQj8g6FJ ajtQ2198ssjKsLoAOAKISBRPhMF/WAL9MGq1po5n6lPwu3pIqmBzpkiz0VbjlogWEcH0dPV1oYi hz4KxYuiapFoWo+qDAwdjxlldNRXZrScRgbK0i78mChVfTieoYqUVE2+bnbNaH7Crq/o5Yt9xA7 IiYbl0G9mwsgnOub4kj11It2C0GMpt4DIj4pRjWNXVUOHtutGfMTG2DiNxmELKUgrR/ X-Google-Smtp-Source: AGHT+IFzCcaiuZGfsaExBpgQOYJw9o3VAkSeEh1qbniNht0DpoA5aC0+sDncRXXjsdGnPsI65d0KOw== X-Received: by 2002:a17:902:ec83:b0:215:7421:262 with SMTP id d9443c01a7336-2177851e81dmr77003995ad.12.1733963750945; Wed, 11 Dec 2024 16:35:50 -0800 (PST) Original-Received: from [192.168.2.155] (64-52-138-37.championbroadband.com. [64.52.138.37]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2163b1f8697sm67806075ad.261.2024.12.11.16.35.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Dec 2024 16:35:50 -0800 (PST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=matt.wette@gmail.com; helo=mail-pl1-x632.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: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19965 Archived-At: On 12/11/24 7:33 AM, Ray Soto wrote: > Hi! I've read the HTML manual and I have created a 'nice' > prompt for my machines as follows: > > (use-modules ... (system repl common)) > ... > (repl-default-option-set! 'prompt > (string-append > (getlogin) "@" (gethostname) " > ")) > > What bothers me is that I have been unable to replicate > the default prompt's feature of printing the current > debug (level/frame? don't even know how to call it!) > > I've searched in my /usr/local/share/guile (I am on BSD) > to no avail. Could you point me in the right direction here? > BR, Ray.- > Maybe kludgy but check out this: (length (fluid-ref *repl-stack*))