zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: pws-24: prompt escapes for script/function and lineno
Date: Mon, 28 Jun 1999 11:32:40 +0200 (MET DST)	[thread overview]
Message-ID: <199906280932.LAA25141@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Peter Stephenson's message of Mon, 28 Jun 1999 11:00:37 +0200


Peter Stephenson wrote:

> This implements the prompt escape %N for the nearest enclosing
> script/sourced file/function, and %i for the corresponding line number
> (sorry, %l, %L and %n were taken).  The main reason for having these is
> that the PROMPT_SUBST option is set by emulation, so an `emulate zsh' will
> turn it off, hence sticking $0 and $LINENO in PS4 is only partially
> successful, and expecting functions to set it seems unfair.  Another reason
> is that, because of FUNCTION_ARGZERO, it's not always possible to get the
> name of whatever's being executed as the internal scriptname variable isn't
> directly accessible.  I hope this seems reasonable.  People used to
> complain when you added new % sequences, but with the size of the code
> nowadays maybe they don't.

;-) That's why I  didn't dare to suggest something like this.

> Maybe we should make '+%N:%i:%_> ' or something such the default PS4?

Fine. (Many users wouldn't realise it otherwise, I think.)


Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~1999-06-28  9:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-28  9:32 Sven Wischnowsky [this message]
1999-06-28 13:08 ` Andrej Borsenkow
1999-06-28 17:05   ` Peter Stephenson
1999-06-29 15:31     ` Bart Schaefer
1999-06-29 15:40       ` Andrej Borsenkow
  -- strict thread matches above, loose matches on Subject: below --
1999-07-02 13:05 Sven Wischnowsky
1999-07-02 15:54 ` Peter Stephenson
1999-06-28  9:00 Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199906280932.LAA25141@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).