unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#25131: thwarted from copying what one sees in Info
@ 2016-12-07  7:30 積丹尼 Dan Jacobson
  2016-12-07 11:29 ` Marcin Borkowski
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: 積丹尼 Dan Jacobson @ 2016-12-07  7:30 UTC (permalink / raw)
  To: 25131

Go to e.g.,
(info "(coreutils) Sorting the output")

See that line at the top,
... > ... > ... >
Looks good, right? Let's try to copy it with ^K.
As much as you try, you will only get
File: coreutils.info,  Node: Sorting the output...

One needs to probably use emacs -nw in order to copy it.





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

* bug#25131: thwarted from copying what one sees in Info
  2016-12-07  7:30 積丹尼 Dan Jacobson
@ 2016-12-07 11:29 ` Marcin Borkowski
  2016-12-07 16:17   ` Eli Zaretskii
  2016-12-07 11:35 ` 積丹尼 Dan Jacobson
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 12+ messages in thread
From: Marcin Borkowski @ 2016-12-07 11:29 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 25131


On 2016-12-07, at 08:30, 積丹尼 Dan Jacobson <jidanni@jidanni.org> wrote:

> Go to e.g.,
> (info "(coreutils) Sorting the output")
>
> See that line at the top,
> ... > ... > ... >
> Looks good, right? Let's try to copy it with ^K.
> As much as you try, you will only get
> File: coreutils.info,  Node: Sorting the output...
>
> One needs to probably use emacs -nw in order to copy it.

I guess it's an overlay, so it is like that by design.
(Also in emacs -nw.)

Why is this a problem?

Best,

-- 
Marcin Borkowski





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

* bug#25131: thwarted from copying what one sees in Info
  2016-12-07  7:30 積丹尼 Dan Jacobson
  2016-12-07 11:29 ` Marcin Borkowski
@ 2016-12-07 11:35 ` 積丹尼 Dan Jacobson
  2016-12-07 16:32 ` 積丹尼 Dan Jacobson
  2016-12-07 17:11 ` 積丹尼 Dan Jacobson
  3 siblings, 0 replies; 12+ messages in thread
From: 積丹尼 Dan Jacobson @ 2016-12-07 11:35 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: 25131

>>>>> "MB" == Marcin Borkowski <mbork@mbork.pl> writes:

MB> Why is this a problem?

Because it makes me feel like a little kid. It is sitting on my screen
but I am not allowed to copy it.

Or it makes me feel like I didn't buy the software license to copy it.





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

* bug#25131: thwarted from copying what one sees in Info
  2016-12-07 11:29 ` Marcin Borkowski
@ 2016-12-07 16:17   ` Eli Zaretskii
  2016-12-07 16:25     ` Andreas Schwab
       [not found]     ` <<mvmwpfbhfjw.fsf@hawking.suse.de>
  0 siblings, 2 replies; 12+ messages in thread
From: Eli Zaretskii @ 2016-12-07 16:17 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: jidanni, 25131

> From: Marcin Borkowski <mbork@mbork.pl>
> Date: Wed, 07 Dec 2016 12:29:36 +0100
> Cc: 25131@debbugs.gnu.org
> 
> > Go to e.g.,
> > (info "(coreutils) Sorting the output")
> >
> > See that line at the top,
> > ... > ... > ... >
> > Looks good, right? Let's try to copy it with ^K.
> > As much as you try, you will only get
> > File: coreutils.info,  Node: Sorting the output...
> >
> > One needs to probably use emacs -nw in order to copy it.
> 
> I guess it's an overlay, so it is like that by design.

Indeed.

We could perhaps provide a command to copy that string, patches
welcome.





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

* bug#25131: thwarted from copying what one sees in Info
  2016-12-07 16:17   ` Eli Zaretskii
@ 2016-12-07 16:25     ` Andreas Schwab
  2016-12-07 16:59       ` Eli Zaretskii
       [not found]     ` <<mvmwpfbhfjw.fsf@hawking.suse.de>
  1 sibling, 1 reply; 12+ messages in thread
From: Andreas Schwab @ 2016-12-07 16:25 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: jidanni, Marcin Borkowski, 25131

On Dez 07 2016, Eli Zaretskii <eliz@gnu.org> wrote:

>> From: Marcin Borkowski <mbork@mbork.pl>
>> Date: Wed, 07 Dec 2016 12:29:36 +0100
>> Cc: 25131@debbugs.gnu.org
>> 
>> > Go to e.g.,
>> > (info "(coreutils) Sorting the output")
>> >
>> > See that line at the top,
>> > ... > ... > ... >
>> > Looks good, right? Let's try to copy it with ^K.
>> > As much as you try, you will only get
>> > File: coreutils.info,  Node: Sorting the output...
>> >
>> > One needs to probably use emacs -nw in order to copy it.
>> 
>> I guess it's an overlay, so it is like that by design.
>
> Indeed.
>
> We could perhaps provide a command to copy that string, patches
> welcome.

The string is available from the C-x = buffer.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





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

* bug#25131: thwarted from copying what one sees in Info
  2016-12-07  7:30 積丹尼 Dan Jacobson
  2016-12-07 11:29 ` Marcin Borkowski
  2016-12-07 11:35 ` 積丹尼 Dan Jacobson
@ 2016-12-07 16:32 ` 積丹尼 Dan Jacobson
  2016-12-07 17:02   ` Drew Adams
  2016-12-07 17:11 ` 積丹尼 Dan Jacobson
  3 siblings, 1 reply; 12+ messages in thread
From: 積丹尼 Dan Jacobson @ 2016-12-07 16:32 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Marcin Borkowski, 25131

>>>>> "AS" == Andreas Schwab <schwab@suse.de> writes:

AS> The string is available from the C-x = buffer.

One apparently must put the cursor on the first (the only possible)
character, hit C-x =, and then dig it out of the *Messages* buffer,
encrusted in:

Char: F (70, #o106, #x46, part of display "File..."->"(coreutils)Top > Directory listing > ls invocation > Sorting the output
") point=232756 of 849416 (27%) <232756-235061> column=0

Not very user friendly.





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

* bug#25131: thwarted from copying what one sees in Info
  2016-12-07 16:25     ` Andreas Schwab
@ 2016-12-07 16:59       ` Eli Zaretskii
  0 siblings, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2016-12-07 16:59 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: jidanni, mbork, 25131

> From: Andreas Schwab <schwab@suse.de>
> Cc: Marcin Borkowski <mbork@mbork.pl>,  jidanni@jidanni.org,  25131@debbugs.gnu.org
> Date: Wed, 07 Dec 2016 17:25:39 +0100
> 
> > We could perhaps provide a command to copy that string, patches
> > welcome.
> 
> The string is available from the C-x = buffer.

Right.  I meant something similar to Info-copy-current-node-name.





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

* bug#25131: thwarted from copying what one sees in Info
  2016-12-07 16:32 ` 積丹尼 Dan Jacobson
@ 2016-12-07 17:02   ` Drew Adams
  2016-12-07 19:37     ` Eli Zaretskii
  0 siblings, 1 reply; 12+ messages in thread
From: Drew Adams @ 2016-12-07 17:02 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson, Andreas Schwab
  Cc: Marcin Borkowski, 25131

> > The string is available from the C-x = buffer.
> 
> One apparently must put the cursor on the first (the only possible)
> character, hit C-x =, and then dig it out of the *Messages* buffer,
> encrusted in:
> 
> Char: F (70, #o106, #x46, part of display "File..."->"(coreutils)Top >
> Directory listing > ls invocation > Sorting the output
> ") point=232756 of 849416 (27%) <232756-235061> column=0
> 
> Not very user friendly.

Indeed.  You can at least use `C-u C-x =', and then get it from the
*Help* buffer that is shown.

But this is a workaround, and it is unlikely that someone looking
to copy that text will think of it.

On the other hand, I disagree that we should add a special command
just for copying Info breadcrumbs.  A _general_ solution to the need
to copy displayed stuff (including overlays) should instead be sought.





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

* bug#25131: thwarted from copying what one sees in Info
  2016-12-07  7:30 積丹尼 Dan Jacobson
                   ` (2 preceding siblings ...)
  2016-12-07 16:32 ` 積丹尼 Dan Jacobson
@ 2016-12-07 17:11 ` 積丹尼 Dan Jacobson
  3 siblings, 0 replies; 12+ messages in thread
From: 積丹尼 Dan Jacobson @ 2016-12-07 17:11 UTC (permalink / raw)
  To: Drew Adams; +Cc: Andreas Schwab, Marcin Borkowski, 25131

>>>>> "DA" == Drew Adams <drew.adams@oracle.com> writes:

DA> On the other hand, I disagree that we should add a special command
DA> just for copying Info breadcrumbs.  A _general_ solution to the need
DA> to copy displayed stuff (including overlays) should instead be sought.

Indeed, when I want to copy any of that \212\311\212\112\121 binary
stuff as is, I have to start again with emacs -nw!





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

* bug#25131: thwarted from copying what one sees in Info
       [not found]       ` <<83lgvrisjv.fsf@gnu.org>
@ 2016-12-07 17:46         ` Drew Adams
  0 siblings, 0 replies; 12+ messages in thread
From: Drew Adams @ 2016-12-07 17:46 UTC (permalink / raw)
  To: Eli Zaretskii, Andreas Schwab; +Cc: jidanni, mbork, 25131

> > > We could perhaps provide a command to copy that string, patches
> > > welcome.
> >
> > The string is available from the C-x = buffer.
> 
> Right.  I meant something similar to Info-copy-current-node-name.

I forgot about that command.  Maybe let `C-u' just extend it
to copy the text of such breadcrumbs (whether or not the
breadcrumbs are displayed).

Kind of like a relative file name vs an absolute file name.





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

* bug#25131: thwarted from copying what one sees in Info
  2016-12-07 17:02   ` Drew Adams
@ 2016-12-07 19:37     ` Eli Zaretskii
  0 siblings, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2016-12-07 19:37 UTC (permalink / raw)
  To: Drew Adams; +Cc: schwab, jidanni, mbork, 25131

> Date: Wed, 7 Dec 2016 09:02:35 -0800 (PST)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: Marcin Borkowski <mbork@mbork.pl>, 25131@debbugs.gnu.org
> 
> On the other hand, I disagree that we should add a special command
> just for copying Info breadcrumbs.  A _general_ solution to the need
> to copy displayed stuff (including overlays) should instead be sought.

What would be the UI, assuming we don't want the user to have to find
out on her own that there's an overlay or a display property at some
point?





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

* bug#25131: thwarted from copying what one sees in Info
       [not found]     ` <<83k2bbil94.fsf@gnu.org>
@ 2016-12-07 23:21       ` Drew Adams
  0 siblings, 0 replies; 12+ messages in thread
From: Drew Adams @ 2016-12-07 23:21 UTC (permalink / raw)
  To: Eli Zaretskii, Drew Adams; +Cc: schwab, jidanni, mbork, 25131

> > On the other hand, I disagree that we should add a special command
> > just for copying Info breadcrumbs.  A _general_ solution to the need
> > to copy displayed stuff (including overlays) should instead be sought.
> 
> What would be the UI, assuming we don't want the user to have to find
> out on her own that there's an overlay or a display property at some
> point?

I don't know.  We can think about that possibility.

But for this bug, I think just extending the existing command that
gives you the node name, by letting a prefix arg give it to you as
a full path (breadcrumbs - in whatever textual form), would be good.

Wrt knowing whether an overlay etc. present (e.g., whether some
displayed text is copiable from the buffer or is a display artifact):
That's a general UI problem.  Perhaps when a user tries to perform
some actions (e.g. copy text) a message should tell her that the
text is just for display etc.





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

end of thread, other threads:[~2016-12-07 23:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <<87r35kmc1v.fsf@jidanni.org>
     [not found] ` <<87r35jr97l.fsf@jidanni.org>
     [not found]   ` <<3529e973-7e42-49b9-9bf0-85cba12a91af@default>
     [not found]     ` <<83k2bbil94.fsf@gnu.org>
2016-12-07 23:21       ` bug#25131: thwarted from copying what one sees in Info Drew Adams
2016-12-07  7:30 積丹尼 Dan Jacobson
2016-12-07 11:29 ` Marcin Borkowski
2016-12-07 16:17   ` Eli Zaretskii
2016-12-07 16:25     ` Andreas Schwab
2016-12-07 16:59       ` Eli Zaretskii
     [not found]     ` <<mvmwpfbhfjw.fsf@hawking.suse.de>
     [not found]       ` <<83lgvrisjv.fsf@gnu.org>
2016-12-07 17:46         ` Drew Adams
2016-12-07 11:35 ` 積丹尼 Dan Jacobson
2016-12-07 16:32 ` 積丹尼 Dan Jacobson
2016-12-07 17:02   ` Drew Adams
2016-12-07 19:37     ` Eli Zaretskii
2016-12-07 17:11 ` 積丹尼 Dan Jacobson

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