zsh-workers
 help / color / mirror / code / Atom feed
From: Hrvoje.Niksic@public.srce.hr (Hrvoje Niksic)
To: zsh-workers@math.gatech.edu
Subject: kill-word & friends in ZLE
Date: Thu, 16 May 1996 01:02:44 +0200 (MET DST)	[thread overview]
Message-ID: <199605152302.BAA13777@jagor.srce.hr> (raw)

It is quite irritating for me that in zsh's Emacs mode functions like
backward-kill-word and similar behave in a different fashion. Examples:

fly% cd /usr/local/lib/gwembljh[Esc-Backspace]

and everything is erased, instead of just gwembljh. The same applies for
{backward,forward}-word. Since zshparam man-page states that zsh uses the
value of WORDCHARS for this purpose, I think the default value should be
changed at least not to contain '/', if not to an empty string (for strict
Emacs compliance, since Emacs recognizes all of the default wordchars as
word boundaries).

If I understood the situation correctly, the patch should be something like:
*** Src/system.h.orig	Thu May 16 00:29:00 1996
--- Src/system.h	Thu May 16 01:01:54 1996
***************
*** 305,311 ****
  # define DEFAULT_WATCHFMT "%n has %a %l."
  #endif
  
! #define DEFAULT_WORDCHARS "*?_-.[]~=/&;!#$%^(){}<>"
  #define DEFAULT_TIMEFMT   "%J  %U user %S system %P cpu %*E total"
  
  /* Posix getpgrp takes no argument, while the BSD version *
--- 305,311 ----
  # define DEFAULT_WATCHFMT "%n has %a %l."
  #endif
  
! #define DEFAULT_WORDCHARS "" /* For Emacs compliance */
  #define DEFAULT_TIMEFMT   "%J  %U user %S system %P cpu %*E total"
  
  /* Posix getpgrp takes no argument, while the BSD version *


-- 
hniksic@srce.hr              |  Student of electrical engineering
hniksic@fly.cc.fer.hr        |  University of Zagreb, Croatia
------------------------------------------------------------------
`VI' - An editor used by those heretics that don't subscribe to
       the Emacs religion.



             reply	other threads:[~1996-05-15 23:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-15 23:02 Hrvoje Niksic [this message]
1996-05-15 23:18 ` Zefram
1996-05-16 14:56   ` Mike Kazda
1996-05-16 17:09     ` Barton E. Schaefer
1996-05-15 23:47 ` Bart Schaefer
1996-05-16  1:12   ` Wayne Davison
     [not found]     ` <wayne@clari.net>
1996-05-16  0:49       ` Bart Schaefer
1996-05-16 22:17         ` Wayne Davison
1996-05-16 12:00   ` Hrvoje Niksic

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=199605152302.BAA13777@jagor.srce.hr \
    --to=hrvoje.niksic@public.srce.hr \
    --cc=hniksic@public.srce.hr \
    --cc=zsh-workers@math.gatech.edu \
    /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).