unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* C++ mode odd // behavior
@ 2017-11-04 22:12 sellputcall
  2017-11-05  9:32 ` Anast Gramm
       [not found] ` <mailman.2948.1509874355.27995.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: sellputcall @ 2017-11-04 22:12 UTC (permalink / raw)
  To: help-gnu-emacs

emacs: GNU Emacs 25.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.22.19) of 2017-09-14 

OS: Fedora 25 

Very odd behavior in C mode: status line has C/l pair Abbrev.
Editing a c++ header file.

When I type // it inserts a bullet point as of today!
Dont think i have seen this before.

I have to type:/ [space] [backspace] / to get // to take effect.


Other weird c++ navigation behavior, but will post that separately.


tia,


Sunil


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

* Re: C++ mode odd // behavior
  2017-11-04 22:12 C++ mode odd // behavior sellputcall
@ 2017-11-05  9:32 ` Anast Gramm
       [not found] ` <mailman.2948.1509874355.27995.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 7+ messages in thread
From: Anast Gramm @ 2017-11-05  9:32 UTC (permalink / raw)
  To: sellputcall; +Cc: help-gnu-emacs

> Very odd behavior in C mode: status line has C/l pair Abbrev.
> Editing a c++ header file.
> When I type // it inserts a bullet point as of today!
> Dont think i have seen this before.

It might be the yas-snippet package. Try disabling the yas minor mode.
If it is indeed yas, then you should find the '//' definition and disable it

> I have to type:/ [space] [backspace] / to get // to take effect.

in cc-mode you can also select a region then C-c C-c to comment it out with '//'



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

* Re: C++ mode odd // behavior
       [not found] ` <mailman.2948.1509874355.27995.help-gnu-emacs@gnu.org>
@ 2017-11-09 19:35   ` sellputcall
  2017-11-09 19:48     ` Emanuel Berg
       [not found]     ` <mailman.3342.1510256954.27995.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: sellputcall @ 2017-11-09 19:35 UTC (permalink / raw)
  To: help-gnu-emacs

On Sunday, November 5, 2017 at 4:32:38 AM UTC-5, Anast Gramm wrote:
> > Very odd behavior in C mode: status line has C/l pair Abbrev.
> > Editing a c++ header file.
> > When I type // it inserts a bullet point as of today!
> > Dont think i have seen this before.
> 
> It might be the yas-snippet package. Try disabling the yas minor mode.
> If it is indeed yas, then you should find the '//' definition and disable it
> 
> > I have to type:/ [space] [backspace] / to get // to take effect.
> 
> in cc-mode you can also select a region then C-c C-c to comment it out with '//'


I dont load yas mode. Nor do i find any info for yaz in apropos.

Yes, the comment region has been working fine in cc-mode. Still comments out regions.


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

* Re: C++ mode odd // behavior
  2017-11-09 19:35   ` sellputcall
@ 2017-11-09 19:48     ` Emanuel Berg
       [not found]     ` <mailman.3342.1510256954.27995.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 7+ messages in thread
From: Emanuel Berg @ 2017-11-09 19:48 UTC (permalink / raw)
  To: help-gnu-emacs

> Very odd behavior in C mode: status line has
> C/l pair Abbrev.

*mode line

> Editing a c++ header file. When I type // it
> inserts a bullet point as of today!
> in cc-mode. Still comments out regions.

If it is not yas it might be abbrev or
something else to that extent.

Did you do 'emacs -Q' and then find test.hh?
What mode are you in? Does the same thing
happen? If it doesn't, do 'C-h m' and flush it
to a file. Then go to your normal Emacs setup
where the incorrect behavior appears
(c++-mode), do the same, and then diff(1)
the files.

-- 
underground experts united
http://user.it.uu.se/~embe8573




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

* Re: C++ mode odd // behavior
       [not found]     ` <mailman.3342.1510256954.27995.help-gnu-emacs@gnu.org>
@ 2017-11-09 20:22       ` sellputcall
  2017-11-09 21:15         ` Emanuel Berg
       [not found]         ` <mailman.3355.1510262161.27995.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: sellputcall @ 2017-11-09 20:22 UTC (permalink / raw)
  To: help-gnu-emacs

On Thursday, November 9, 2017 at 2:49:17 PM UTC-5, Emanuel Berg wrote:
> > Very odd behavior in C mode: status line has
> > C/l pair Abbrev.
> 
> *mode line
> 
> > Editing a c++ header file. When I type // it
> > inserts a bullet point as of today!
> > in cc-mode. Still comments out regions.
> 
> If it is not yas it might be abbrev or
> something else to that extent.
> 
> Did you do 'emacs -Q' and then find test.hh?
This doesnt always happen! Was happening consistently on the day I posted this.
I had my emacs and my system running entire day. Had booted that morning.

No. I always start with emacs --debug-init
If you want me to disable the init files, i can try.

> What mode are you in? Does the same thing
This only happened in C and C++ mode on that day.
Will have to observe if this happens again.

> happen? If it doesn't, do 'C-h m' and flush it

When it does, what exactly do you want me to flush to file?


> to a file. Then go to your normal Emacs setup
> where the incorrect behavior appears
> (c++-mode), do the same, and then diff(1)
> the files.
> 
> -- 
> underground experts united
> http://user.it.uu.se/~embe8573


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

* Re: C++ mode odd // behavior
  2017-11-09 20:22       ` sellputcall
@ 2017-11-09 21:15         ` Emanuel Berg
       [not found]         ` <mailman.3355.1510262161.27995.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 7+ messages in thread
From: Emanuel Berg @ 2017-11-09 21:15 UTC (permalink / raw)
  To: help-gnu-emacs

> This only happened in C and C++ mode on that
> day. Will have to observe if this
> happens again.

If it doesn't happen anymore, I suppose you had
some minor mode enabled that you were
unaware on.

> When it does, what exactly do you want me to
> flush to file?

The buffer you see after hitting `C-h m'.
Do this when it is sane, on 'Emacs -Q', and
when it isn't sane, and then compare what minor
modes are then enabled that could make the
difference...

-- 
underground experts united
http://user.it.uu.se/~embe8573




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

* Re: C++ mode odd // behavior
       [not found]         ` <mailman.3355.1510262161.27995.help-gnu-emacs@gnu.org>
@ 2017-11-10 17:46           ` sellputcall
  0 siblings, 0 replies; 7+ messages in thread
From: sellputcall @ 2017-11-10 17:46 UTC (permalink / raw)
  To: help-gnu-emacs

On Thursday, November 9, 2017 at 4:16:05 PM UTC-5, Emanuel Berg wrote:
> > This only happened in C and C++ mode on that
> > day. Will have to observe if this
> > happens again.
> 
> If it doesn't happen anymore, I suppose you had
> some minor mode enabled that you were
> unaware on.

Yes, it felt like some conflict between c++ mode and some outline? mode that put bullet points instead of //.



> > When it does, what exactly do you want me to
> > flush to file?
> 
> The buffer you see after hitting `C-h m'.
> Do this when it is sane, on 'Emacs -Q', and
> when it isn't sane, and then compare what minor
> modes are then enabled that could make the
> difference...

Ok. Will save at the next emacs restart and save that buffer.

If I find anything, I will update this thread.

Thanks for all the help and the suggestions!
Very much appreciated.


Sunil


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

end of thread, other threads:[~2017-11-10 17:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-04 22:12 C++ mode odd // behavior sellputcall
2017-11-05  9:32 ` Anast Gramm
     [not found] ` <mailman.2948.1509874355.27995.help-gnu-emacs@gnu.org>
2017-11-09 19:35   ` sellputcall
2017-11-09 19:48     ` Emanuel Berg
     [not found]     ` <mailman.3342.1510256954.27995.help-gnu-emacs@gnu.org>
2017-11-09 20:22       ` sellputcall
2017-11-09 21:15         ` Emanuel Berg
     [not found]         ` <mailman.3355.1510262161.27995.help-gnu-emacs@gnu.org>
2017-11-10 17:46           ` sellputcall

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