GNU bug report logs - #13501
24.3.50; mark-defun and friends don't work correctly in python-mode

Previous Next

Package: emacs;

Reported by: Ivan Andrus <darthandrus <at> gmail.com>

Date: Sat, 19 Jan 2013 21:23:02 UTC

Severity: normal

Tags: notabug

Found in version 24.3.50

Done: Fabián Ezequiel Gallina <fabian <at> anue.biz>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13501 in the body.
You can then email your comments to 13501 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13501; Package emacs. (Sat, 19 Jan 2013 21:23:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ivan Andrus <darthandrus <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 19 Jan 2013 21:23:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ivan Andrus <darthandrus <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; mark-defun and friends don't work correctly in python-mode
Date: Sat, 19 Jan 2013 22:21:38 +0100
Starting from emacs -Q create a buffer in python-mode with contents

with open('someFile') as f:
    data = f.read()


Place the cursor (say) after some and before File.  Then run mark-defun
(e.g. with C-M-h).  It will set mark at the end of the line and not move
point.  Instead, it should select the entire block.

This also happens on the Emacs 24 branch.

-Ivan


In GNU Emacs 24.3.50.16 (i386-apple-darwin12.2.0, NS apple-appkit-1187.34)
of 2013-01-19 on oroszlan.local
Bzr revision: 111557 eggert <at> cs.ucla.edu-20130119122910-o562t7gzs8ju4mah
Windowing system distributor `Apple', version 10.3.1187
Configured using:
`configure --with-ns --no-create --no-recursion'

Important settings:
  value of $LC_CTYPE: UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Python

Minor modes in effect:
  tooltip-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

Recent input:
<C-up> <C-up> C-k C-k C-k C-k C-k M-x p y h <backspace> 
t h <tab> o <backspace> <return> C-y <C-left> <C-left> 
<C-left> <C-left> <C-left> <C-left> <right> <right> 
<right> <right> s-x C-/ M-x m a r k d <backspace> - 
d e f u <tab> <return> <down-mouse-1> <mouse-1> <up> 
<up> M-x r e p o <tab> r <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Can't guess python-indent-offset, using defaults: 4
Mark set
Undo!
Mark set [2 times]
You can run the command `mark-defun' with C-M-h
Mark set
Making completion list...

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr dabbrev 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 help-mode python rx easymenu comint ring
ansi-color time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel
ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment 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 macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process ns
multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13501; Package emacs. (Wed, 23 Jan 2013 22:05:01 GMT) Full text and rfc822 format available.

Message #8 received at 13501 <at> debbugs.gnu.org (full text, mbox):

From: Fabián Ezequiel Gallina <fabian <at> anue.biz>
To: 13501 <at> debbugs.gnu.org
Subject: 24.3.50; mark-defun and friends don't work correctly in python-mode
Date: Wed, 23 Jan 2013 19:04:26 -0300
A block is not a defun. In that sense, mark defun is doing the right thing.




bug closed, send any further explanations to 13501 <at> debbugs.gnu.org and Ivan Andrus <darthandrus <at> gmail.com> Request was from Fabián Ezequiel Gallina <fabian <at> anue.biz> to control <at> debbugs.gnu.org. (Thu, 24 Jan 2013 01:58:02 GMT) Full text and rfc822 format available.

Added tag(s) notabug. Request was from Fabián Ezequiel Gallina <fabian <at> anue.biz> to control <at> debbugs.gnu.org. (Thu, 24 Jan 2013 02:00:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 21 Feb 2013 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 123 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.