[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19134: 24.4.51; Error using mark-defun in c++-mode
From: |
Ivan Andrus |
Subject: |
bug#19134: 24.4.51; Error using mark-defun in c++-mode |
Date: |
Thu, 20 Nov 2014 15:01:20 -0700 |
Starting from emacs -Q, create a buffer in `c++-mode' with contents below.
class Bob
{
protected:
void fun()
{
}
};
Placing point on the line after "protected:" and running mark-defun gives
the error:
c-where-wrt-brace-construct: c-where-wrt-brace-construct: c-beginning-of-decl-1
returned label
Ideally it would give no error, and IMO, it should mark fun(), though marking
the class would be fine as well.
-Ivan
In GNU Emacs 24.4.51.7 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
of 2014-11-17 on iandrus-osx
Repository revision: 1574e964bb3103e298e83fd2fca402fa48743465
Windowing system distributor `Apple', version 10.3.1265
Configured using:
`configure --with-ns'
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: C++/l
Minor modes in effect:
tooltip-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-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 messages:
Mark set
user-error: No further undo information [3 times]
Quit
Undo! [3 times]
Redo!
Mark set
c-where-wrt-brace-construct: c-where-wrt-brace-construct: c-beginning-of-decl-1
returned label
Buffer is read-only: #<buffer *Messages*>
Undo! [2 times]
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
help-fns mail-prsvr mail-utils help-mode cc-langs cl-loaddefs cl-lib
cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align
cc-engine cc-vars cc-defs time-date tooltip electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode prog-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 nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process cocoa ns
multi-tty emacs)
Memory information:
((conses 16 104996 7269)
(symbols 48 20219 0)
(miscs 40 56 233)
(strings 32 17498 4574)
(string-bytes 1 589344)
(vectors 16 11562)
(vector-slots 8 409861 5782)
(floats 8 57 254)
(intervals 56 227 21)
(buffers 960 12))
- bug#19134: 24.4.51; Error using mark-defun in c++-mode,
Ivan Andrus <=