unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <bug-gnu-emacs@gnu.org>
Subject: doc string of assoc-string
Date: Fri, 4 Apr 2008 16:31:04 -0700	[thread overview]
Message-ID: <000c01c896ab$f3c7c9f0$0200a8c0@us.oracle.com> (raw)

This is what C-h f shows:
 
(assoc-string KEY LIST &optional CASE-FOLD)
 
 Like `assoc' but specifically for strings (and symbols).
 Symbols are converted to strings, and unibyte strings are converted to
 multibyte for comparison.
 Case is ignored if optional arg CASE-FOLD is non-nil.
 As opposed to `assoc', it will also match an entry consisting of a single
 string rather than a cons cell whose car is a string.
 
The first line should say something similar to what the first line of
`assoc' says.
 
The rest needs to say specifically that both the KEY and the alist entries
can be symbols as well as strings, and alist entries can have cars that are
symbols or strings. None of that is obvious.
 
How about something like this:
 
 Return the first element in LIST whose key is string equivalent to KEY.
 KEY is a string or a symbol.
  If a symbol, its name is used for comparison.
  If a unibyte string, the equivalent multibyte string is used.
 LIST is an alist whose elements are strings, symbols, or cons cells whose
  cars are strings or symbols.
 Non-nil CASE-FOLD means case is ignored for comparison.
 
The first matching alist element is returned.
 
In GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600)
 of 2008-03-26 on RELEASE
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'
 





                 reply	other threads:[~2008-04-04 23:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='000c01c896ab$f3c7c9f0$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=bug-gnu-emacs@gnu.org \
    /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.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).