zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Wayne Davison <wayned@users.sourceforge.net>,
	Zsh Workers <zsh-workers@sunsite.auc.dk>
Subject: Re: Rpm completion problem
Date: Sun, 6 Aug 2000 19:08:41 +0000	[thread overview]
Message-ID: <1000806190841.ZM24504@candle.brasslantern.com> (raw)
In-Reply-To: <1000805170851.ZM22662@candle.brasslantern.com>

On Aug 5,  5:08pm, Bart Schaefer wrote:
}
} On Aug 5, 12:25am, Wayne Davison wrote:
} }
} } I've noticed a problem in rpm completions when I specify the 'p'
} } (package file) option bunched up with other options.
} 
} This was discussed in the thread referenced by zsh-workers/11752, and
} I think the patch in 11985 was supposed to provide a way to fix it, but
} _rpm never got updated.

The last word in that discussion appears to have been   Sven, do you
recall whether you every did anything specific to this?

I remarked in 11742:

} Currently _rpm uses `-p+' as the spec for the -p option.  That means that
} anything that will follow the -p (including package file name) is allowed
} to appear in the same word, or in the next word.
} 
} If we remove the `+', then "rpm -qpc" doesn't match the spec `-p', and so
} completion doesn't enter the `package_file' state -- it instead enters the
} `package_or_file' state (the default spec from the `query' state).

This is no longer the problem; remove the `+' and `rpm -qpc <TAB>' completes
package file names exactly as it should.  However, `rpm -qp<TAB>' inserts a
space rather than completing `c' et al.

Based on my exchange with Sven as quoted in 11793, I'd say that _rpm needs
another ->state in order to handle bunched query options following -qp, or
at least that the package_file state needs to be tweaked somehow.  In the
meantime, if you don't mind having to make `p' be the last option in any
bunch beginning with `-q', just remove the `+' on line 62 of _rpm.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


  reply	other threads:[~2000-08-06 19:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-05  7:25 Wayne Davison
2000-08-05 17:08 ` Bart Schaefer
2000-08-06 19:08   ` Bart Schaefer [this message]
2000-08-06 21:44     ` Bart Schaefer

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=1000806190841.ZM24504@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=wayned@users.sourceforge.net \
    --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).