unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* When was a change installed?
       [not found] ` <mvmpp2mgyz0.fsf@hawking.suse.de>
@ 2015-08-18  3:42   ` Richard Stallman
  2015-08-18 14:10     ` Alan Mackenzie
                       ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Richard Stallman @ 2015-08-18  3:42 UTC (permalink / raw)
  To: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

When was the change to make lax whitespace mode the default
installed?

I can't find anything in the lisp/ChangeLog* files, which run through the start
of April.

Was it installed after that?  If so, how can I find out when?  There
is no ChangeLog file to search, now.

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.




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

* Re: When was a change installed?
  2015-08-18  3:42   ` When was a change installed? Richard Stallman
@ 2015-08-18 14:10     ` Alan Mackenzie
  2015-08-19  6:38       ` Steinar Bang
  2015-08-18 14:18     ` Andreas Schwab
  2015-08-18 14:28     ` Tassilo Horn
  2 siblings, 1 reply; 18+ messages in thread
From: Alan Mackenzie @ 2015-08-18 14:10 UTC (permalink / raw)
  To: Richard Stallman; +Cc: emacs-devel

Hello, Richard.

On Mon, Aug 17, 2015 at 11:42:28PM -0400, Richard Stallman wrote:
> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]

> When was the change to make lax whitespace mode the default
> installed?

It might well have been this change:

commit 63dd1c6fa45357d312e1d3076e15adacf5ed6291
Author: Juri Linkov <juri@jurta.org>
Date:   Sun Sep 2 12:31:45 2012 +0300

    Toggle whitespace matching mode with M-s SPC.
    http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00008.html


> I can't find anything in the lisp/ChangeLog* files, which run through the start
> of April.

We have given up updating the ChangeLogs with each change, on the
grounds that the information is in the git change log anyway.  I think
the idea is to generate the full ChangeLogs as part of the release
process.

> Was it installed after that?  If so, how can I find out when?  There
> is no ChangeLog file to search, now.

From anywhere inside a local copy of the git repository, type "git log"
(no arguments) on a command line.  This should dump the entire log into
`less'.  You can then search within that (as I have just done).

There will certainly also be a way of getting the log from inside Emacs.

> -- 
> Dr Richard Stallman
> President, Free Software Foundation (gnu.org, fsf.org)
> Internet Hall-of-Famer (internethalloffame.org)
> Skype: No way! See stallman.org/skype.html.

-- 
Alan Mackenzie (Nuremberg, Germany).



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

* Re: When was a change installed?
  2015-08-18  3:42   ` When was a change installed? Richard Stallman
  2015-08-18 14:10     ` Alan Mackenzie
@ 2015-08-18 14:18     ` Andreas Schwab
  2015-08-19  1:19       ` Richard Stallman
  2015-08-19  1:19       ` Richard Stallman
  2015-08-18 14:28     ` Tassilo Horn
  2 siblings, 2 replies; 18+ messages in thread
From: Andreas Schwab @ 2015-08-18 14:18 UTC (permalink / raw)
  To: Richard Stallman; +Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

> When was the change to make lax whitespace mode the default
> installed?

In commit emacs-24.2-2394-g63dd1c6.

> I can't find anything in the lisp/ChangeLog* files, which run through the start
> of April.
>
> Was it installed after that?

In Sep 2012.

> If so, how can I find out when?  There
> is no ChangeLog file to search, now.

$ git grep lax-whitespace '*/ChangeLog*'

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] 18+ messages in thread

* Re: When was a change installed?
  2015-08-18  3:42   ` When was a change installed? Richard Stallman
  2015-08-18 14:10     ` Alan Mackenzie
  2015-08-18 14:18     ` Andreas Schwab
@ 2015-08-18 14:28     ` Tassilo Horn
  2015-08-19  1:24       ` Richard Stallman
  2 siblings, 1 reply; 18+ messages in thread
From: Tassilo Horn @ 2015-08-18 14:28 UTC (permalink / raw)
  To: Richard Stallman; +Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
> When was the change to make lax whitespace mode the default
> installed?

It has been introduced in commit 63dd1c6f by Juri Linkov on 2012-09-02.

> I can't find anything in the lisp/ChangeLog* files, which run through
> the start of April.
>
> Was it installed after that?  If so, how can I find out when?  There
> is no ChangeLog file to search, now.

One way is to invoke `vc-annotate' in the buffer containing its
definition.  That shows you at least the most recent commit changing its
value.

Another way was to mark its definition and invoke `vc-region-history'
which shows you all commits applied to that region.

Both ways require that you run emacs from your git checkout of course.

A third way is to use git directly in your emacs working directory:

  $ git log --grep=isearch-lax-whitespace

which shows all commits where the commit message (which has
traditionally ChangeLog format in emacs) contains the string
isearch-lax-whitespace.

Bye,
Tassilo



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

* Re: When was a change installed?
  2015-08-18 14:18     ` Andreas Schwab
@ 2015-08-19  1:19       ` Richard Stallman
  2015-08-19  4:28         ` David Kastrup
  2015-08-19  1:19       ` Richard Stallman
  1 sibling, 1 reply; 18+ messages in thread
From: Richard Stallman @ 2015-08-19  1:19 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > > I can't find anything in the lisp/ChangeLog* files, which run through the start
  > > of April.
  > >
  > > Was it installed after that?

  > In Sep 2012.

That is really bizarre.  I have built the latest Emacs sources many
times since 2012, and generally used those builds, but isearch never
treated space and NL as equivalent until now.

What could have caused this?

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.




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

* Re: When was a change installed?
  2015-08-18 14:18     ` Andreas Schwab
  2015-08-19  1:19       ` Richard Stallman
@ 2015-08-19  1:19       ` Richard Stallman
  2015-08-19  7:52         ` Andreas Schwab
  2015-08-19  9:22         ` Bastien
  1 sibling, 2 replies; 18+ messages in thread
From: Richard Stallman @ 2015-08-19  1:19 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > > If so, how can I find out when?  There
  > > is no ChangeLog file to search, now.

  > $ git grep lax-whitespace '*/ChangeLog*'

It gives me this output:

fatal: ambiguous argument '*/ChangeLog*': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.




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

* Re: When was a change installed?
  2015-08-18 14:28     ` Tassilo Horn
@ 2015-08-19  1:24       ` Richard Stallman
  0 siblings, 0 replies; 18+ messages in thread
From: Richard Stallman @ 2015-08-19  1:24 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

Thanks for those suggestions.

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.




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

* Re: When was a change installed?
  2015-08-19  1:19       ` Richard Stallman
@ 2015-08-19  4:28         ` David Kastrup
  2015-08-19 18:18           ` Richard Stallman
  0 siblings, 1 reply; 18+ messages in thread
From: David Kastrup @ 2015-08-19  4:28 UTC (permalink / raw)
  To: Richard Stallman; +Cc: Andreas Schwab, emacs-devel

Richard Stallman <rms@gnu.org> writes:

> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
>   > > I can't find anything in the lisp/ChangeLog* files, which run
>   > > through the start
>   > > of April.
>   > >
>   > > Was it installed after that?
>
>   > In Sep 2012.
>
> That is really bizarre.  I have built the latest Emacs sources many
> times since 2012, and generally used those builds, but isearch never
> treated space and NL as equivalent until now.
>
> What could have caused this?

commit a5bdb872edb9f031fe041faf9a8c0be432e5f64c
Author: Artur Malabarba <bruce.connor.am@gmail.com>
Date:   Sun Aug 9 09:56:33 2015 +0100

    * isearch.el (isearch-search-fun-default): (Bug#21164)
    
    Respect `isearch-lax-whitespace' when searching through
    `isearch-word'.

or something else out of

git log --grep isearch

-- 
David Kastrup



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

* Re: When was a change installed?
  2015-08-18 14:10     ` Alan Mackenzie
@ 2015-08-19  6:38       ` Steinar Bang
  2015-08-19 18:16         ` Richard Stallman
  0 siblings, 1 reply; 18+ messages in thread
From: Steinar Bang @ 2015-08-19  6:38 UTC (permalink / raw)
  To: emacs-devel

>>>>> Alan Mackenzie <acm@muc.de>:

> There will certainly also be a way of getting the log from inside Emacs.

For a particular file, just do `C-x v l' to get the history of that
file.

Also, as has been suggested: do `C-x v g' do do annotate, and then do
`l' on a particular line in the annotated file to see the log message
for the last change to that line, or `d' to see the diff of that change.

From vc-dir, I think the command was `l'.

From magit the command is `l l'.

From the list of changes in either, you can quickly get the diff and the
log message, and the list of files changed with that file.




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

* Re: When was a change installed?
  2015-08-19  1:19       ` Richard Stallman
@ 2015-08-19  7:52         ` Andreas Schwab
  2015-08-19 18:18           ` Richard Stallman
  2015-08-19  9:22         ` Bastien
  1 sibling, 1 reply; 18+ messages in thread
From: Andreas Schwab @ 2015-08-19  7:52 UTC (permalink / raw)
  To: Richard Stallman; +Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

> fatal: ambiguous argument '*/ChangeLog*': unknown revision or path not in the working tree.

On which branch are you doing that?  There are 55 matches in master.

$ git ls-files origin/master '*/ChangeLog*' | wc -l
55

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] 18+ messages in thread

* Re: When was a change installed?
  2015-08-19  1:19       ` Richard Stallman
  2015-08-19  7:52         ` Andreas Schwab
@ 2015-08-19  9:22         ` Bastien
  2015-08-19  9:25           ` Andreas Schwab
  1 sibling, 1 reply; 18+ messages in thread
From: Bastien @ 2015-08-19  9:22 UTC (permalink / raw)
  To: Richard Stallman; +Cc: Andreas Schwab, emacs-devel

Richard Stallman <rms@gnu.org> writes:

>   > $ git grep lax-whitespace '*/ChangeLog*'
>
> It gives me this output:
>
> fatal: ambiguous argument '*/ChangeLog*': unknown revision or path not in the working tree.
> Use '--' to separate paths from revisions, like this:
> 'git <command> [<revision>...] -- [<file>...]'

$ git grep lax-whitespace */ChangeLog*

without the single quotes works for me.




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

* Re: When was a change installed?
  2015-08-19  9:22         ` Bastien
@ 2015-08-19  9:25           ` Andreas Schwab
  2015-08-19  9:57             ` Stephen Berman
  0 siblings, 1 reply; 18+ messages in thread
From: Andreas Schwab @ 2015-08-19  9:25 UTC (permalink / raw)
  To: Bastien; +Cc: Richard Stallman, emacs-devel

Bastien <bzg@gnu.org> writes:

> $ git grep lax-whitespace */ChangeLog*
>
> without the single quotes works for me.

That's not the same, as the glob is expanded by the shell before git can
see it.

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] 18+ messages in thread

* Re: When was a change installed?
  2015-08-19  9:25           ` Andreas Schwab
@ 2015-08-19  9:57             ` Stephen Berman
  2015-08-19 10:16               ` Damien Wyart
  0 siblings, 1 reply; 18+ messages in thread
From: Stephen Berman @ 2015-08-19  9:57 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Bastien, Richard Stallman, emacs-devel

On Wed, 19 Aug 2015 11:25:10 +0200 Andreas Schwab <schwab@suse.de> wrote:

> Bastien <bzg@gnu.org> writes:
>
>> $ git grep lax-whitespace */ChangeLog*
>>
>> without the single quotes works for me.
>
> That's not the same, as the glob is expanded by the shell before git can
> see it.

The error message by git, which I also get on invoking
  git grep lax-whitespace '*/ChangeLog.*'
says "Use '--' to separate paths from revisions, like this: 'git
<command> [<revision>...]  -- [<file>...]'", and indeed, when I run
  git grep lax-whitespace -- '*/ChangeLog.*'
it outputs 26 matching lines.  Invoking
  git grep lax-whitespace */ChangeLog*
outputs only 25 of thos lines, all from lisp/; missing is
  "doc/emacs/ChangeLog.1:	(Replace): Document replace-lax-whitespace."
which the other output contains.

So you're right there's a difference, but apparently the '--' is necessary.

Steve Berman



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

* Re: When was a change installed?
  2015-08-19  9:57             ` Stephen Berman
@ 2015-08-19 10:16               ` Damien Wyart
  0 siblings, 0 replies; 18+ messages in thread
From: Damien Wyart @ 2015-08-19 10:16 UTC (permalink / raw)
  To: Stephen Berman; +Cc: Bastien, Andreas Schwab, Richard Stallman, emacs-devel

> > > $ git grep lax-whitespace */ChangeLog*
> > > without the single quotes works for me.

> > That's not the same, as the glob is expanded by the shell before git
> > can see it.

* Stephen Berman <stephen.berman@gmx.net> [2015-08-19 11:57]:
> The error message by git, which I also get on invoking
>   git grep lax-whitespace '*/ChangeLog.*'
> says "Use '--' to separate paths from revisions, like this: 'git
> <command> [<revision>...]  -- [<file>...]'", and indeed, when I run
>   git grep lax-whitespace -- '*/ChangeLog.*'
> it outputs 26 matching lines.  Invoking
>   git grep lax-whitespace */ChangeLog*
> outputs only 25 of thos lines, all from lisp/; missing is
>   "doc/emacs/ChangeLog.1:	(Replace): Document replace-lax-whitespace."
> which the other output contains.

> So you're right there's a difference, but apparently the '--' is necessary.

I guess Andreas is using git 2.5.0, where '--' is not necessary anymore
in this case.

Here is the corresponding item from the release notes:

,----
|  * A heuristic we use to catch mistyped paths on the command line
|   "git <cmd> <revs> <pathspec>" is to make sure that all the non-rev
|    parameters in the later part of the command line are names of the
|    files in the working tree, but that means "git grep $str -- \*.c"
|    must always be disambiguated with "--", because nobody sane will
|    create a file whose name literally is asterisk-dot-see.  Loosen the
|    heuristic to declare that with a wildcard string the user likely
|    meant to give us a pathspec.
`----
                      
-- 
Damien



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

* Re: When was a change installed?
  2015-08-19  6:38       ` Steinar Bang
@ 2015-08-19 18:16         ` Richard Stallman
  0 siblings, 0 replies; 18+ messages in thread
From: Richard Stallman @ 2015-08-19 18:16 UTC (permalink / raw)
  To: Steinar Bang; +Cc: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

Thanks.  I never used C-x v g before.

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.




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

* Re: When was a change installed?
  2015-08-19  7:52         ` Andreas Schwab
@ 2015-08-19 18:18           ` Richard Stallman
  0 siblings, 0 replies; 18+ messages in thread
From: Richard Stallman @ 2015-08-19 18:18 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > > fatal: ambiguous argument '*/ChangeLog*': unknown revision or path not in the working tree.

  > On which branch are you doing that?  There are 55 matches in master.

It fails in master.  Adding '--', as was suggested by Stephen Berman,
made it work.

However, git grep only shows me lines _in the old ChangeLog.* files_,
which I had already searched in Emacs directly.  They describe changes
through 2015-04-06.

I was looking for a way to search changes installed since then.

It appears that git log does the job.

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.




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

* Re: When was a change installed?
  2015-08-19  4:28         ` David Kastrup
@ 2015-08-19 18:18           ` Richard Stallman
  2015-08-20  2:37             ` Stefan Monnier
  0 siblings, 1 reply; 18+ messages in thread
From: Richard Stallman @ 2015-08-19 18:18 UTC (permalink / raw)
  To: David Kastrup; +Cc: schwab, emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

I finally succeeded in running an Emacs from July 2014.  (Work was
required to make it run.)  I was flabbergasted to find that it DID do
the lax whitespace search.

Has the feature been active for 3 years and I never noticed until now?
It looks that way.

I tried various cases and learned something that might explain
why I didn't notice it.

It seems that the feature applies only to SPC.  Entering C-j matches
only newline.  That seems to explain why my searches for C-j C-j
always worked as intended.

Given that in lax matching SPC matches any sequence of whitespace,
there is no sense in a lax SPC preceded or followed by another
whitespace character.

Thus I propose that SPC adjacent to some other whitespace character
should match only a single space.  In particular C-j SPC should match
only newline space, and SPC SPC should match only space space.

What do people think of that?

Meanwhile, how about colorizing a space in the echo area when it is
being searched for laxly?  That should help users understand what is
happening.



-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.




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

* Re: When was a change installed?
  2015-08-19 18:18           ` Richard Stallman
@ 2015-08-20  2:37             ` Stefan Monnier
  0 siblings, 0 replies; 18+ messages in thread
From: Stefan Monnier @ 2015-08-20  2:37 UTC (permalink / raw)
  To: Richard Stallman; +Cc: schwab, David Kastrup, emacs-devel

> Thus I propose that SPC adjacent to some other whitespace character
> should match only a single space.  In particular C-j SPC should match
> only newline space, and SPC SPC should match only space space.

> What do people think of that?

Sounds good to me,


        Stefan "who doesn't much like lax whitespace search"



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

end of thread, other threads:[~2015-08-20  2:37 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1ZRCad-0000hK-Ta@fencepost.gnu.org>
     [not found] ` <mvmpp2mgyz0.fsf@hawking.suse.de>
2015-08-18  3:42   ` When was a change installed? Richard Stallman
2015-08-18 14:10     ` Alan Mackenzie
2015-08-19  6:38       ` Steinar Bang
2015-08-19 18:16         ` Richard Stallman
2015-08-18 14:18     ` Andreas Schwab
2015-08-19  1:19       ` Richard Stallman
2015-08-19  4:28         ` David Kastrup
2015-08-19 18:18           ` Richard Stallman
2015-08-20  2:37             ` Stefan Monnier
2015-08-19  1:19       ` Richard Stallman
2015-08-19  7:52         ` Andreas Schwab
2015-08-19 18:18           ` Richard Stallman
2015-08-19  9:22         ` Bastien
2015-08-19  9:25           ` Andreas Schwab
2015-08-19  9:57             ` Stephen Berman
2015-08-19 10:16               ` Damien Wyart
2015-08-18 14:28     ` Tassilo Horn
2015-08-19  1:24       ` Richard Stallman

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