all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: cloos@jhcloos.com, emacs-devel@gnu.org
Subject: Re: Buffer names with R2L characters
Date: Tue, 21 Jun 2011 17:44:05 +0900	[thread overview]
Message-ID: <87vcvz8tgq.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <E1QYuRd-000656-2h@fencepost.gnu.org>

Eli Zaretskii writes:

 > However, I'm not sure what you are suggesting to rethink,
 > specifically.  What I said is that in foo<1>, the "<1>" part is not a
 > markup, it's just part of a string that is a buffer name.

Well, it's not markup in the sense of HTML (ie, display markup), but
it is markup in the sense of XML (semantic markup).  It's true that
the appended string is arbitrary, and that the relationship to the
"desired" buffer name is quite arbitrary (you could use alphabetic
characters instead of numerals, for example).  But it is used to
disambiguate what to the user would otherwise be identical names, and
the specific form clearly indicates that this is "metadata".  Buffers
on main.c and main.c~ clearly represent files with different names,
while main.c and main.c<2> by convention represent files with the same
name.  It is this convention, not the use of "<>", that makes the
uniquifer "<1>" into markup.

[Each run of plain text in a markup buffer should be treated as a
separate "stream" of text for bidi display purposes, or something like
that.]

 > And it will be, when Emacs is taught to reorder non-plain text.

OK.

 > I never said nor thought that we should reorder markup text as if
 > it were plain text -- that'd be terribly wrong.

 > But the necessary infrastructure is not yet in Emacs, and it won't be
 > there in time for Emacs 24.1.

OK, that's what I wanted to say myself, but it wasn't clear to me that
was your reasoning.

 > There's no major mode here to help us DTRT with a string that is part
 > of the mode line.

Sure there is, "mode line mode". ;-)  Mode lines have a syntax, and so
do buffer-names (when uniquifying).  The fact there there's no major
mode we use in buffers that's like that is not really relevant.

Of course if you paste a buffer-name into a buffer in some major mode,
you may run into problems.  But that's always the case when changing
syntax models on the same object.

 > > However, this is an implementation detail.  If life is easier if you
 > > consider every textual object (buffer or string) as a single stream to
 > > which the bidi algorithm should be applied, there's nothing wrong with
 > > that, either.
 > 
 > Well, that won't solve the problem of displaying markup languages and
 > program sources, so it cannot be that simple ;-)

That's exactly the kind of thing where (at least for the next year or
so) I'm just gonna have to trust you. :-)



  reply	other threads:[~2011-06-21  8:44 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-20 16:21 Buffer names with R2L characters Eli Zaretskii
2011-06-20 18:00 ` Stefan Monnier
2011-06-20 20:52   ` Eli Zaretskii
2011-06-20 20:13 ` James Cloos
2011-06-20 21:08   ` Eli Zaretskii
2011-06-21  4:26     ` Stephen J. Turnbull
2011-06-21  6:28       ` Eli Zaretskii
2011-06-21  8:44         ` Stephen J. Turnbull [this message]
2011-06-21 14:28           ` Eli Zaretskii
2011-06-21  4:33     ` Miles Bader
2011-06-21  6:30       ` Eli Zaretskii
2011-06-21  7:26       ` David Kastrup
2011-06-20 21:06 ` Kalle Olavi Niemitalo
2011-06-21  2:51   ` Eli Zaretskii
2011-06-21 16:52 ` Ehud Karni
2011-06-21 17:24   ` Eli Zaretskii
2011-06-21 17:59     ` Ehud Karni
2011-06-21 18:10       ` Eli Zaretskii
2011-06-22 22:27       ` Stefan Monnier
2011-06-23  9:16         ` Eli Zaretskii
2011-06-25 13:25           ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=87vcvz8tgq.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=cloos@jhcloos.com \
    --cc=eliz@gnu.org \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.