On Monday March 10, 2003 21:48:06 +0100, [EMAIL PROTECTED] wrote:
 > On Saturday, March 8, 2003 at 10:55:32, Sridhar Boovaraghavan wrote:
 > > Hi,
 > > 
 > > When I create a bbdb record by hand, the history for the different
 > > elements of the record are combined into one list. For e.g. I add
 > > this record:
 > > 
 > > First Last, Company: ABC Corp.
 > > 111 25th St.
 > > Town, ST 12345
 > > USA
 > > 
 > > Then I start adding another record (say, name: First 2Last). When I
 > > type M-p to find the previous thing that was entered, I would like
 > > the history for the previous category not the very last thing that
 > > was entered.
 > > 
 > > In this case when I am prompted for the company of the second
 > > person, I type M-p, I get First 2Last, USA, 12345, ST and so
 > > on. What I want is ABC Corp.
 > > 
 > > Could this please be fixed?
 > > 
 > > I am using BBDB from CVS in Emacs 21.2.95.
 > 
 > Well, we cannot fix Emacs problems. Maybe they have changed
 > the semantics of completing-read and read-string?
 > 
 > I cannot reproduce this with XEmacs 21.4.12 nor GNU Emacs 20.7.2
 > with BBDB from CVS.

Hi Rob,

Thanks for responding.

I am trying to understand your statements above. As I am not very
familiar with emacs internals, please forgive if any of the stuff
below seems silly/simple.

It looks like in my case read-string is the function that is being
used. I notice that it is being called with one argument, the
prompt. The documentation of read-string in this emacs (Emacs 21.2.95)
is the following:

--
read-string is a built-in function.
(read-string PROMPT &optional INITIAL-INPUT HISTORY DEFAULT-VALUE INHERIT-INPUT-METHOD)

Read a string from the minibuffer, prompting with string PROMPT.
If non-nil, second arg INITIAL-INPUT is a string to insert before reading.
The third arg HISTORY, if non-nil, specifies a history list
  and optionally the initial position in the list.
See `read-from-minibuffer' for details of HISTORY argument.
Fourth arg DEFAULT-VALUE is the default value.  If non-nil, it is used
 for history commands, and as the value to return if the user enters
 the empty string.
Fifth arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits
 the current input method and the setting of
 enable-multibyte-characters.
--

So, it seems like no history argument is being passed. What I am not
sure is whether previous emacsen used to create history lists on the
fly for read-string called with a certain prompt and use them. In this
case, the command that calls them is bbdb-read-new-record. Maybe that
implicit history is being formed for all uses of this command?

Could someone check the behavior on a released Emacs 21.2 to confirm
that it is the same as I report it above? While it may be a bug, it is
probably not as likely as changed behavior. If it is the latter, could
BBDB "support" this change?

Thanks,
Sridhar
-- 
Sridhar Boovaraghavan
[EMAIL PROTECTED]
http://www.geocities.com/sridhar_ml/



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to