From unknown Sat Jun 21 10:28:33 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#11899 <11899@debbugs.gnu.org> To: bug#11899 <11899@debbugs.gnu.org> Subject: Status: 24.1.50; Weird names and unhelpful docstrings for some python function Reply-To: bug#11899 <11899@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:28:33 +0000 retitle 11899 24.1.50; Weird names and unhelpful docstrings for some python= function reassign 11899 emacs submitter 11899 Ivan Andrus severity 11899 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 10 10:39:10 2012 Received: (at submit) by debbugs.gnu.org; 10 Jul 2012 14:39:10 +0000 Received: from localhost ([127.0.0.1]:60187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Soban-0006f7-KE for submit@debbugs.gnu.org; Tue, 10 Jul 2012 10:39:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40758) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sobak-0006ez-4Q for submit@debbugs.gnu.org; Tue, 10 Jul 2012 10:39:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SobVS-0007r6-FD for submit@debbugs.gnu.org; Tue, 10 Jul 2012 10:33:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:54283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SobVS-0007r0-96 for submit@debbugs.gnu.org; Tue, 10 Jul 2012 10:33:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SobVL-0002in-Qy for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2012 10:33:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SobVE-0007Xk-Ar for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2012 10:33:31 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:61915) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SobVD-0007SP-TN for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2012 10:33:24 -0400 Received: by mail-bk0-f41.google.com with SMTP id jc3so49727bkc.0 for ; Tue, 10 Jul 2012 07:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; bh=xJoJ/PHpo6PPWe/S9drhZ2JHwN1Oyr+4ygjft/eAqGI=; b=QSIy/7fkaSqe/0HI6WWV5ZY2TuAypSA/NjJpmFGIPtXFHJ+IKtlfQ+mliUm99FLyP3 hZJAuFDCo36/E22A/tT01ePuDHojw+FMdqWu9REy+0gqU6nZNAP8sv2TBYrYfuMJzNH9 aSdxHNHqUjxIPype2gnb6iL2madbyigJbeUfo6sPFPBMo8nwVVW4pBsBUoe7NNLDoRxK 9E61frDsy+/EGtxIFZ/N64Iur8RNZCVmb+rBEhvz2pC1fADio7eWZjxzzQWbpwBMzKtv UDMKj0b6W3+++dNoAwVpKMSESRGorIZGw0jLdKsvkH8ggQX4dm2cilD/LiQdUDu5IhWH v0Fg== Received: by 10.204.148.78 with SMTP id o14mr21457979bkv.38.1341930802200; Tue, 10 Jul 2012 07:33:22 -0700 (PDT) Received: from [10.0.2.25] (catv-80-99-177-93.catv.broadband.hu. [80.99.177.93]) by mx.google.com with ESMTPS id n5sm28385138bkv.14.2012.07.10.07.33.21 (version=SSLv3 cipher=OTHER); Tue, 10 Jul 2012 07:33:21 -0700 (PDT) From: Ivan Andrus Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: 24.1.50; Weird names and unhelpful docstrings for some python function Date: Tue, 10 Jul 2012 16:33:19 +0200 Message-Id: To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) The functions python-nav-sentence-start python-nav-sentence-end python-nav-forward-sentence python-nav-backward-sentence have weird names in the sense that they don't move by sentences. In fact the concept of a sentence in python doesn't even make sense. I have no problem with them being bound to forward-sentence and backward-sentence--in fact I do similar things in other modes, but at least the docstrings (if not the names) should explain that they move by statements instead of sentences (if that is in fact what they do). Perhaps they should also be aliased to python-beginning-of-statement python-end-of-statement if the semantics match, since those functions are now gone. -Ivan P.S. Is this the right place to file a bug against the new python.el, or should I file it on github? In GNU Emacs 24.1.50.1 (i386-apple-darwin10.8.0, NS = apple-appkit-1038.36) of 2012-07-10 on oroszlan.local Bzr revision: 108995 rgm@gnu.org-20120710101729-d50lf86lytae0ts2 Windowing system distributor `Apple', version 10.3.1038 Configured using: `configure '--with-ns'' Important settings: locale-coding-system: nil default enable-multibyte-characters: t Major mode: SAGE Minor modes in effect: diff-auto-refine-mode: t TeX-PDF-mode: t highlight-symbol-mode: t hi-lock-mode: t which-function-mode: t show-paren-mode: t recentf-mode: t msb-mode: t minibuffer-depth-indicate-mode: t global-hl-line-mode: t delete-selection-mode: t auto-image-file-mode: t auto-insert-mode: t yas/global-mode: t yas/minor-mode: t shell-dirtrack-mode: t ido-everywhere: t global-visible-mark-mode: t visible-mark-mode: t gvol-mode: t desktop-save-mode: t drag-stuff-global-mode: t drag-stuff-mode: t command-frequency-autosave-mode: t command-frequency-mode: t 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 column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-c C-f C-x C-f p y r e SPC C-t C-c C-f C-; C-c C-f q TAB TAB TAB TAB TAB TAB TAB C-1 M-( TAB C-y C-M-SPC C-M-j C-1 M-( C-l w h e n SPC , , n o t SPC , , f b o u n d p C-o C-M-u C-o C-M-l C-M-j C-M-k C-/ TAB C-e C-e C-\ ' C-y C-k TAB C-l C-x C-e C-l C-x C-e C-M-SPC C-M-l C-e C-x C-e C-M-j TAB TAB TAB C-e C-M-j TAB C-k C-k C-d C-e C-SPC TAB TAB C-x C-s C-k C-k C-a C-M-k , , w h e n SPC , , n o t SPC , , f b o u n d p SPC ' C-y C-M-o C-M-o , , d e f u n SPC C-y SPC , , C-M-o C-M-o C-x C-s C-h f p y t h n a s e s t C-k C-k C-M-k C-h f C-g M-w C-x b l i b g a p . C-g C-x C-f l i b C-s C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k M-x p y t h - m n a f o M-x M-x M-x M-x M-x M-x M-x M-x M-x M-x e m C-g M-x e m a c s b u g Recent messages: Error during redisplay: (wrong-type-argument arrayp nil) [3 times] /Users/gvol/.emacs-uptimes byte-code: Buffer is read-only: # Quit QuitError during redisplay: (wrong-type-argument arrayp nil) Error during redisplay: (wrong-type-argument arrayp nil) [63 times] eval: QuitError during redisplay: (wrong-type-argument arrayp nil) Error during redisplay: (wrong-type-argument arrayp nil) [3 times] Scanning for dabbrevs...done Error during redisplay: (wrong-type-argument arrayp nil) [11 times] Load-path shadows: /Users/gvol/.emacs.d/elpa/parenface-20091203/parenface hides = ~/.emacs.d/local/parenface /Users/gvol/.emacs.d/elpa/hl-sexp-1.0.0/hl-sexp hides = ~/.emacs.d/local/hl-sexp /Users/gvol/.emacs.d/elpa/python-mode-6.0.3/highlight-indentation hides = ~/.emacs.d/local/highlight-indentation /Users/gvol/.emacs.d/elpa/command-frequency-1.1/command-frequency hides = ~/.emacs.d/local/command-frequency /Users/gvol/vcs/sage-mode/emacs/.dir-locals hides = /Users/gvol/vcs/emacs/local/nextstep/Emacs.app/Contents/Resources/lisp/gnu= s/.dir-locals ~/.emacs.d/local/lisp-mnt hides = /Users/gvol/vcs/emacs/local/nextstep/Emacs.app/Contents/Resources/lisp/ema= cs-lisp/lisp-mnt Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils esh-var esh-io esh-cmd esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util hippie-exp lisp-mnt checkdoc elint debug pyrex multi-isearch ffap url-parse url-vars dabbrev smerge-mode diff-mode sage-view parse-time vc-cvs sgml-mode preview prv-emacs adaptive-wrap tex-fold reftex-vcr reftex-dcr reftex-auc reftex reftex-vars tex-bar tex-buf toolbar-x font-latex latex tex-style sage-auctex tex subword sage-mode hideshow python org-colview vc-svn compile sh-script smie executable tabify cal-iso org-mobile reveal org-habit org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks find-func org-agenda org-info org-gnus org-docview org-bibtex bibtex org-bbdb org-archive org-id org-crypt ob-python org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete org-list org-faces org-compat org-entities org-macs noutline outline gvol-light-theme elide-head vc-bzr vc-hg eldoc highlight-parentheses greedy-delete highlight-symbol hi-lock thingatpt time jka-compr saveplace uniquify which-func imenu paren recentf tree-widget wid-edit msb mb-depth icomplete hl-line delsel image-file cus-start cus-load diary-lib diary-loaddefs cal-menu calendar cal-loaddefs warnings autoinsert yasnippet dropdown-list derived cl-macs gv help-mode view tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util mm-util mail-prsvr password-cache tramp-loaddefs shell pcomplete comint ansi-color format-spec smex ido visible-mark parenface fold cl cl-lib macroexp commit-patch-buffer log-edit ring pcvs-util add-log vc ediff vc-dispatcher sage rx sage-load xml desktop drag-stuff browse-kill-ring backtr command-frequency uptimes pp server easy-mmode assoc dired+ edmacro kmacro dired-x ediff-merg ediff-diff ediff-wind ediff-mult ediff-help ediff-init ediff-util dired-aux dired windmove ac-slime-autoloads adaptive-wrap-autoloads applescript-mode-autoloads auctex-autoloads tex-site info easymenu browse-kill-ring-autoloads buffer-move-autoloads c-eldoc-autoloads columnify-autoloads command-frequency-autoloads company-autoloads drag-stuff-autoloads durendal-autoloads emstar-autoloads feature-mode-autoloads goto-last-change-autoloads graphviz-dot-mode-autoloads highlight-parentheses-autoloads highlight-symbol-autoloads hl-sexp-autoloads keyfreq-autoloads finder-inf markdown-mode+-autoloads markdown-mode-autoloads paredit-autoloads parenface-autoloads python-mode-autoloads redo+-autoloads rw-hunspell-autoloads scpaste-autoloads htmlize-autoloads scss-mode-autoloads slime-clj-autoloads slime-fuzzy-autoloads slime-ritz-autoloads smex-autoloads speck-autoloads swank-clojure-autoloads advice help-fns advice-preload clojure-mode-autoloads slime-repl-autoloads slime-autoloads xml-rpc-autoloads package 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 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) From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 10 18:30:46 2012 Received: (at 11899) by debbugs.gnu.org; 10 Jul 2012 22:30:47 +0000 Received: from localhost ([127.0.0.1]:60857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoixC-00032Z-Ku for submit@debbugs.gnu.org; Tue, 10 Jul 2012 18:30:46 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:50351) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Soix9-00032R-Mr for 11899@debbugs.gnu.org; Tue, 10 Jul 2012 18:30:45 -0400 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q6AMP0ia005459; Tue, 10 Jul 2012 18:25:11 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 903A9AECB7; Tue, 10 Jul 2012 18:23:57 -0400 (EDT) From: Stefan Monnier To: Ivan Andrus Subject: Re: bug#11899: 24.1.50; Weird names and unhelpful docstrings for some python function Message-ID: References: Date: Tue, 10 Jul 2012 18:23:57 -0400 In-Reply-To: (Ivan Andrus's message of "Tue, 10 Jul 2012 16:33:19 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4275=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4275> : streams <782341> : uri <1161938> X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 11899 Cc: "=?iso-8859-1?Q?Fabi=E1n?= E. Gallina" , 11899@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) > python-nav-sentence-start > python-nav-sentence-end > python-nav-forward-sentence > python-nav-backward-sentence > have weird names in the sense that they don't move by sentences. Indeed, thanks for catching that. Fabi=E1n, can you take a look at it? > P.S. Is this the right place to file a bug against the new python.el, Yes, thank you, Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 10 21:22:06 2012 Received: (at 11899) by debbugs.gnu.org; 11 Jul 2012 01:22:06 +0000 Received: from localhost ([127.0.0.1]:60989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Solcz-0006wg-2x for submit@debbugs.gnu.org; Tue, 10 Jul 2012 21:22:05 -0400 Received: from mail-yx0-f172.google.com ([209.85.213.172]:42368) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Solah-0006t2-Jr for 11899@debbugs.gnu.org; Tue, 10 Jul 2012 21:19:44 -0400 Received: by yenq13 with SMTP id q13so668243yen.3 for <11899@debbugs.gnu.org>; Tue, 10 Jul 2012 18:14:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=5fNMVq3eyP4zGtYcWCsctufB/riv88AsowNN6OJZl4Q=; b=QiPp0/JWUt3Rx7WsZwpo2j9gPifabSGehHdrYN+ZJCYRD5nTbZN4XwYRZWGDTzoUfe hI53TnXlrwLhOG6D9TmfnljVGOkDU2dDgZmrkWNLDeVwQa1ppD99lw9PpbNNBwgUgYHA /WXq/Smou0Yrli4/LPUzAWVQlc4RNPrPQk1Du5cMBet03hMSOG4akhWj4MKE8vZPDZdB oB5NSBoiK5nwdvZPF5txgyQiIEqEdgQ60k9irKsfOvbuazQTB58egG/J0Eu9a1V4I04O UJO9i0PSbH4bi0uJzRE72m5Kuue4+dAJn+rrWnN5mqDKYSOgJMK2IycncAPTEulwiaQC FN/w== Received: by 10.101.218.19 with SMTP id v19mr15961999anq.63.1341969259462; Tue, 10 Jul 2012 18:14:19 -0700 (PDT) Received: from [192.168.1.25] (host6.181-14-227.telecom.net.ar. [181.14.227.6]) by mx.google.com with ESMTPS id w4sm322807anh.19.2012.07.10.18.14.17 (version=SSLv3 cipher=OTHER); Tue, 10 Jul 2012 18:14:18 -0700 (PDT) Message-ID: <4FFCD368.6090603@anue.biz> Date: Tue, 10 Jul 2012 22:14:16 -0300 From: =?ISO-8859-1?Q?Fabi=E1n_Ezequiel_Gallina?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120616 Thunderbird/13.0.1 MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#11899: 24.1.50; Weird names and unhelpful docstrings for some python function References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQmD/PB+ctO9PcUdFkirvXzvx6RPnn/38qq1EsOh/RFRvn0pHRXJlym//jne7e40v6pXNItx X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11899 X-Mailman-Approved-At: Tue, 10 Jul 2012 21:22:03 -0400 Cc: Ivan Andrus , 11899@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 07/10/2012 07:23 PM, Stefan Monnier wrote: >> python-nav-sentence-start >> python-nav-sentence-end >> python-nav-forward-sentence >> python-nav-backward-sentence >> have weird names in the sense that they don't move by sentences. Can you give me an example of what do you expect and the current behavior so I can have a more specific example to work on? A simplified python file and short explanation would be enough. > Indeed, thanks for catching that. Fabián, can you take a look at it? > >> P.S. Is this the right place to file a bug against the new python.el, > Yes, thank you, > > > Stefan Regards, -- Fabián E. Gallina Co-Founder of Anue Skype: caffeineGalli http://www.anue.biz/ From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 11 08:48:19 2012 Received: (at 11899) by debbugs.gnu.org; 11 Jul 2012 12:48:19 +0000 Received: from localhost ([127.0.0.1]:33218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SowL3-0006TZ-Fn for submit@debbugs.gnu.org; Wed, 11 Jul 2012 08:48:19 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:51200) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SowKy-0006TP-Nu for 11899@debbugs.gnu.org; Wed, 11 Jul 2012 08:48:15 -0400 Received: by bkty7 with SMTP id y7so811906bkt.3 for <11899@debbugs.gnu.org>; Wed, 11 Jul 2012 05:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=/YtKDUsV8RMmC5q/6ph5qyhVLNacAkRYp6Ivg8K+Jgo=; b=P1kp1Ifb2TViaBE89EJ5KoyMc/0b5r/SJyBg84HZ8uwzZ/fEnAYZRNlJoa5GneV/SW krBU7LhR8zlTctaiw7kTq4KqPMN7W8lL/S6OsaIWYw+mB3YrW+tK7MxAkFGQpwRGcOp0 KMsdSLE+ujAG+cGX+eXwkB901J5m7pAm5aXdbC7hBwLKUefy1Yj23WUIgbY9CPhBJY8y tsrcjuwB9y9QZcI5k2fuKreO/p2CD32bm/NBoWa1P2p6cLow8TragMb5Vq0IOZuXSTx9 ZrEHZc20cPRb+lOMLIw4P8N8B0YvVTVe/rWdi8uh3olZluXYqIZeY1/si01zR9Cu8Pl6 OLnA== Received: by 10.204.157.143 with SMTP id b15mr10958946bkx.75.1342010565317; Wed, 11 Jul 2012 05:42:45 -0700 (PDT) Received: from [172.16.52.145] ([193.225.200.92]) by mx.google.com with ESMTPS id 25sm1085058bkx.9.2012.07.11.05.42.44 (version=SSLv3 cipher=OTHER); Wed, 11 Jul 2012 05:42:44 -0700 (PDT) Subject: Re: bug#11899: 24.1.50; Weird names and unhelpful docstrings for some python function Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 From: Ivan Andrus In-Reply-To: <4FFCD368.6090603@anue.biz> Date: Wed, 11 Jul 2012 14:42:44 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4FFCD368.6090603@anue.biz> To: =?iso-8859-1?Q?Fabi=E1n_Ezequiel_Gallina?= X-Mailer: Apple Mail (2.1084) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11899 Cc: Stefan Monnier , 11899@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On Jul 11, 2012, at 3:14 AM, Fabi=E1n Ezequiel Gallina wrote: > On 07/10/2012 07:23 PM, Stefan Monnier wrote: >>> python-nav-sentence-start >>> python-nav-sentence-end >>> python-nav-forward-sentence >>> python-nav-backward-sentence >>> have weird names in the sense that they don't move by sentences. >=20 > Can you give me an example of what do you expect and the current = behavior so I can have a more specific example to work on? A simplified = python file and short explanation would be enough. I'm not complaining about the functionality here. I just don't know = what a "sentence" means in a python file. I think what is meant is a = python statement, but the docstrings should reflect that, or define what = is meant by a sentence. That said, I did just notice that M-a (python-nav-backward-sentence) = gets "stuck" on the comment in the test below. If I put a blank line = after the comment then it doesn't. print libgap('if 4>3 then\nprint("hi");\nfi') # Abort/segfault print libgap('SmallGroup(12,3)') I can create a new bug for that if desired. -Ivan= From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 12 23:51:08 2012 Received: (at 11899) by debbugs.gnu.org; 13 Jul 2012 03:51:08 +0000 Received: from localhost ([127.0.0.1]:37943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpWuJ-0007YJ-Ky for submit@debbugs.gnu.org; Thu, 12 Jul 2012 23:51:07 -0400 Received: from mail-gh0-f172.google.com ([209.85.160.172]:45497) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpWuH-0007YA-Gy for 11899@debbugs.gnu.org; Thu, 12 Jul 2012 23:51:06 -0400 Received: by ghbg16 with SMTP id g16so3092977ghb.3 for <11899@debbugs.gnu.org>; Thu, 12 Jul 2012 20:45:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=l70aQbxgSdex1ahCrgcW5Bigyw0ovbhnVdBCMr/yE20=; b=HVqe0DrQODiaA+UjvjEdZHhRM6vgZVkm9nQHtfQe1L6/8hoCIKKKqx0cHDwZRs4ZRu ts7TcutqUnMicCw/BKcWhXc7JcraQAvSshX7Wq6wvkFQ7FmsRIZ99eSLUXg0cHvg1UH8 us7ijEriWjP3/GJq9GgwjUn10jbRtOMgho1GJHUd0ZVkgnkVLk460NfnNq4ocrrIWR3R bGGJ2lMtWHG1O6MINaGy0tiuMM6jAlvP88h3Z8IAewCGVouBx/OATinuNjKK9WjXKiHN V1OHCNK3DHb1c/BUMO0qCK6u/1Fx+w0HAJmURjbrzlhYDYbUS0MvBND5dfg9/6JmCOt/ xg4g== Received: by 10.236.192.162 with SMTP id i22mr616580yhn.83.1342151129512; Thu, 12 Jul 2012 20:45:29 -0700 (PDT) Received: from [192.168.1.25] (host204.201-252-54.telecom.net.ar. [201.252.54.204]) by mx.google.com with ESMTPS id e19sm6414166ann.10.2012.07.12.20.45.28 (version=SSLv3 cipher=OTHER); Thu, 12 Jul 2012 20:45:29 -0700 (PDT) Message-ID: <4FFF99D6.6040909@anue.biz> Date: Fri, 13 Jul 2012 00:45:26 -0300 From: =?ISO-8859-1?Q?Fabi=E1n_Ezequiel_Gallina?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120616 Thunderbird/13.0.1 MIME-Version: 1.0 To: Ivan Andrus Subject: Re: bug#11899: 24.1.50; Weird names and unhelpful docstrings for some python function References: <4FFCD368.6090603@anue.biz> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQlbBtw8Y0AlU2TIbq/MbcoMNIpgcl1LXWqH/klftnWO1lWnJxPXTO0CkrIsRRO52LSRWug8 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11899 Cc: Stefan Monnier , 11899@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 07/11/2012 09:42 AM, Ivan Andrus wrote: > On Jul 11, 2012, at 3:14 AM, Fabián Ezequiel Gallina wrote: >> On 07/10/2012 07:23 PM, Stefan Monnier wrote: >>>> python-nav-sentence-start >>>> python-nav-sentence-end >>>> python-nav-forward-sentence >>>> python-nav-backward-sentence >>>> have weird names in the sense that they don't move by sentences. >> Can you give me an example of what do you expect and the current behavior so I can have a more specific example to work on? A simplified python file and short explanation would be enough. > I'm not complaining about the functionality here. I just don't know what a "sentence" means in a python file. I think what is meant is a python statement, but the docstrings should reflect that, or define what is meant by a sentence. I agree here, the reason why I abused the term sentence for moving between statements is because there's no Emacs standard binding (nor concept) of moving between statements. Ideally python-nav-{backward,forward}-sentence must navigate blocks python code. Everything with an extra level of indentation after the block start must be considered part of the block (sentence). So given the following example: If something: do_this() do_that() If the pointer is at the start of the if statement, and the user issues python-nav-forward-sentence he must be taken after the do_that() statement. So what I'm going to do is to rename these existing functions to python-nav-{backward,forward}-statement and implement proper python-nav-{backward,forward}-sentence that would navigate blocks of code. > That said, I did just notice that M-a (python-nav-backward-sentence) gets "stuck" on the comment in the test below. If I put a blank line after the comment then it doesn't. > > print libgap('if 4>3 then\nprint("hi");\nfi') > # Abort/segfault > print libgap('SmallGroup(12,3)') > > I can create a new bug for that if desired. > > -Ivan I noticed that too, there's no need to open a ticket for it, I'll work on that too while solving this ticket. Thanks! -- Fabián E. Gallina Co-Founder of Anue Skype: caffeineGalli http://www.anue.biz/ From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 13 01:08:19 2012 Received: (at 11899) by debbugs.gnu.org; 13 Jul 2012 05:08:20 +0000 Received: from localhost ([127.0.0.1]:38110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpY70-0000se-LC for submit@debbugs.gnu.org; Fri, 13 Jul 2012 01:08:19 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:58689) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpY6x-0000sT-LU for 11899@debbugs.gnu.org; Fri, 13 Jul 2012 01:08:16 -0400 Received: from [155.69.18.139] (port=40040 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SpY1X-00056K-61; Fri, 13 Jul 2012 01:02:39 -0400 From: Chong Yidong To: Stefan Monnier Subject: Re: bug#11899: 24.1.50; Weird names and unhelpful docstrings for some python function References: Date: Fri, 13 Jul 2012 13:02:33 +0800 In-Reply-To: (Stefan Monnier's message of "Tue, 10 Jul 2012 18:23:57 -0400") Message-ID: <87y5mogsnq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 11899 Cc: Ivan Andrus , =?utf-8?Q?Fabi=C3=A1n_E=2E_Galli?= =?utf-8?Q?na?= , 11899@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Stefan Monnier writes: >> python-nav-sentence-start >> python-nav-sentence-end >> python-nav-forward-sentence >> python-nav-backward-sentence >> have weird names in the sense that they don't move by sentences. > > Indeed, thanks for catching that. Fabi=C3=A1n, can you take a look at it? For consistency with the rest of the Emacs code base, I suggest dropping the `nav', since other modes don't use that naming convention. As for the bug report, I don't have an opinion on whether it should be `python-sentence-start' or `python-statement-start'. If the former, it would be nice if the docstring explains what "sentence" means in the Python context. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 13 08:26:19 2012 Received: (at 11899) by debbugs.gnu.org; 13 Jul 2012 12:26:19 +0000 Received: from localhost ([127.0.0.1]:38745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Spewj-00049s-5A for submit@debbugs.gnu.org; Fri, 13 Jul 2012 08:26:13 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:46803) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Spewg-00049j-Qf for 11899@debbugs.gnu.org; Fri, 13 Jul 2012 08:26:07 -0400 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q6DCKP16019657; Fri, 13 Jul 2012 08:20:26 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 19F5CAE17C; Fri, 13 Jul 2012 08:20:25 -0400 (EDT) From: Stefan Monnier To: =?iso-8859-1?Q?Fabi=E1n?= Ezequiel Gallina Subject: Re: bug#11899: 24.1.50; Weird names and unhelpful docstrings for some python function Message-ID: References: <4FFCD368.6090603@anue.biz> <4FFF99D6.6040909@anue.biz> Date: Fri, 13 Jul 2012 08:20:25 -0400 In-Reply-To: <4FFF99D6.6040909@anue.biz> (=?iso-8859-1?Q?=22Fabi=E1n?= Ezequiel Gallina"'s message of "Fri, 13 Jul 2012 00:45:26 -0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4277=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4277> : streams <783883> : uri <1164255> X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 11899 Cc: Ivan Andrus , 11899@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) > If something: > do_this() > do_that() > If the pointer is at the start of the if statement, and the user issues > python-nav-forward-sentence he must be taken after the do_that() statement. That sounds like sexp-based navigation, then. > python-nav-{backward,forward}-sentence that would navigate blocks of code. I don't think "sentence" is a good word choice since there is no accepted meaning of a "sentence" in the context of python code (or code in general), AFAIK. If you want to bind these commands to the same keys as for/backward-sentence, that's fine, but better give them names related to what they do, rather than to to this key-mapping choice. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 13 22:22:40 2012 Received: (at submit) by debbugs.gnu.org; 14 Jul 2012 02:22:41 +0000 Received: from localhost ([127.0.0.1]:39982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sps0G-0002rd-Mh for submit@debbugs.gnu.org; Fri, 13 Jul 2012 22:22:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44372) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sps0F-0002rX-9X for submit@debbugs.gnu.org; Fri, 13 Jul 2012 22:22:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Spruj-0007kR-Ef for submit@debbugs.gnu.org; Fri, 13 Jul 2012 22:16:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,RCVD_NUMERIC_HELO autolearn=ham version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:41720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Spruj-0007kN-BP for submit@debbugs.gnu.org; Fri, 13 Jul 2012 22:16:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sprui-0002Dz-LC for bug-gnu-emacs@gnu.org; Fri, 13 Jul 2012 22:16:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Spruh-0007kD-Op for bug-gnu-emacs@gnu.org; Fri, 13 Jul 2012 22:16:56 -0400 Received: from plane.gmane.org ([80.91.229.3]:56175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Spruh-0007k9-IF for bug-gnu-emacs@gnu.org; Fri, 13 Jul 2012 22:16:55 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Spruf-0002td-MR for bug-gnu-emacs@gnu.org; Sat, 14 Jul 2012 04:16:53 +0200 Received: from 123.114.39.62 ([123.114.39.62]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Jul 2012 04:16:53 +0200 Received: from sdl.web by 123.114.39.62 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Jul 2012 04:16:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Leo Subject: Re: bug#11899: 24.1.50; Weird names and unhelpful docstrings for some python function Date: Sat, 14 Jul 2012 10:16:41 +0800 Lines: 14 Message-ID: References: <87y5mogsnq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 123.114.39.62 Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (Mac OS X 10.6.8) Cancel-Lock: sha1:7FSwFIfBzEF8EYvqTCmRWPztLl4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.7 (-----) On 2012-07-13 13:02 +0800, Chong Yidong wrote: > For consistency with the rest of the Emacs code base, I suggest dropping > the `nav', since other modes don't use that naming convention. As for > the bug report, I don't have an opinion on whether it should be > `python-sentence-start' or `python-statement-start'. If the former, it > would be nice if the docstring explains what "sentence" means in the > Python context. In cc-mode: M-a runs the command c-beginning-of-statement M-e runs the command c-end-of-statement Leo From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 16 09:28:21 2012 Received: (at 11899) by debbugs.gnu.org; 16 Jul 2012 13:28:21 +0000 Received: from localhost ([127.0.0.1]:43925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SqlLY-0003iY-De for submit@debbugs.gnu.org; Mon, 16 Jul 2012 09:28:21 -0400 Received: from mail-yw0-f44.google.com ([209.85.213.44]:33433) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SqlLT-0003iN-1V for 11899@debbugs.gnu.org; Mon, 16 Jul 2012 09:28:17 -0400 Received: by yhq56 with SMTP id 56so5142800yhq.3 for <11899@debbugs.gnu.org>; Mon, 16 Jul 2012 06:22:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=XebDL1rHC3wW/jwigty0Ktb23JQ03OkHJZVdyTxf6lE=; b=Vks5rBtwqfc5FoKUnQYYOziD193nuYhzwmERaofSZ6bDMNZSVUtvz3ebdbdPunIu9B aMza7WC3muw/Jl6xjUGWB0wR/1eMy8Qyhm5zaD/NxF42QJBqReCOgrfToPrW0NdHNuZX eNG+mszBBwGf5S9HmIJ1TKjezINgBqhO44nthilmW1IaIPREEF7Ae9ddSoW835Y57Y46 yuTlDinHc7AjnxZuMyrvxPjRXQ8l7K7QpWk0PY57GOMDiz1GnmfAgc4eRWtPU2gl6Sdh PBJM0piwf0lMb9RB/s2IWV7LT6DrsRYMdwsSGEG0AO82KZWUWUlRZ/CCXeqIG5QiYU6O bRtg== Received: by 10.236.170.36 with SMTP id o24mr9422040yhl.40.1342444938970; Mon, 16 Jul 2012 06:22:18 -0700 (PDT) Received: from [192.168.1.136] ([190.18.83.52]) by mx.google.com with ESMTPS id s42sm3754253yhg.7.2012.07.16.06.22.17 (version=SSLv3 cipher=OTHER); Mon, 16 Jul 2012 06:22:18 -0700 (PDT) Message-ID: <50041587.5000709@anue.biz> Date: Mon, 16 Jul 2012 10:22:15 -0300 From: =?ISO-8859-1?Q?Fabi=E1n_Ezequiel_Gallina?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120616 Thunderbird/13.0.1 MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#11899: 24.1.50; Weird names and unhelpful docstrings for some python function References: <4FFCD368.6090603@anue.biz> <4FFF99D6.6040909@anue.biz> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQm5aBGrLeY5zGygb8Yk538Bv/YR1kTjR8Tz37Z/LuP//jqs8eOhbTPqD+wltFplB4UhqDHA X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11899 Cc: Ivan Andrus , 11899@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 07/13/2012 09:20 AM, Stefan Monnier wrote: >> If something: >> do_this() >> do_that() >> If the pointer is at the start of the if statement, and the user issues >> python-nav-forward-sentence he must be taken after the do_that() statement. > That sounds like sexp-based navigation, then. > >> python-nav-{backward,forward}-sentence that would navigate blocks of code. > I don't think "sentence" is a good word choice since there is no > accepted meaning of a "sentence" in the context of python code (or code > in general), AFAIK. > > If you want to bind these commands to the same keys as > for/backward-sentence, that's fine, but better give them names related > to what they do, rather than to to this key-mapping choice. > > > Stefan I just pushed some new navigation commands with proper documentation and names. Also there's a specialized forward-sexp-function included. All of this is included in revno 109105. Regards, -- Fabián E. Gallina Co-Founder of Anue Skype: caffeineGalli http://www.anue.biz/ From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 17 07:14:39 2012 Received: (at 11899) by debbugs.gnu.org; 17 Jul 2012 11:14:40 +0000 Received: from localhost ([127.0.0.1]:45488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sr5jf-0003Ay-UK for submit@debbugs.gnu.org; Tue, 17 Jul 2012 07:14:37 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:39835) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sr5jb-0003Ao-O1 for 11899@debbugs.gnu.org; Tue, 17 Jul 2012 07:14:33 -0400 Received: by bkty7 with SMTP id y7so178216bkt.3 for <11899@debbugs.gnu.org>; Tue, 17 Jul 2012 04:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=4V2B1JG55srxeYGDcnSXSrQ1EF5xcQy2BzaUbQHzVeE=; b=diAJAtpK4GIa9OIHaksAV+wSSIjwtwNzJdvBHJdGI986uTkfzjOMLEhg00b85V4jwY PAY1n1HgNTRHaMfD2mBSiqtAavNTznmxz35cdsfDu9ZWr/MWjSsc1PWdRH/pKpmFlDXu sR28cxhWEYM+pnRSLcAP4J2IRgQ8fufDZfabtsL5n2QYcTadHcnu9sebvZi2J+xF7DY1 9qMeA/pfTxmsvuDjsCEv5j+0xdlP8Ozb+WALY3PE1Qo5tA/a81Ye5+LQNPBDNO4s0Sz2 dyib/796ZrMHbB6Br95H/Tf4LfNVaX6CisCyXq+AIme043q7UaUd/FFWJJX72OzFR3Sy T9sw== Received: by 10.205.123.134 with SMTP id gk6mr929540bkc.3.1342523311258; Tue, 17 Jul 2012 04:08:31 -0700 (PDT) Received: from [172.16.52.145] ([193.225.200.92]) by mx.google.com with ESMTPS id he8sm9701370bkc.3.2012.07.17.04.08.30 (version=SSLv3 cipher=OTHER); Tue, 17 Jul 2012 04:08:30 -0700 (PDT) Subject: Re: bug#11899: 24.1.50; Weird names and unhelpful docstrings for some python function Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 From: Ivan Andrus In-Reply-To: <50041587.5000709@anue.biz> Date: Tue, 17 Jul 2012 13:08:29 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <5D177AF4-68D7-47B1-BBD3-B114B2C1240A@gmail.com> References: <4FFCD368.6090603@anue.biz> <4FFF99D6.6040909@anue.biz> <50041587.5000709@anue.biz> To: =?iso-8859-1?Q?Fabi=E1n_Ezequiel_Gallina?= X-Mailer: Apple Mail (2.1084) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11899 Cc: Stefan Monnier , 11899@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On Jul 16, 2012, at 3:22 PM, Fabi=E1n Ezequiel Gallina wrote: > On 07/13/2012 09:20 AM, Stefan Monnier wrote: >>> If something: >>> do_this() >>> do_that() >>> If the pointer is at the start of the if statement, and the user = issues >>> python-nav-forward-sentence he must be taken after the do_that() = statement. >> That sounds like sexp-based navigation, then. >>=20 >>> python-nav-{backward,forward}-sentence that would navigate blocks of = code. >> I don't think "sentence" is a good word choice since there is no >> accepted meaning of a "sentence" in the context of python code (or = code >> in general), AFAIK. >>=20 >> If you want to bind these commands to the same keys as >> for/backward-sentence, that's fine, but better give them names = related >> to what they do, rather than to to this key-mapping choice. >>=20 >>=20 >> Stefan > I just pushed some new navigation commands with proper documentation = and names. Also there's a specialized forward-sexp-function included. >=20 > All of this is included in revno 109105. Excellent. Thanks. -Ivan= From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 17 14:10:50 2012 Received: (at 11899) by debbugs.gnu.org; 17 Jul 2012 18:10:50 +0000 Received: from localhost ([127.0.0.1]:46499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrCEU-0000wb-CF for submit@debbugs.gnu.org; Tue, 17 Jul 2012 14:10:50 -0400 Received: from mail-yx0-f172.google.com ([209.85.213.172]:44086) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrCER-0000wT-Ui for 11899@debbugs.gnu.org; Tue, 17 Jul 2012 14:10:48 -0400 Received: by yenq13 with SMTP id q13so677732yen.3 for <11899@debbugs.gnu.org>; Tue, 17 Jul 2012 11:04:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=got1gTbxyWukK0/PKAXOzOQWageBRGJFjxLkoCrnu9k=; b=Xh/SBV14erabVlnybxqjr9DyRwf+zONswTMCiolfwM5nSOgR79l8Rx3HxKu69DlRVb pzzRa3GymzstNzpLE3NsNdiDBJAHzbyWNGqX8Ut1yItB64beNsBqw0wAqqht7EdiZpm3 hiBk5+oWjAs7U4U3Z1K4t2nLn0CUmDGXFNAbmBdKoU+yoUS2xUvFyaJaaNqP/9MC6v3d OVhKfYZTA5tEDidHUG1ZfvX0//NrGhBF6pUTU4UxtFy2zLf21aVkihRQQj2ZCsqerptA 1LZYT2I0vgtGwVrXHBu3e80U38UA1mdcnRmNJ2MoBGoecp9+o/9sYM5ioX7I9nfWhikR uCfw== Received: by 10.236.190.163 with SMTP id e23mr2709783yhn.36.1342548286264; Tue, 17 Jul 2012 11:04:46 -0700 (PDT) Received: from [192.168.1.136] ([190.18.83.52]) by mx.google.com with ESMTPS id j39sm17534171ani.3.2012.07.17.11.04.44 (version=SSLv3 cipher=OTHER); Tue, 17 Jul 2012 11:04:45 -0700 (PDT) Message-ID: <5005A93A.9040109@anue.biz> Date: Tue, 17 Jul 2012 15:04:42 -0300 From: =?ISO-8859-1?Q?Fabi=E1n_Ezequiel_Gallina?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120616 Thunderbird/13.0.1 MIME-Version: 1.0 To: Ivan Andrus Subject: Re: bug#11899: 24.1.50; Weird names and unhelpful docstrings for some python function References: <4FFCD368.6090603@anue.biz> <4FFF99D6.6040909@anue.biz> <50041587.5000709@anue.biz> <5D177AF4-68D7-47B1-BBD3-B114B2C1240A@gmail.com> In-Reply-To: <5D177AF4-68D7-47B1-BBD3-B114B2C1240A@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQkEYRhEvkZopmCzq05TNpaLnrSafwaBhEjOTyfLP/o+mQfAPID6aAHLfjvVcJVXBQRSfTJ4 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11899 Cc: Stefan Monnier , 11899@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 07/17/2012 08:08 AM, Ivan Andrus wrote: > Excellent. Thanks. -Ivan I just double-checked things and did a couple of final renames. Check revno 109127. Regards, -- Fabián E. Gallina Co-Founder of Anue http://www.anue.biz/ From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 17 14:11:28 2012 Received: (at control) by debbugs.gnu.org; 17 Jul 2012 18:11:28 +0000 Received: from localhost ([127.0.0.1]:46503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrCF5-0000xm-TE for submit@debbugs.gnu.org; Tue, 17 Jul 2012 14:11:28 -0400 Received: from mail-yw0-f44.google.com ([209.85.213.44]:60348) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrCF3-0000xd-QC for control@debbugs.gnu.org; Tue, 17 Jul 2012 14:11:26 -0400 Received: by yhq56 with SMTP id 56so678208yhq.3 for ; Tue, 17 Jul 2012 11:05:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:content-type :content-transfer-encoding:x-gm-message-state; bh=FsPt8bd0G7RcKDfLfdGph1l34kNic/B7ElAnU7AjiwI=; b=N68o+ozrmR2Da/UZRiRW1FIZhIaODl+MAKOBvUqwQ/r/nz6SV4mUdln+Pnf9mCU1vv 9cGu0tm6OpOj6topIMD9W30GE2F2VeNldoml2T1FncZe+/foxzLbILsSyPOwNYliceLQ ImPJIiSjZcyXKa9ONz8aPPSKm/5DwVQbsWge8RwyZ9m6Zb1KfWGfrd3QET4YFf+bApVy yPN7C1jQzbQUyeYZaNoKk82mdx0oW3Xtm7Ti5ghx9xIC3IGFRAB9bUdqN57V2tDG8XMJ wtM8plgT80Iv5oJay1Aay9SQQL3C1gq6Xatqu71NNj535PvESmrdhQsqWX+jFt3if6Ra dV9w== Received: by 10.101.134.19 with SMTP id l19mr841032ann.57.1342548324261; Tue, 17 Jul 2012 11:05:24 -0700 (PDT) Received: from [192.168.1.136] ([190.18.83.52]) by mx.google.com with ESMTPS id v9sm17517442anj.14.2012.07.17.11.05.21 (version=SSLv3 cipher=OTHER); Tue, 17 Jul 2012 11:05:22 -0700 (PDT) Message-ID: <5005A960.2070808@anue.biz> Date: Tue, 17 Jul 2012 15:05:20 -0300 From: =?ISO-8859-1?Q?Fabi=E1n_Ezequiel_Gallina?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120616 Thunderbird/13.0.1 MIME-Version: 1.0 To: control@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkhyTyTbMMlnc5+5t6xD6FtC/35kAxXaCXyMgbYDeSvFpGMUKpdDiFxqQ98Y81Pf44yVvKQ X-Spam-Score: 2.2 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close #11899 [...] Content analysis details: (2.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.0 GOT_NO_SUBJECT No real subject -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.44 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 1.8 MISSING_SUBJECT Missing Subject: header X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 2.2 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close #11899 [...] Content analysis details: (2.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.44 listed in list.dnswl.org] 3.0 GOT_NO_SUBJECT No real subject -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 1.8 MISSING_SUBJECT Missing Subject: header 0.0 TVD_SPACE_RATIO TVD_SPACE_RATIO close #11899 From unknown Sat Jun 21 10:28:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 15 Aug 2012 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator