all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#12825: 24.2; Broken autoindentation in C header file
@ 2012-11-07 10:20 aoriens
  2016-08-14 20:36 ` Alex
  0 siblings, 1 reply; 2+ messages in thread
From: aoriens @ 2012-11-07 10:20 UTC (permalink / raw)
  To: 12825

[-- Attachment #1: Type: text/plain, Size: 3476 bytes --]


1) Load file `assert.h' (attached)
2) Move point to line 23 and press <TAB> - the line text is shifted to
column 6 properly.
3) Move point to line 24 and press <TAB> - the line text doesn't move,
it's still at column 21, although it should be shifted to column 6.


In GNU Emacs 24.2.1 (i386-mingw-nt5.1.2600)
 of 2012-08-29 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.6) --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include
 -ID:/devel/emacs/libs/gnutls-3.0.9/include'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: RUS
  value of $XMODIFIERS: nil
  locale-coding-system: cp1251
  default enable-multibyte-characters: t

Major mode: C/l

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
<help-echo> C-x C-f <language-change> М о <tab> <language-change> 
s / k a <tab> <backspace> <backspace> j a m <tab> j 
a m d / <tab> <tab> a s s <tab> <return> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <tab> 
<down> <tab> <up> <down> <up> <down> <tab> C-c C-s 
M-x C-g <up> <down> M-x r e p o <tab> r t - <tab> 
<return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
assert.h has auto save data; consider M-x recover-this-file
Loading vc-git...done
Syntactic analysis: ((arglist-cont-nonempty 534 546))
Quit
Making completion list...

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils vc-git cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt help-mode
easymenu view time-date tooltip ediff-hook vc-hooks lisp-float-type
mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset
image fringe lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer loaddefs button faces cus-face files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process multi-tty emacs)

-- 
aoriens@gmail.com <aoriens@gmail.com>

[-- Attachment #2: assert.h --]
[-- Type: text/x-chdr, Size: 1227 bytes --]

#ifndef __MY_ASSERT_H__
#define __MY_ASSERT_H__

#include <cstdlib>
#include <cstdio>

#include "log.h"


// assert also writes to a log. Assert is intended to be compiled
// regardless of whether macro NDEBUG is defined or not

#define assert(cond)                                                    \
  do {                                                                  \
    if (! (cond)) {                                                     \
      if (plog) {                                                       \
        plog->alarm ("Assertion failed: `%s'\nat `%s' line `%d'\n",     \
                     #cond, __FILE__, __LINE__);                        \
      }                                                                 \
      else {                                                            \
        std::fprintf (stderr, "Assertion failed: `%s'\nat `%s' line `%d'\n", \
                     #cond, __FILE__, __LINE__);                        \
                     }                                                  \
                     std::abort ();                                     \
                     }                                                  \
  } while (0)


#endif
      .

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

* bug#12825: 24.2; Broken autoindentation in C header file
  2012-11-07 10:20 bug#12825: 24.2; Broken autoindentation in C header file aoriens
@ 2016-08-14 20:36 ` Alex
  0 siblings, 0 replies; 2+ messages in thread
From: Alex @ 2016-08-14 20:36 UTC (permalink / raw)
  To: aoriens@gmail.com; +Cc: 12825

close 12825 24.5
quit

"aoriens@gmail.com" <aoriens@gmail.com> writes:

> 1) Load file `assert.h' (attached)
> 2) Move point to line 23 and press <TAB> - the line text is shifted to
> column 6 properly.
> 3) Move point to line 24 and press <TAB> - the line text doesn't move,
> it's still at column 21, although it should be shifted to column 6.

This appears to be working in 24.5.





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

end of thread, other threads:[~2016-08-14 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-07 10:20 bug#12825: 24.2; Broken autoindentation in C header file aoriens
2016-08-14 20:36 ` Alex

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.