From unknown Sun Jun 15 13:01:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11910: 24.1.50; Missing functions in new python.el Resent-From: Ivan Andrus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Jul 2012 13:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11910 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11910@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.134201176226250 (code B ref -1); Wed, 11 Jul 2012 13:03:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Jul 2012 13:02:42 +0000 Received: from localhost ([127.0.0.1]:33255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SowYz-0006pL-4c for submit@debbugs.gnu.org; Wed, 11 Jul 2012 09:02:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51443) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SowYt-0006pA-Rs for submit@debbugs.gnu.org; Wed, 11 Jul 2012 09:02:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SowTW-0006le-KV for submit@debbugs.gnu.org; Wed, 11 Jul 2012 08:57:09 -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]:40430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SowTW-0006lV-EQ for submit@debbugs.gnu.org; Wed, 11 Jul 2012 08:57:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SowTN-0003HR-8v for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2012 08:57:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SowTF-0006he-FC for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2012 08:56:52 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:37083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SowTF-0006h7-1Z for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2012 08:56:45 -0400 Received: by bkcjc3 with SMTP id jc3so946874bkc.0 for ; Wed, 11 Jul 2012 05:56:42 -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=N67YZojWcFfo/QkZEhTM/r+P5mt1iISrQU8RFOY//mI=; b=LdVxnUdlGP8tVOSJBOHbW+G8NCQwPPpbXgzRQk/Jv27G9Z7yakJK/xluHrNnITXtOn jYhI1/85BjnBCuLYhYkMpm3cGhTOcdmtXyo7s7udvkfGibfH2oRBNJWkRoFjw+kRxYax vuKWPFqZZ469j0MPCrazuvikdvLy5+lr3h2iKVAGdavVmrGok18Hetv642eYrC4RzONR oT0x0UiE73KL7fyQJynJsciDDD+/+n2y6FEuUsjWZX5lPdmPzs+DTX8qfUzkI4E4CRoP Lkn0fk0p33iBlO88l4o7AVqV1pZD+jTDIX3c+xVW/KSgmWBGlryOefwUhCS53MxsdyG9 BxxQ== Received: by 10.204.152.27 with SMTP id e27mr23516007bkw.56.1342011402552; Wed, 11 Jul 2012 05:56:42 -0700 (PDT) Received: from [172.16.52.145] ([193.225.200.92]) by mx.google.com with ESMTPS id ht18sm1104937bkc.16.2012.07.11.05.56.41 (version=SSLv3 cipher=OTHER); Wed, 11 Jul 2012 05:56:41 -0700 (PDT) From: Ivan Andrus Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Wed, 11 Jul 2012 14:56:40 +0200 Message-Id: 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-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 (------) I'm trying to get sage-mode working with the new python.el [1]. However, the following functions are missing: python-beginning-of-statement python-beginning-of-block python-end-of-block python-open-block-statement-p python-comment-line-p python-beginning-of-string python-in-string/comment There may be very good reasons why they are not included and that's fine. However, I would like to know which will be included or have similar functions already. Aliases with deprecation warnings would be great. I originally filed this bug on github [2] but have now closed that issue with a note about this bug report. FWIW, I took the code for these from the old python.el and made some minor modifications for (temporary) inclusion in sage-mode. I think they are working, though I haven't tested extensively. -Ivan [1] = https://bitbucket.org/gvol/sage-mode/issue/1/support-pythonel-by-fgallina [2] https://github.com/fgallina/python.el/issues/89 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: Python 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-y TAB C-M-SPC C-M-l C-M-l M-( C-/ C-x C-x M-e C-l C-l _ C-l C-t C-o C-o C-o C-o C-o C-M-j C-M-k C-M-k C-o C-o C-o C-o C-e C-- C-1 M-e M-q C-x C-s C-a C-M-k C-y TAB C-e C-j C-y SPC i n SPC t C-SPC C-M-j e l e m e n t s SPC o f SPC M-q C-c C-p C-p q M-W M-W M-w M-w M-w M-w C-x C-f l i b C-s C-k M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e TAB C-e C-u C-u M-e M-e M-e TAB TAB M-e M-a M-a M-a M-a M-a M-a M-a M-a M-a M-a M-a M-a M-a M-a M-a M-a M-a M-a M-a M-a M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-a M-a M-a M-a M-a M-a M-a M-a M-a M-a M-a M-a M-a M-a TAB M-a M-e M-e M-a M-a M-a M-a M-a C-h k M-a C-e M-a M-e M-e M-a M-a M-e M-e M-a C-d M-e M-e M-a M-a M-a TAB TAB M-k M-k M-k M-k C-y C-3 C-3 C-x b C-y M-a M-a M-a M-e M-a TAB M-a M-e M-e M-a M-a TAB TAB M-k M-k M-k M-k C-y TAB TAB TAB C-SPC M-a M-e M-e M-a M-a M-a M-e M-e M-a M-a M-a M-a M-a TAB M-e M-e M-e M-a M-a C-h k M-a C-k C-k C-k C-k C-k C-M-. C-M-k C-e M-e M-e M-a M-a M-e M-e M-a C-SPC M-a M-a M-e M-a M-a M-x r e p o Recent messages: Type C-x 1 to delete the help window. Error during redisplay: (wrong-type-argument arrayp nil) [25 times] /Users/gvol/.emacs-uptimes Error during redisplay: (wrong-type-argument arrayp nil) [12 times] Mark set Error during redisplay: (wrong-type-argument arrayp nil) [7 times] Can't guess python-indent-offset, using defaults: 4 Auto-saving... Mark set [2 times] Type C-x 1 to delete the help window. byte-code: Buffer is read-only: # 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: (latexenc texmathp calc-menu calc-ext calc calc-loaddefs calc-macs shell-toggle two-column epa-file epa epg epg-config url-util url-handlers vc-git vc-dir ewoc vcursor sage-compat mailalias mailclient browse-url 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 unknown Sun Jun 15 13:01:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11910: 24.1.50; Missing functions in new python.el References: In-Reply-To: Resent-From: =?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Jul 2012 20:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11910 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11910@debbugs.gnu.org Received: via spool by 11910-submit@debbugs.gnu.org id=B11910.134255789624181 (code B ref 11910); Tue, 17 Jul 2012 20:45:02 +0000 Received: (at 11910) by debbugs.gnu.org; 17 Jul 2012 20:44:56 +0000 Received: from localhost ([127.0.0.1]:46824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrEdc-0006Hw-3y for submit@debbugs.gnu.org; Tue, 17 Jul 2012 16:44:56 -0400 Received: from mail-yx0-f172.google.com ([209.85.213.172]:46803) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrEdY-0006Ho-U1 for 11910@debbugs.gnu.org; Tue, 17 Jul 2012 16:44:53 -0400 Received: by yenq13 with SMTP id q13so857852yen.3 for <11910@debbugs.gnu.org>; Tue, 17 Jul 2012 13:38:50 -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:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=t8dpnn/BeK2GYPgpPkF03r/LdtjgCcVv8cNacQOBSMA=; b=iXQzWiYgekVPywTWOvDdHuepN1x3wBSA+Uq6/EENOrHdF2+0nsriYtS4pjpaQlExJ3 I9cQuI0+hXeuz345ewGucASDYhSPH3kYK1xFyoPpsS27EAbkYVnBqujRTammiuITJpct G34tiiW+zUiPgB66u9a1qNYLgQWST6t2SZTcKQHBIE5hsejmzIg9yRxHnSyrTvJ3e8KN S2erWjNmv1FUnu9X+V+RZltTj3PDn6lUxsBBEXRGkEYZpGzjZKS5hWB2lM78MUNKa6yM fl5IHswj/YL8GBBUU7DQN/4D3rv9F5SctRePgzW5pXg9Q39BzXsseAiv1ZTXNF8jflxf tP6w== Received: by 10.236.46.229 with SMTP id r65mr3240356yhb.13.1342557530791; Tue, 17 Jul 2012 13:38:50 -0700 (PDT) Received: from [192.168.1.136] ([190.18.83.52]) by mx.google.com with ESMTPS id u3sm14626852anl.9.2012.07.17.13.38.49 (version=SSLv3 cipher=OTHER); Tue, 17 Jul 2012 13:38:50 -0700 (PDT) Message-ID: <5005CD57.90305@anue.biz> Date: Tue, 17 Jul 2012 17:38:47 -0300 From: =?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120616 Thunderbird/13.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQmq2QI7AVB8JVtsdyQh0a+8aYvLqyTSKR/PYNH2iDm3ttHN8YMbEkdt7fF7xYiiPxEHj0Ib X-Spam-Score: -2.6 (--) 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 (--) Here are some replacements you can use with current trunk: * python-beginning-of-statement: python-nav-beginning-of-statement * python-end-of-statement: python-nav-end-of-statement * python-beginning-of-block: python-beginning-of-block * python-end-of-block: python-nav-end-of-block * python-comment-line-p: python-info-current-line-comment-p In revno 109130 I included this two: * python-open-block-statement-p: python-info-beginning-of-block-statement-p * python-in-string/comment: python-info-ppss-comment-or-string-p For python-beginning-of-string I don't feel it is necessary some replacement, you can achieve it with something like this: (let ((string-starting-pos (python-info-ppss-context 'string))) (and string-starting-pos (goto-char string-starting-pos))) Or a reduced version: (goto-char (or (python-info-ppss-context 'string) (point))) Regards, Fabián. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 17 16:46:17 2012 Received: (at control) by debbugs.gnu.org; 17 Jul 2012 20:46:17 +0000 Received: from localhost ([127.0.0.1]:46828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrEeu-0006KN-RQ for submit@debbugs.gnu.org; Tue, 17 Jul 2012 16:46:16 -0400 Received: from mail-yw0-f44.google.com ([209.85.213.44]:63170) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrEet-0006KH-AT for control@debbugs.gnu.org; Tue, 17 Jul 2012 16:46:15 -0400 Received: by yhq56 with SMTP id 56so859508yhq.3 for ; Tue, 17 Jul 2012 13:40:13 -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=X8bcpv7ODAdt6ZRQ/8bR2hSmha5yutisnOB+m3OmgXA=; b=LHRU+7VD6IlMf0x4nMdny688h7Gm9JTY28laJGd2Z6B+UZIh5xp3bNpCf6s39v31oU vwf6nr3Es6H7hJAJA8T9kjeIhHKeRgr31gmqZNTky7+ji2ZLYzyPBR+GNelzqEx841Nn hvE9ptgnyLG0REvMvCfCL5sCg+0QfJeejVJcF+1fEhUi3CPj3EY4TgxFtKTm63u+TvWD BJgMfYMLGEhkhXCBHqQ6oqyKQhwRKhCwGjDb5LXEt11y/FKcHwt42JJr6XGCUZG4HjRd 4vluAwd3uDqwRKCkO8nhDbmwNdpagG/Jq5zV96ogwcVh5XpTLzAT7YjSdwLsTp2YYEXW kYGg== Received: by 10.101.28.33 with SMTP id f33mr75724anj.76.1342557613124; Tue, 17 Jul 2012 13:40:13 -0700 (PDT) Received: from [192.168.1.136] ([190.18.83.52]) by mx.google.com with ESMTPS id i65sm36429598yhb.3.2012.07.17.13.40.11 (version=SSLv3 cipher=OTHER); Tue, 17 Jul 2012 13:40:12 -0700 (PDT) Message-ID: <5005CDA9.6090100@anue.biz> Date: Tue, 17 Jul 2012 17:40:09 -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: ALoCoQn/S/PYLFP0c494qR7kOgFpeHLNjw03+jVrr1NTahy1/5wn/cBdDyAXmTfhY+anx3QvPpJR 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 #11910 [...] Content analysis details: (2.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.0 GOT_NO_SUBJECT No real subject -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -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.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 #11910 [...] 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 #11910 From unknown Sun Jun 15 13:01:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11910: 24.1.50; Missing functions in new python.el Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Jul 2012 21:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11910 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina Cc: 11910@debbugs.gnu.org Received: via spool by 11910-submit@debbugs.gnu.org id=B11910.134256128632393 (code B ref 11910); Tue, 17 Jul 2012 21:42:02 +0000 Received: (at 11910) by debbugs.gnu.org; 17 Jul 2012 21:41:26 +0000 Received: from localhost ([127.0.0.1]:46897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrFWH-0008QP-RJ for submit@debbugs.gnu.org; Tue, 17 Jul 2012 17:41:26 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:59747) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrFWF-0008QH-AF for 11910@debbugs.gnu.org; Tue, 17 Jul 2012 17:41:23 -0400 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q6HLZD1e000544; Tue, 17 Jul 2012 17:35:17 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 38038AE508; Tue, 17 Jul 2012 17:35:11 -0400 (EDT) From: Stefan Monnier Message-ID: References: <5005CD57.90305@anue.biz> Date: Tue, 17 Jul 2012 17:35:11 -0400 In-Reply-To: <5005CD57.90305@anue.biz> ("=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina"'s message of "Tue, 17 Jul 2012 17:38:47 -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 RV4282=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4282> : streams <786299> : uri <1167898> X-Spam-Score: -3.5 (---) 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 (---) > (let ((string-starting-pos (python-info-ppss-context 'string))) > (and string-starting-pos > (goto-char string-starting-pos))) Aka (let ((ppss (syntax-ppss))) (if (nth 3 ppss) (goto-char (nth 8 ppss)))) which should work for most major modes. Stefan