unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: Andreas Rohler <andreas.roehler@online.de>, emacs-devel@gnu.org
Subject: Re: symbol-at-point
Date: Sat, 28 Jul 2007 00:01:12 -0400	[thread overview]
Message-ID: <jwv7iolfafv.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <BNELLINCGFJLDJIKDGACIEAOCBAA.drew.adams@oracle.com> (Drew Adams's message of "Fri\, 27 Jul 2007 16\:22\:07 -0700")

> It's my hope that the restriction to point has itself held back the use of
> thingatpt functions, and that offering the "near" functions might help
> users get better default values.

I'm pretty sure that <foo>-near-point would not make authors provide default
values in more cases.  <foo>-at-point works well enough in most cases that
it's hard to believe an author would say "oh, no: I want <foo>-near-point or
nothing at all.  None of that <foo>-at-point crap!"

> (FWIW, the danger you see from a nil return value for `symbol-at-point' is
> exaggerated, I think, since a non-nil symbol would generally be what is
> sought. nil can always be interpreted as "no, there is no non-nil symbol at
> point". Yes, the name of the function does not make this clear.)

Problem is that "nil" is a perfectly normal identifier in most languages.


        Stefan

      reply	other threads:[~2007-07-28  4:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-26  9:07 symbol-at-point Andreas Röhler
2007-07-26 12:20 ` symbol-at-point Eli Zaretskii
2007-07-26 18:45   ` symbol-at-point Andreas Röhler
2007-07-26 19:06     ` symbol-at-point Eli Zaretskii
2007-07-26 15:37 ` symbol-at-point Tassilo Horn
2007-07-26 19:17 ` symbol-at-point Stefan Monnier
2007-07-26 20:31   ` symbol-at-point Drew Adams
2007-07-27  5:36     ` symbol-at-point Stefan Monnier
2007-07-27 16:24       ` symbol-at-point Drew Adams
2007-07-27 18:56         ` symbol-at-point Stefan Monnier
2007-07-27 23:22           ` symbol-at-point Drew Adams
2007-07-28  4:01             ` Stefan Monnier [this message]

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=jwv7iolfafv.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=andreas.roehler@online.de \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@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).