zsh-users
 help / color / mirror / code / Atom feed
* histbeep doesn't work?
@ 2015-04-02  7:00 Han Pingtian
  2015-04-02 15:37 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Han Pingtian @ 2015-04-02  7:00 UTC (permalink / raw)
  To: zsh-user

Hi,

How to trigger the beep when failing to access a history entry? I cannot
do it:

% zsh -f
localhost% setopt beep histbeep
localhost% !?aaaaa?
zsh: no such event: aaaaa
localhost%

But there is no beep. Although it beeps when pressing tab after "ls".

Thanks!


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: histbeep doesn't work?
  2015-04-02  7:00 histbeep doesn't work? Han Pingtian
@ 2015-04-02 15:37 ` Bart Schaefer
  2015-04-03  3:14   ` Han Pingtian
  0 siblings, 1 reply; 5+ messages in thread
From: Bart Schaefer @ 2015-04-02 15:37 UTC (permalink / raw)
  To: zsh-user

On Apr 2,  3:00pm, Han Pingtian wrote:
} 
} How to trigger the beep when failing to access a history entry?

HISTBEEP doesn't refer to bang-history, it refers to history motions
in the ZLE widget set.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: histbeep doesn't work?
  2015-04-02 15:37 ` Bart Schaefer
@ 2015-04-03  3:14   ` Han Pingtian
  2015-04-03 16:14     ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Han Pingtian @ 2015-04-03  3:14 UTC (permalink / raw)
  To: zsh-users

On Thu, Apr 02, 2015 at 08:37:18AM -0700, Bart Schaefer wrote:
> On Apr 2,  3:00pm, Han Pingtian wrote:
> } 
> } How to trigger the beep when failing to access a history entry?
> 
> HISTBEEP doesn't refer to bang-history, it refers to history motions
> in the ZLE widget set.

I'd like to suggest clarify the doc something like this:

---
 Doc/Zsh/options.yo | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index 19920ca..d1f9a23 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -809,7 +809,7 @@ pindex(NOHISTBEEP)
 cindex(history beeping)
 cindex(beep, history)
 item(tt(HIST_BEEP) <D>)(
-Beep when an attempt is made to access a history entry which
+Beep in ZLE widget when an attempt is made to access a history entry which
 isn't there.
 )
 pindex(HIST_EXPIRE_DUPS_FIRST)
-- 
1.9.3


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: histbeep doesn't work?
  2015-04-03  3:14   ` Han Pingtian
@ 2015-04-03 16:14     ` Bart Schaefer
  2015-04-03 22:30       ` Han Pingtian
  0 siblings, 1 reply; 5+ messages in thread
From: Bart Schaefer @ 2015-04-03 16:14 UTC (permalink / raw)
  To: zsh-users

On Apr 3, 11:14am, Han Pingtian wrote:
}
} > HISTBEEP doesn't refer to bang-history, it refers to history motions
} > in the ZLE widget set.
} 
} I'd like to suggest clarify the doc something like this:
} 
} -Beep when an attempt is made to access a history entry which
} +Beep in ZLE widget when an attempt is made to access a history entry which
}  isn't there.

Perhaps "Beep in ZLE when a widget attempts to access ..." but this
change is otherwise fine.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: histbeep doesn't work?
  2015-04-03 16:14     ` Bart Schaefer
@ 2015-04-03 22:30       ` Han Pingtian
  0 siblings, 0 replies; 5+ messages in thread
From: Han Pingtian @ 2015-04-03 22:30 UTC (permalink / raw)
  To: zsh-users

On Fri, Apr 03, 2015 at 09:14:54AM -0700, Bart Schaefer wrote:
> On Apr 3, 11:14am, Han Pingtian wrote:
> }
> } > HISTBEEP doesn't refer to bang-history, it refers to history motions
> } > in the ZLE widget set.
> } 
> } I'd like to suggest clarify the doc something like this:
> } 
> } -Beep when an attempt is made to access a history entry which
> } +Beep in ZLE widget when an attempt is made to access a history entry which
> }  isn't there.
> 
> Perhaps "Beep in ZLE when a widget attempts to access ..." but this
> change is otherwise fine.

Thanks. I have composed a new patch according to your suggestion.


>From 7c0ff8a0f0e01c33c84ec5b5bab546b84a41a841 Mon Sep 17 00:00:00 2001
From: Han Pingtian <hanpt@linux.vnet.ibm.com>
Date: Fri, 3 Apr 2015 11:09:39 +0800
Subject: [PATCH] clarifying doc of HIST_BEEP

Signed-off-by: Han Pingtian <hanpt@linux.vnet.ibm.com>
---
 Doc/Zsh/options.yo | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index 19920ca..8540256 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -809,7 +809,7 @@ pindex(NOHISTBEEP)
 cindex(history beeping)
 cindex(beep, history)
 item(tt(HIST_BEEP) <D>)(
-Beep when an attempt is made to access a history entry which
+Beep in ZLE when a widget attempts to access a history entry which
 isn't there.
 )
 pindex(HIST_EXPIRE_DUPS_FIRST)
-- 
1.9.3


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-03 23:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-02  7:00 histbeep doesn't work? Han Pingtian
2015-04-02 15:37 ` Bart Schaefer
2015-04-03  3:14   ` Han Pingtian
2015-04-03 16:14     ` Bart Schaefer
2015-04-03 22:30       ` Han Pingtian

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).