unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13501: 24.3.50; mark-defun and friends don't work correctly in python-mode
@ 2013-01-19 21:21 Ivan Andrus
  2013-01-23 22:04 ` Fabián Ezequiel Gallina
  0 siblings, 1 reply; 2+ messages in thread
From: Ivan Andrus @ 2013-01-19 21:21 UTC (permalink / raw)
  To: 13501

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





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

* bug#13501: 24.3.50; mark-defun and friends don't work correctly in python-mode
  2013-01-19 21:21 bug#13501: 24.3.50; mark-defun and friends don't work correctly in python-mode Ivan Andrus
@ 2013-01-23 22:04 ` Fabián Ezequiel Gallina
  0 siblings, 0 replies; 2+ messages in thread
From: Fabián Ezequiel Gallina @ 2013-01-23 22:04 UTC (permalink / raw)
  To: 13501

A block is not a defun. In that sense, mark defun is doing the right thing.





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

end of thread, other threads:[~2013-01-23 22:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-19 21:21 bug#13501: 24.3.50; mark-defun and friends don't work correctly in python-mode Ivan Andrus
2013-01-23 22:04 ` Fabián Ezequiel Gallina

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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