unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#21939: 25.0.50; variable-at-point fails due to curly quotes
@ 2015-11-17 10:51 Artur Malabarba
  2015-11-17 10:51 ` Juanma Barranquero
  2015-11-17 11:15 ` Stephen Leake
  0 siblings, 2 replies; 5+ messages in thread
From: Artur Malabarba @ 2015-11-17 10:51 UTC (permalink / raw)
  To: 21939


1. Type ‘unbound-var’ in a docstring.
2. Place point on the ‘v’.
3. Type M-: (variable-at-point t).

You get 0.

Now do the same thing writing `unbound-var' instead. The return value
will be the correct symbol.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#21939: 25.0.50; variable-at-point fails due to curly quotes
  2015-11-17 10:51 bug#21939: 25.0.50; variable-at-point fails due to curly quotes Artur Malabarba
@ 2015-11-17 10:51 ` Juanma Barranquero
  2015-11-17 11:15 ` Stephen Leake
  1 sibling, 0 replies; 5+ messages in thread
From: Juanma Barranquero @ 2015-11-17 10:51 UTC (permalink / raw)
  To: Artur Malabarba; +Cc: 21939

[-- Attachment #1: Type: text/plain, Size: 309 bytes --]

On Tue, Nov 17, 2015 at 11:51 AM, Artur Malabarba <bruce.connor.am@gmail.com>
wrote:

> 1. Type ‘unbound-var’ in a docstring.
> 2. Place point on the ‘v’.
> 3. Type M-: (variable-at-point t).

Or, more simply,

(read "unbound-var'") => unbound-var
(read "unbound-var’") => unbound-var’

[-- Attachment #2: Type: text/html, Size: 516 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#21939: 25.0.50; variable-at-point fails due to curly quotes
  2015-11-17 10:51 bug#21939: 25.0.50; variable-at-point fails due to curly quotes Artur Malabarba
  2015-11-17 10:51 ` Juanma Barranquero
@ 2015-11-17 11:15 ` Stephen Leake
  2015-11-17 11:51   ` Artur Malabarba
  1 sibling, 1 reply; 5+ messages in thread
From: Stephen Leake @ 2015-11-17 11:15 UTC (permalink / raw)
  To: Artur Malabarba; +Cc: 21939

Artur Malabarba <bruce.connor.am@gmail.com> writes:

> 1. Type ‘unbound-var’ in a docstring.
> 2. Place point on the ‘v’.
> 3. Type M-: (variable-at-point t).
>
> You get 0.
>
> Now do the same thing writing `unbound-var' instead. The return value
> will be the correct symbol.

Since the markup for variables in a docstring is `', not curly quotes, I
don't think this matters.

We were playing with curly quotes in docstrings, but that got rejected
(as far as I recall).

-- 
-- Stephe





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#21939: 25.0.50; variable-at-point fails due to curly quotes
  2015-11-17 11:15 ` Stephen Leake
@ 2015-11-17 11:51   ` Artur Malabarba
  2021-08-15 13:12     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Artur Malabarba @ 2015-11-17 11:51 UTC (permalink / raw)
  To: Stephen Leake; +Cc: 21939

> Since the markup for variables in a docstring is `', not curly quotes, I
> don't think this matters.
>
> We were playing with curly quotes in docstrings, but that got rejected
> (as far as I recall).

I think it still matters because Help buffers still use curly quotes,
and one might need `variable-at-point' to work inside help buffers.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#21939: 25.0.50; variable-at-point fails due to curly quotes
  2015-11-17 11:51   ` Artur Malabarba
@ 2021-08-15 13:12     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-15 13:12 UTC (permalink / raw)
  To: Artur Malabarba; +Cc: 21939, Stephen Leake

Artur Malabarba <bruce.connor.am@gmail.com> writes:

>> We were playing with curly quotes in docstrings, but that got rejected
>> (as far as I recall).
>
> I think it still matters because Help buffers still use curly quotes,
> and one might need `variable-at-point' to work inside help buffers.

(I'm going through old bug reports that unfortunately weren't
resolved at the time.)

`variable-at-point' now works in *Help* recognising ‘’ quoting (it was
fixed a few years back).

As for the other request -- I don't think adding ‘’ in Lisp buffers
would be helpful -- we don't use that syntax in doc strings there, so
I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-08-15 13:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-17 10:51 bug#21939: 25.0.50; variable-at-point fails due to curly quotes Artur Malabarba
2015-11-17 10:51 ` Juanma Barranquero
2015-11-17 11:15 ` Stephen Leake
2015-11-17 11:51   ` Artur Malabarba
2021-08-15 13:12     ` Lars Ingebrigtsen

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).