Re: Some highlights: Emacs 21.4 and 25.3

2018-10-03 Thread Roderick



On Tue, 2 Oct 2018, John M wrote:


This may be a bit off-topic but the feature responsible for this is
'electric-indent-mode', which is enabled by default in 24.4 or later.


It is not enough to prevent indentation in Tcl mode.

(setq tcl-mode-map (make-sparse-keymap))

is not anymore documented and prevents not only indentation.

I would stop using emacs, but after so much years using it ...

Rodrigo




Re: Some highlights: Emacs 21.4 and 25.3

2018-10-02 Thread Tomasz Rola
On Tue, Oct 02, 2018 at 04:40:53PM -0400, John M wrote:
> Personally I use Emacs 25.x on OpenBSD 6.3, with the caveat being that
> I rely on a number of customizations to normalize behavior to be what I
> expect. I would suggest using whichever version annoys you the least.

Yeah. After learning that 25 has Webkit support and 26 has threads, I
have made resolution to manually compile Emacs for myself. Since I am
yet to install OpenBSD, I have no idea what are defaults there and
whether I would like them, but it looks like I have to check for such
things nowadays. Which makes inclusion of 21 even more understandable
and plausible safe choice.

> >> And I am tired that in some modes I cannot get emacs to stop
> >> writing things (like indentation) that I do not type.
> >
> > I believe there is a variable to customize for this behaviour. I will
> > know the variable name when I find it in Elisp code down there in
> > sources. After that, googling for this name will be very easy.
[...]
> 
> This may be a bit off-topic but the feature responsible for this is
> 'electric-indent-mode', which is enabled by default in 24.4 or later.
> 
> http://www.gnu.org/software/emacs/manual/html_node/emacs/Indent-Convenience.html#index-Electric-Indent-mode
> 
> Put (electric-indent-mode -1) somewhere in your Emacs configuration
> when using 24.4 or later.

Ah so this is the name. Thank you!

-- 
Regards,
Tomasz Rola

--
** A C programmer asked whether computer had Buddha's nature.  **
** As the answer, master did "rm -rif" on the programmer's home**
** directory. And then the C programmer became enlightened...  **
** **
** Tomasz Rola  mailto:tomasz_r...@bigfoot.com **



Re: Some highlights: Emacs 21.4 and 25.3

2018-10-02 Thread John M
Personally I use Emacs 25.x on OpenBSD 6.3, with the caveat being that
I rely on a number of customizations to normalize behavior to be what I
expect. I would suggest using whichever version annoys you the least.

>> And I am tired that in some modes I cannot get emacs to stop
>> writing things (like indentation) that I do not type.
>
> I believe there is a variable to customize for this behaviour. I will
> know the variable name when I find it in Elisp code down there in
> sources. After that, googling for this name will be very easy.
>
> Before this happens, I will continue to use 23 and 24 (23 does not
> show me indent problem), but I feel prompted to have a look at 21 as
> well (but then even more puzzles for dot-emacs).

This may be a bit off-topic but the feature responsible for this is
'electric-indent-mode', which is enabled by default in 24.4 or later.

http://www.gnu.org/software/emacs/manual/html_node/emacs/Indent-Convenience.html#index-Electric-Indent-mode

Put (electric-indent-mode -1) somewhere in your Emacs configuration
when using 24.4 or later.


On Tue, Oct 2, 2018 at 4:18 PM Tomasz Rola  wrote:
>
> On Tue, Oct 02, 2018 at 03:55:31PM +, Roderick wrote:
> >
> > On Tue, 2 Oct 2018, Solene Rapenne wrote:
> >
> > >emacs 25 has a X11 flavour -athena which do not use gtk, but you need
> > >to build it from ports, there is no package for it.
> >
> > And indeed I do that.
> >
> > I thought that perhaps 21.4 is more stable, or less bloated ...
> >
> > Interessting remains to know, what the reson was.
>
> Your remarks prompted me to have a look myself - so those are just my
> wild guesses, but:
>
>  - a comparison between announcements for 21.1 and 22.1
>
> http://lists.gnu.org/archive/html/info-gnu-emacs/2001-10/msg9.html
>
> http://lists.gnu.org/archive/html/info-gnu-emacs/2007-06/msg0.html
>
>tells me that support for GTK started with 22.1 - and if so then 21.4
>is the latest bugfixed version without it, while still enabling
>color themes (and custom fonts?), which are very nice to have (me
>being color abuser).
>
>  - myself, I am using 23 and 24, and comparison of their "concept
>index" info nodes shows there are 1582 and 1863 items,
>respectively. Some of those new concepts were introduced earlier
>and only documented in 24 but this gives a glimpse into amount of
>ongoing changes. There are some new Elisp functions in 24 and
>various sets of installed Elisp files for each, which makes
>supporting them both in my dot-emacs an interesting puzzle (not
>always succesfull).
>
> > And I am tired that in some modes I cannot get emacs to stop
> > writing things (like indentation) that I do not type.
>
> I believe there is a variable to customize for this behaviour. I will
> know the variable name when I find it in Elisp code down there in
> sources. After that, googling for this name will be very easy.
>
> Before this happens, I will continue to use 23 and 24 (23 does not
> show me indent problem), but I feel prompted to have a look at 21 as
> well (but then even more puzzles for dot-emacs).
>
> My guess is, all those inconveniences are introduced to make more
> users into looking under the hood. I have not really cared much about
> such detail until I played with elpa too much and had to manually
> unkcuf it.
>
> --
> Regards,
> Tomasz Rola
>
> --
> ** A C programmer asked whether computer had Buddha's nature.  **
> ** As the answer, master did "rm -rif" on the programmer's home**
> ** directory. And then the C programmer became enlightened...  **
> ** **
> ** Tomasz Rola  mailto:tomasz_r...@bigfoot.com **
>



Re: Some highlights: Emacs 21.4 and 25.3

2018-10-02 Thread Tomasz Rola
On Tue, Oct 02, 2018 at 03:55:31PM +, Roderick wrote:
> 
> On Tue, 2 Oct 2018, Solene Rapenne wrote:
> 
> >emacs 25 has a X11 flavour -athena which do not use gtk, but you need
> >to build it from ports, there is no package for it.
> 
> And indeed I do that.
> 
> I thought that perhaps 21.4 is more stable, or less bloated ...
> 
> Interessting remains to know, what the reson was.

Your remarks prompted me to have a look myself - so those are just my
wild guesses, but:

 - a comparison between announcements for 21.1 and 22.1

http://lists.gnu.org/archive/html/info-gnu-emacs/2001-10/msg9.html

http://lists.gnu.org/archive/html/info-gnu-emacs/2007-06/msg0.html

   tells me that support for GTK started with 22.1 - and if so then 21.4
   is the latest bugfixed version without it, while still enabling
   color themes (and custom fonts?), which are very nice to have (me
   being color abuser).

 - myself, I am using 23 and 24, and comparison of their "concept
   index" info nodes shows there are 1582 and 1863 items,
   respectively. Some of those new concepts were introduced earlier
   and only documented in 24 but this gives a glimpse into amount of
   ongoing changes. There are some new Elisp functions in 24 and
   various sets of installed Elisp files for each, which makes
   supporting them both in my dot-emacs an interesting puzzle (not
   always succesfull).

> And I am tired that in some modes I cannot get emacs to stop
> writing things (like indentation) that I do not type.

I believe there is a variable to customize for this behaviour. I will
know the variable name when I find it in Elisp code down there in
sources. After that, googling for this name will be very easy.

Before this happens, I will continue to use 23 and 24 (23 does not
show me indent problem), but I feel prompted to have a look at 21 as
well (but then even more puzzles for dot-emacs).

My guess is, all those inconveniences are introduced to make more
users into looking under the hood. I have not really cared much about
such detail until I played with elpa too much and had to manually
unkcuf it.

-- 
Regards,
Tomasz Rola

--
** A C programmer asked whether computer had Buddha's nature.  **
** As the answer, master did "rm -rif" on the programmer's home**
** directory. And then the C programmer became enlightened...  **
** **
** Tomasz Rola  mailto:tomasz_r...@bigfoot.com **



Re: Some highlights: Emacs 21.4 and 25.3

2018-10-02 Thread Matthew Graybosch
On Tue, Oct 2, 2018, at 11:48 AM, Solene Rapenne wrote:

> emacs 25 has a X11 flavour -athena which do not use gtk, but you need to build
> it from ports, there is no package for it.
 
Thanks for the correction. I've just been going by what's available as a 
package.

-- 
Matthew Graybosch
https://www.matthewgraybosch.com
"Out of order? Even in the future nothing works."



Re: Some highlights: Emacs 21.4 and 25.3

2018-10-02 Thread Roderick



On Tue, 2 Oct 2018, Solene Rapenne wrote:


emacs 25 has a X11 flavour -athena which do not use gtk, but you need
to build it from ports, there is no package for it.


And indeed I do that.

I thought that perhaps 21.4 is more stable, or less bloated ...

Interessting remains to know, what the reson was.

And I am tired that in some modes I cannot get emacs to stop
writing things (like indentation) that I do not type.

Rodrigo



Re: Some highlights: Emacs 21.4 and 25.3

2018-10-02 Thread Solene Rapenne
Matthew Graybosch  wrote:
> On Tue, Oct 2, 2018, at 9:02 AM, Roderick wrote:
> > 
> > I see, openbsd 6.3 offers Emacs 21.4 as port. May I ask, what is special
> > in this old version of Emacs?
> 
> Hi, Rodrigo. I think the maintainers are keeping GNU Emacs 21.4 around 
> because its graphical version isn't built against GTK, unlike the more recent 
> releases.

emacs 25 has a X11 flavour -athena which do not use gtk, but you need to build
it from ports, there is no package for it.



Re: Some highlights: Emacs 21.4 and 25.3

2018-10-02 Thread Matthew Graybosch
On Tue, Oct 2, 2018, at 9:02 AM, Roderick wrote:
> 
> I see, openbsd 6.3 offers Emacs 21.4 as port. May I ask, what is special
> in this old version of Emacs?

Hi, Rodrigo. I think the maintainers are keeping GNU Emacs 21.4 around because 
its graphical version isn't built against GTK, unlike the more recent releases.

-- 
Matthew Graybosch
https://www.matthewgraybosch.com
"Out of order? Even in the future nothing works."