unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Konstantin Kharlamov <hi-angel@yandex.ru>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH 2/3] lisp/progmodes/etags.el don't (forward-char) as it's overriden next line
Date: Tue, 19 Mar 2019 02:38:54 +0300	[thread overview]
Message-ID: <1552952334.23527.1@yandex.ru> (raw)
In-Reply-To: <1552950800.23527.0@yandex.ru>



В Вт, мар 19, 2019 at 2:13 ДП (AM), Konstantin Kharlamov 
<hi-angel@yandex.ru> написал:
> 
> 
> В Вт, мар 19, 2019 at 12:45 ДП (AM), Konstantin Kharlamov 
> <hi-angel@yandex.ru> написал:
>> 
>> 
>> В Пн, мар 18, 2019 at 11:16 ПП (PM), Eli Zaretskii 
>> \x7f<eliz@gnu.org> написал:
>>>>  Date: Mon, 18 Mar 2019 22:15:27 +0300
>>>>  From: Konstantin Kharlamov <hi-angel@yandex.ru>
>>>>  Cc: emacs-devel@gnu.org
>>>> 
>>>>  > Can you provide those additional details?
>>>> 
>>>>  I'm not sure what additional details you want.
>>> 
>>> OK, let me ask more specific questions:
>>> 
>>>   1. Why was the amount of whitespace in the tags table different 
>>> \x7f\x7ffrom
>>>      that in the source file?
>> 
>> It's a bug in anjuta-tags
>> 
>>>   2. What command(s) was/were used to produce the tags table?
>> 
>> anjuta-tags -e file.vala
>> 
>>>   3. Why are the issue and you talking about "trailing whitespace",
>>>      while the difference between Expected and Actual in the issue 
>>> is
>>>      in leading whitespace, not trailing whitespace?
>> 
>> Sorry for confusion here, I was imagining: given a string, 
>> whitespace \x7fmay "trail" on both sides of it. But I'm not a native 
>> speaker.
>> 
>>>>  Let's make it the other way around: please, provide any language
>>>>  example, where having the trailing space may be significant for
>>>>  unambigiously determining the tag.
>>> 
>>> etags.el doesn't understand any languages, that is the job of the
>>> program that produces the tags table.  etags.el just follows the 
>>> \x7f\x7frules
>>> for the format of tags in the tags table.  I don't know about 
>>> \x7f\x7ftrailing
>>> whitespace, but tags for HTML files surely include embedded
>>> whitespace, for example.
>>> 
>>> So once again, I suggest to focus on the particular problem you had,
>>> because I'd like to find a solution for that without making
>>> backward-incompatible changes in behavior of etags.el.
>> 
>> Okay, whatever. I get your position. Though I disagree, but we 
>> \x7fclearly have different priorities here: while I'm focusing on a 
>> Emacs \x7fuser, you're focusing on technical correctness. I doubt this 
>> \x7fdiscussion can move anywhere further, let's leave it at it.
>> 
>> Can my 1-st patch from the series be merged though?
> 
> Oh, wait, I noticed despite going to a tag I'm getting "Rerun etags" 
> message. Something is wrong, let me investigate.

Oh, I found my bug, that sucks, don't know how I missed that, I've used 
that code for a while. I need to return t from the cycle. Basically, I 
need either "break", or recursion. The first isn't supported in Lisp, 
and the tail-recursion optimization is not supported in Emacs. So 
there's actually no way to improve this code.

The patch can be dropped too.





  reply	other threads:[~2019-03-18 23:38 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-16  1:53 [PATCH 1/3] lisp/progmodes/etags.el clean up code by removing a temporary Konstantin Kharlamov
2019-03-16  1:53 ` [PATCH 2/3] lisp/progmodes/etags.el don't (forward-char) as it's overriden next line Konstantin Kharlamov
2019-03-16 12:43   ` Eli Zaretskii
2019-03-16 15:42     ` Konstantin Kharlamov
2019-03-16 16:00       ` Stefan Monnier
2019-03-16 16:26       ` Eli Zaretskii
2019-03-16 21:12         ` Konstantin Kharlamov
2019-03-16 21:47           ` Konstantin Kharlamov
2019-03-17  3:36           ` Eli Zaretskii
2019-03-17  3:41             ` Konstantin Kharlamov
2019-03-17 15:17               ` Eli Zaretskii
2019-03-17 15:52                 ` Stefan Monnier
2019-03-17 16:13                   ` Eli Zaretskii
2019-03-17 17:36                     ` Stefan Monnier
2019-03-17 21:14                       ` Eradicating selective-display == t (was: [PATCH 2/3] lisp/progmodes/etags.el don't (forward-char) as it's overriden next line) Stefan Monnier
2019-03-17 21:32                         ` Konstantin Kharlamov
2019-03-18  1:12                           ` Eradicating selective-display == t Stefan Monnier
2019-03-18  9:16                             ` Konstantin Kharlamov
2019-03-18 12:10                               ` Stefan Monnier
2019-03-17 19:06                 ` [PATCH 2/3] lisp/progmodes/etags.el don't (forward-char) as it's overriden next line Konstantin Kharlamov
2019-03-17 19:22                   ` Eli Zaretskii
2019-03-17 19:29                     ` Konstantin Kharlamov
2019-03-17 20:21                       ` Eli Zaretskii
2019-03-17 20:27                         ` Konstantin Kharlamov
2019-03-17 20:40                           ` Eli Zaretskii
2019-03-17 20:44                             ` Konstantin Kharlamov
2019-03-18  3:34                               ` Eli Zaretskii
2019-03-18  9:43                                 ` Konstantin Kharlamov
2019-03-18  9:57                                   ` Konstantin Kharlamov
2019-03-18 17:00                                   ` Eli Zaretskii
2019-03-18 19:15                                     ` Konstantin Kharlamov
2019-03-18 19:25                                       ` Konstantin Kharlamov
2019-03-18 20:16                                       ` Eli Zaretskii
2019-03-18 21:45                                         ` Konstantin Kharlamov
2019-03-18 23:13                                           ` Konstantin Kharlamov
2019-03-18 23:38                                             ` Konstantin Kharlamov [this message]
2019-03-19  1:46                                               ` Stefan Monnier
2019-03-19  6:47                                           ` Eli Zaretskii
2019-03-16  1:53 ` [PATCH 3/3] lisp/progmodes/etags.el improve match by string trimming Konstantin Kharlamov
2019-03-16  2:13   ` [PATCH v2] " Konstantin Kharlamov
2019-03-16 12:46     ` Eli Zaretskii
2019-03-16 15:38       ` Konstantin Kharlamov
2019-03-16 16:29         ` Eli Zaretskii
2019-03-17  2:38     ` [PATCH v3] " Konstantin Kharlamov
2019-03-19  6:55 ` [PATCH v2] lisp/progmodes/etags.el clean up code by removing a temporary Konstantin Kharlamov

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=1552952334.23527.1@yandex.ru \
    --to=hi-angel@yandex.ru \
    --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 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).