unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#31270: 26.1; Emacs 26.1 RC1 -- flymake-err-info is no longer available
@ 2018-04-26  5:35 Da Zhang
  2018-04-26  9:25 ` João Távora
  0 siblings, 1 reply; 7+ messages in thread
From: Da Zhang @ 2018-04-26  5:35 UTC (permalink / raw)
  To: 31270





Hello --

I am a long term Emacs user and I use flymake together with flymake-cursor on a daily basis.

Starting Emacs 26.1, I noticed that flyamke was redesigned and no longer has the var flymake-err-info that contains the error info reported by the backend syntax checker.

This makes flymake-cursor and code like the following not work:

(defun elpy-flymake-error-at-point ()
   "Return the flymake error at point, or nil if there is none."
   (when (boundp 'flymake-err-info)
     (let* ((lineno (line-number-at-pos))
            (err-info (car (flymake-find-err-info flymake-err-info
                                                  lineno))))
       (when err-info
         (mapconcat #'flymake-ler-text
                    err-info
                    ", ")))))

I believe this is a potential issue and wonder if someone could direct me to any alternatives to flymake-err-info in the newly designed flyamke.

Thanks.

Dave




In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32)
  of 2018-04-10 built on CIRROCUMULUS
Repository revision: c267421647510319d2a70554e42f0d1c394dba0a
Windowing system distributor 'Microsoft Corp.', version 10.0.16299
Recent messages:
Saving file c:/Users/Da/OneDrive/work/Projects/BIDMC_CT_QA_meetings/20180427_Q2_Cardivascular_CT_protocols/RADSR/run_analysis.py...
Wrote c:/Users/Da/OneDrive/work/Projects/BIDMC_CT_QA_meetings/20180427_Q2_Cardivascular_CT_protocols/RADSR/run_analysis.py
(No changes need to be saved)
Mark set
Quit
Mark saved where search started
Saving file c:/Users/Da/OneDrive/work/Projects/BIDMC_CT_QA_meetings/20180427_Q2_Cardivascular_CT_protocols/RADSR/run_analysis.py...
Wrote c:/Users/Da/OneDrive/work/Projects/BIDMC_CT_QA_meetings/20180427_Q2_Cardivascular_CT_protocols/RADSR/run_analysis.py
Quit
Mark saved where search started

Configured using:
  'configure --without-dbus --host=x86_64-w64-mingw32
  --without-compress-install 'CFLAGS=-O2 -static -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS THREADS LCMS2

Important settings:
   value of $LANG: ENU
   locale-coding-system: utf-8

Major mode: Python

Minor modes in effect:
   spaceline-helm-mode: t
   python-cell-mode: t
   sphinx-doc-mode: t
   indent-guide-mode: t
   desktop-save-mode: t
   recentf-mode: t
   global-company-mode: t
   company-mode: t
   elpy-mode: t
   diff-auto-refine-mode: t
   projectile-mode: t
   ace-window-display-mode: t
   winner-mode: t
   shell-dirtrack-mode: t
   outline-minor-mode: t
   async-bytecomp-package-mode: t
   counsel-mode: t
   ivy-mode: t
   which-key-mode: t
   yas-minor-mode: t
   show-paren-mode: t
   smartparens-global-mode: t
   smartparens-mode: t
   ido-everywhere: t
   tabbar-mwheel-mode: t
   tabbar-mode: t
   flymake-mode: t
   TeX-PDF-mode: t
   beacon-mode: t
   global-undo-tree-mode: t
   undo-tree-mode: t
   global-auto-revert-mode: t
   display-time-mode: t
   auto-image-file-mode: t
   which-function-mode: t
   delete-selection-mode: t
   global-highlight-parentheses-mode: t
   highlight-parentheses-mode: t
   override-global-mode: t
   tooltip-mode: t
   global-eldoc-mode: t
   eldoc-mode: t
   electric-indent-mode: t
   mouse-wheel-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
   abbrev-mode: t

Load-path shadows:
c:/home/zhangda/.emacs.d/site-lisp/org-contrib/org-bullets hides c:/home/zhangda/.emacs.d/elpa/org-bullets-20171127.526/org-bullets
c:/home/zhangda/.emacs.d/site-lisp/org-contrib/htmlize hides c:/home/zhangda/.emacs.d/elpa/htmlize-20180412.1244/htmlize
c:/home/zhangda/.emacs.d/lisp/custom hides c:/Emacs/share/emacs/26.1/lisp/custom
c:/home/zhangda/.emacs.d/elpa/org-20180423/ox hides c:/Emacs/share/emacs/26.1/lisp/org/ox
c:/home/zhangda/.emacs.d/elpa/org-20180423/ox-texinfo hides c:/Emacs/share/emacs/26.1/lisp/org/ox-texinfo
c:/home/zhangda/.emacs.d/elpa/org-20180423/ox-publish hides c:/Emacs/share/emacs/26.1/lisp/org/ox-publish
c:/home/zhangda/.emacs.d/elpa/org-20180423/ox-org hides c:/Emacs/share/emacs/26.1/lisp/org/ox-org
c:/home/zhangda/.emacs.d/elpa/org-20180423/ox-odt hides c:/Emacs/share/emacs/26.1/lisp/org/ox-odt
c:/home/zhangda/.emacs.d/elpa/org-20180423/ox-md hides c:/Emacs/share/emacs/26.1/lisp/org/ox-md
c:/home/zhangda/.emacs.d/elpa/org-20180423/ox-man hides c:/Emacs/share/emacs/26.1/lisp/org/ox-man
c:/home/zhangda/.emacs.d/elpa/org-20180423/ox-latex hides c:/Emacs/share/emacs/26.1/lisp/org/ox-latex
c:/home/zhangda/.emacs.d/elpa/org-20180423/ox-icalendar hides c:/Emacs/share/emacs/26.1/lisp/org/ox-icalendar
c:/home/zhangda/.emacs.d/elpa/org-20180423/ox-html hides c:/Emacs/share/emacs/26.1/lisp/org/ox-html
c:/home/zhangda/.emacs.d/elpa/org-20180423/ox-beamer hides c:/Emacs/share/emacs/26.1/lisp/org/ox-beamer
c:/home/zhangda/.emacs.d/elpa/org-20180423/ox-ascii hides c:/Emacs/share/emacs/26.1/lisp/org/ox-ascii
c:/home/zhangda/.emacs.d/elpa/org-20180423/org hides c:/Emacs/share/emacs/26.1/lisp/org/org
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-w3m hides c:/Emacs/share/emacs/26.1/lisp/org/org-w3m
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-version hides c:/Emacs/share/emacs/26.1/lisp/org/org-version
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-timer hides c:/Emacs/share/emacs/26.1/lisp/org/org-timer
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-table hides c:/Emacs/share/emacs/26.1/lisp/org/org-table
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-src hides c:/Emacs/share/emacs/26.1/lisp/org/org-src
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-rmail hides c:/Emacs/share/emacs/26.1/lisp/org/org-rmail
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-protocol hides c:/Emacs/share/emacs/26.1/lisp/org/org-protocol
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-plot hides c:/Emacs/share/emacs/26.1/lisp/org/org-plot
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-pcomplete hides c:/Emacs/share/emacs/26.1/lisp/org/org-pcomplete
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-mouse hides c:/Emacs/share/emacs/26.1/lisp/org/org-mouse
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-mobile hides c:/Emacs/share/emacs/26.1/lisp/org/org-mobile
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-mhe hides c:/Emacs/share/emacs/26.1/lisp/org/org-mhe
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-macs hides c:/Emacs/share/emacs/26.1/lisp/org/org-macs
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-macro hides c:/Emacs/share/emacs/26.1/lisp/org/org-macro
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-loaddefs hides c:/Emacs/share/emacs/26.1/lisp/org/org-loaddefs
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-list hides c:/Emacs/share/emacs/26.1/lisp/org/org-list
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-lint hides c:/Emacs/share/emacs/26.1/lisp/org/org-lint
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-irc hides c:/Emacs/share/emacs/26.1/lisp/org/org-irc
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-install hides c:/Emacs/share/emacs/26.1/lisp/org/org-install
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-inlinetask hides c:/Emacs/share/emacs/26.1/lisp/org/org-inlinetask
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-info hides c:/Emacs/share/emacs/26.1/lisp/org/org-info
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-indent hides c:/Emacs/share/emacs/26.1/lisp/org/org-indent
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-id hides c:/Emacs/share/emacs/26.1/lisp/org/org-id
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-habit hides c:/Emacs/share/emacs/26.1/lisp/org/org-habit
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-gnus hides c:/Emacs/share/emacs/26.1/lisp/org/org-gnus
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-footnote hides c:/Emacs/share/emacs/26.1/lisp/org/org-footnote
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-feed hides c:/Emacs/share/emacs/26.1/lisp/org/org-feed
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-faces hides c:/Emacs/share/emacs/26.1/lisp/org/org-faces
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-eww hides c:/Emacs/share/emacs/26.1/lisp/org/org-eww
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-eshell hides c:/Emacs/share/emacs/26.1/lisp/org/org-eshell
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-entities hides c:/Emacs/share/emacs/26.1/lisp/org/org-entities
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-element hides c:/Emacs/share/emacs/26.1/lisp/org/org-element
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-duration hides c:/Emacs/share/emacs/26.1/lisp/org/org-duration
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-docview hides c:/Emacs/share/emacs/26.1/lisp/org/org-docview
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-datetree hides c:/Emacs/share/emacs/26.1/lisp/org/org-datetree
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-ctags hides c:/Emacs/share/emacs/26.1/lisp/org/org-ctags
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-crypt hides c:/Emacs/share/emacs/26.1/lisp/org/org-crypt
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-compat hides c:/Emacs/share/emacs/26.1/lisp/org/org-compat
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-colview hides c:/Emacs/share/emacs/26.1/lisp/org/org-colview
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-clock hides c:/Emacs/share/emacs/26.1/lisp/org/org-clock
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-capture hides c:/Emacs/share/emacs/26.1/lisp/org/org-capture
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-bibtex hides c:/Emacs/share/emacs/26.1/lisp/org/org-bibtex
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-bbdb hides c:/Emacs/share/emacs/26.1/lisp/org/org-bbdb
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-attach hides c:/Emacs/share/emacs/26.1/lisp/org/org-attach
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-archive hides c:/Emacs/share/emacs/26.1/lisp/org/org-archive
c:/home/zhangda/.emacs.d/elpa/org-20180423/org-agenda hides c:/Emacs/share/emacs/26.1/lisp/org/org-agenda
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob hides c:/Emacs/share/emacs/26.1/lisp/org/ob
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-vala hides c:/Emacs/share/emacs/26.1/lisp/org/ob-vala
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-tangle hides c:/Emacs/share/emacs/26.1/lisp/org/ob-tangle
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-table hides c:/Emacs/share/emacs/26.1/lisp/org/ob-table
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-stan hides c:/Emacs/share/emacs/26.1/lisp/org/ob-stan
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-sqlite hides c:/Emacs/share/emacs/26.1/lisp/org/ob-sqlite
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-sql hides c:/Emacs/share/emacs/26.1/lisp/org/ob-sql
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-shen hides c:/Emacs/share/emacs/26.1/lisp/org/ob-shen
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-shell hides c:/Emacs/share/emacs/26.1/lisp/org/ob-shell
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-sed hides c:/Emacs/share/emacs/26.1/lisp/org/ob-sed
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-screen hides c:/Emacs/share/emacs/26.1/lisp/org/ob-screen
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-scheme hides c:/Emacs/share/emacs/26.1/lisp/org/ob-scheme
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-sass hides c:/Emacs/share/emacs/26.1/lisp/org/ob-sass
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-ruby hides c:/Emacs/share/emacs/26.1/lisp/org/ob-ruby
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-ref hides c:/Emacs/share/emacs/26.1/lisp/org/ob-ref
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-R hides c:/Emacs/share/emacs/26.1/lisp/org/ob-R
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-python hides c:/Emacs/share/emacs/26.1/lisp/org/ob-python
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-processing hides c:/Emacs/share/emacs/26.1/lisp/org/ob-processing
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-plantuml hides c:/Emacs/share/emacs/26.1/lisp/org/ob-plantuml
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-picolisp hides c:/Emacs/share/emacs/26.1/lisp/org/ob-picolisp
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-perl hides c:/Emacs/share/emacs/26.1/lisp/org/ob-perl
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-org hides c:/Emacs/share/emacs/26.1/lisp/org/ob-org
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-octave hides c:/Emacs/share/emacs/26.1/lisp/org/ob-octave
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-ocaml hides c:/Emacs/share/emacs/26.1/lisp/org/ob-ocaml
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-mscgen hides c:/Emacs/share/emacs/26.1/lisp/org/ob-mscgen
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-maxima hides c:/Emacs/share/emacs/26.1/lisp/org/ob-maxima
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-matlab hides c:/Emacs/share/emacs/26.1/lisp/org/ob-matlab
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-makefile hides c:/Emacs/share/emacs/26.1/lisp/org/ob-makefile
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-lua hides c:/Emacs/share/emacs/26.1/lisp/org/ob-lua
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-lob hides c:/Emacs/share/emacs/26.1/lisp/org/ob-lob
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-lisp hides c:/Emacs/share/emacs/26.1/lisp/org/ob-lisp
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-lilypond hides c:/Emacs/share/emacs/26.1/lisp/org/ob-lilypond
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-ledger hides c:/Emacs/share/emacs/26.1/lisp/org/ob-ledger
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-latex hides c:/Emacs/share/emacs/26.1/lisp/org/ob-latex
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-keys hides c:/Emacs/share/emacs/26.1/lisp/org/ob-keys
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-js hides c:/Emacs/share/emacs/26.1/lisp/org/ob-js
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-java hides c:/Emacs/share/emacs/26.1/lisp/org/ob-java
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-J hides c:/Emacs/share/emacs/26.1/lisp/org/ob-J
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-io hides c:/Emacs/share/emacs/26.1/lisp/org/ob-io
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-hledger hides c:/Emacs/share/emacs/26.1/lisp/org/ob-hledger
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-haskell hides c:/Emacs/share/emacs/26.1/lisp/org/ob-haskell
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-groovy hides c:/Emacs/share/emacs/26.1/lisp/org/ob-groovy
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-gnuplot hides c:/Emacs/share/emacs/26.1/lisp/org/ob-gnuplot
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-fortran hides c:/Emacs/share/emacs/26.1/lisp/org/ob-fortran
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-forth hides c:/Emacs/share/emacs/26.1/lisp/org/ob-forth
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-exp hides c:/Emacs/share/emacs/26.1/lisp/org/ob-exp
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-eval hides c:/Emacs/share/emacs/26.1/lisp/org/ob-eval
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-emacs-lisp hides c:/Emacs/share/emacs/26.1/lisp/org/ob-emacs-lisp
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-ebnf hides c:/Emacs/share/emacs/26.1/lisp/org/ob-ebnf
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-dot hides c:/Emacs/share/emacs/26.1/lisp/org/ob-dot
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-ditaa hides c:/Emacs/share/emacs/26.1/lisp/org/ob-ditaa
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-css hides c:/Emacs/share/emacs/26.1/lisp/org/ob-css
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-core hides c:/Emacs/share/emacs/26.1/lisp/org/ob-core
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-coq hides c:/Emacs/share/emacs/26.1/lisp/org/ob-coq
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-comint hides c:/Emacs/share/emacs/26.1/lisp/org/ob-comint
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-clojure hides c:/Emacs/share/emacs/26.1/lisp/org/ob-clojure
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-calc hides c:/Emacs/share/emacs/26.1/lisp/org/ob-calc
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-C hides c:/Emacs/share/emacs/26.1/lisp/org/ob-C
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-awk hides c:/Emacs/share/emacs/26.1/lisp/org/ob-awk
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-asymptote hides c:/Emacs/share/emacs/26.1/lisp/org/ob-asymptote
c:/home/zhangda/.emacs.d/elpa/org-20180423/ob-abc hides c:/Emacs/share/emacs/26.1/lisp/org/ob-abc

Features:
(shadow sort mail-extr emacsbug sendmail org-ref-ivy-cite autoload
lisp-mnt tar-mode mm-archive network-stream starttls url-cache skeleton
smex org-table misearch multi-isearch colir two-column iso-transl
add-log init-benchmarking init-keybindings expand-region
text-mode-expansions cc-mode-expansions the-org-mode-expansions
python-el-fgallina-expansions er-basic-expansions expand-region-core
expand-region-custom init-mode-line diminish spaceline-config
spaceline-segments spaceline powerline powerline-separators color
powerline-themes init-desktop vc-dispatcher vc-hg company-capf
company-semantic org-indent org-rmail org-mhe org-irc org-info org-gnus
nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail
mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win gnus
nnheader org-docview doc-view org-bbdb org-w3m python-cell sphinx-doc
auto-complete indent-guide highlight-indentation company-oddmuse
company-keywords company-etags company-gtags company-dabbrev-code
company-dabbrev company-files company-cmake company-xcode company-clang
company-eclim company-template company-bbdb company-anaconda
anaconda-mode pythonic desktop frameset recentf tree-widget init-hydra
highlight-symbol init-python company pcase help-fns radix-tree elpy
find-file-in-project diff-mode elpy-shell pyvenv esh-var esh-io esh-cmd
esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode
elpy-profile elpy-django elpy-refactor files-x pydoc goto-addr
smartparens-python python tramp-sh tramp tramp-compat tramp-loaddefs
trampver ucs-normalize parse-time init-multiple-cursors multiple-cursors
mc-hide-unmatched-lines-mode mc-separate-operations
rectangular-region-mode mc-mark-pop mc-mark-more mc-cycle-cursors
mc-edit-lines init-chinese pyim-basedict pyim pyim-probe pyim-pymap
popup init-tags init-projectile helm-projectile projectile grep ibuf-ext
ibuffer ibuffer-loaddefs init-windmove cl-extra ace-window avy winner
framemove windmove init-org org-ref org-ref-helm-bibtex org-ref-helm
helm-bibtex bibtex-completion biblio biblio-download biblio-dissemin
biblio-hal biblio-dblp biblio-crossref biblio-arxiv timezone biblio-doi
biblio-core let-alist url-queue hl-line org-ref-core reftex-cite reftex
reftex-loaddefs reftex-vars parsebib org-ref-glossary org-ref-bibtex
org-ref-citeproc message rfc822 mml mml-sec epa epg gnus-util rmail
rmail-loaddefs mm-decode mm-bodies mm-encode mailabbrev mail-utils
gmm-utils mailheader key-chord doi-utils org-ref-utils org-ref-pdf
pdf-tools cus-edit cus-start cus-load pdf-view jka-compr pdf-cache
pdf-info tq pdf-util image-mode org-bibtex json map ox-beamer ox-twbs
ox-reveal ox-impress-js ox-odt rng-loc rng-uri rng-parse rng-match
rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util
ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox ob-js
ob-makefile ob-shell shell ob-perl ob-python ob-matlab ob-octave ob-org
ob-latex ob-lisp ob-plantuml ob-ditaa ob-css ob-calc calc-store
calc-trail calc-ext calc calc-loaddefs calc-macs ob-C cc-mode cc-fonts
cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
org-archive org-bullets org-download url-http tls gnutls url-auth
mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw nsm rmc puny
org-depend org-element avl-tree generator smartparens-org org org-macro
org-footnote org-pcomplete pcomplete org-list org-faces org-entities
noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref
ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat
org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs
init-regex-helper visual-regexp-steroids visual-regexp re-builder
init-counsel-ivy-helm-hotspot helm-deft f s helm-for-files helm-bookmark
helm-adaptive helm-info bookmark pp helm-external helm-net browse-url
xml url url-proxy url-privacy url-expand url-methods url-history
url-cookie url-domsuf url-util mailcap helm-files helm-buffers helm-tags
helm-locate helm-grep helm-regexp format-spec helm-utils helm-help
helm-types helm-config helm-easymenu async-bytecomp helm helm-source
eieio-compat helm-multi-match helm-lib async ivy-hydra hydra lv counsel
esh-util etags xref project swiper ivy flx ivy-overlay ffap init-ace-avy
ace-jump-zap ace-jump-mode init-guide-key which-key init-uniquify
init-yasnippet yasnippet elec-pair init-perl init-vc init-email
init-iedit iedit iedit-lib multiple-cursors-core rect init-shell-toggle
init-browser init-elisp init-matlab matlab-load init-bib fbib bibtex
init-comment-dwim init-auto-complete init-tramp init-flyspell flyspell
ispell bing-dict init-bookmark bm init-dired find-dired w32-browser
dired dired-loaddefs init-header header2 init-auto-pair paren
smartparens-latex smartparens-config smartparens-text smartparens
help-mode dash rainbow-delimiters init-ido ido-vertical-mode ido
init-tabbar tabbar init-ibuffer init-line-num init-server server
init-latex flymake-proc flymake compile comint ansi-color ring warnings
thingatpt tex-mik tex crm init-beacon beacon init-display init-unicode
mm-util mail-prsvr init-general undo-tree diff edmacro kmacro
browse-kill-ring derived cap-words superword subword autorevert
filenotify time image-file avoid which-func imenu delsel col-highlight
vline highlight-parentheses hlinum linum init-color
color-theme-dawn-night color-theme wid-edit rainbow-mode init-font
init-ms-win htmlize-view htmlize cl use-package use-package-ensure
use-package-delight use-package-diminish use-package-bind-key bind-key
easy-mmode use-package-core subr-x finder-inf
color-file-completion-autoloads color-theme-autoloads tex-site
csv-mode-autoloads py-import-check-autoloads pydoc-info advice info-look
rainbow-mode-autoloads sml-mode-autoloads info vline-autoloads package
easymenu epg-config url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt
gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded 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 w32notify w32 lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 1612780 1531107)
  (symbols 56 71547 420)
  (miscs 48 1394 4246)
  (strings 32 279484 164591)
  (string-bytes 1 8474725)
  (vectors 16 123641)
  (vector-slots 8 2538588 577354)
  (floats 8 1254 27448)
  (intervals 56 131033 21928)
  (buffers 992 48))






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

* bug#31270: 26.1; Emacs 26.1 RC1 -- flymake-err-info is no longer available
  2018-04-26  5:35 bug#31270: 26.1; Emacs 26.1 RC1 -- flymake-err-info is no longer available Da Zhang
@ 2018-04-26  9:25 ` João Távora
  2018-04-26 15:14   ` Da Zhang
  2018-04-27 13:35   ` Da Zhang
  0 siblings, 2 replies; 7+ messages in thread
From: João Távora @ 2018-04-26  9:25 UTC (permalink / raw)
  To: Da Zhang; +Cc: 31270

Da Zhang <zhangda82@gmail.com> writes:

> Hello --
>
> I am a long term Emacs user and I use flymake together with flymake-cursor on a daily basis.
>
> Starting Emacs 26.1, I noticed that flyamke was redesigned and no
> longer has the var flymake-err-info that contains the error info
> reported by the backend syntax checker.
>
> This makes flymake-cursor and code like the following not work:
>
> (defun elpy-flymake-error-at-point ()
>   "Return the flymake error at point, or nil if there is none."
>   (when (boundp 'flymake-err-info)
>     (let* ((lineno (line-number-at-pos))
>            (err-info (car (flymake-find-err-info flymake-err-info
>                                                  lineno))))
>       (when err-info
>         (mapconcat #'flymake-ler-text
>                    err-info
>                    ", ")))))
>
> I believe this is a potential issue and wonder if someone could direct
> me to any alternatives to flymake-err-info in the newly designed
> flyamke.

Hi Da Zhang,

I'm the responsible for the redesign. Although I tried to keep *some*
backward compatibility to old flymake.el's API, the truth is that *all*
of it was an API.

The bad news is that this variable is gone: it couldn't be
backward-adapted. The good news is that it should be much easier to
write your function:

(defun elpy-flymake-error-at-point ()
  "Return the flymake error at point, or nil if there is none."
  (mapconcat #'flymake-diagnostic-text (flymake-diagnostics (point)) "\n"))

Notice that, to keep with the protocol, this returns a concatenation of
the text strings of all the errors at point. You might be better served
by returning and manipulating the objects returned by
flymake-diagnostics instead.

See section "2.2.1 Flymake utility functions" of the Flymake manual
bundled with Emacs for more information.

I don't know what flymake-cursor does, but I suspect it can be fixed
accordingly.

Hope this helps,
João













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

* bug#31270: 26.1; Emacs 26.1 RC1 -- flymake-err-info is no longer available
  2018-04-26  9:25 ` João Távora
@ 2018-04-26 15:14   ` Da Zhang
  2018-04-26 16:26     ` João Távora
  2018-04-27 13:35   ` Da Zhang
  1 sibling, 1 reply; 7+ messages in thread
From: Da Zhang @ 2018-04-26 15:14 UTC (permalink / raw)
  To: João Távora; +Cc: 31270

[-- Attachment #1: Type: text/html, Size: 2716 bytes --]

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

* bug#31270: 26.1; Emacs 26.1 RC1 -- flymake-err-info is no longer available
  2018-04-26 15:14   ` Da Zhang
@ 2018-04-26 16:26     ` João Távora
  0 siblings, 0 replies; 7+ messages in thread
From: João Távora @ 2018-04-26 16:26 UTC (permalink / raw)
  To: Da Zhang; +Cc: 31270-done

[-- Attachment #1: Type: text/plain, Size: 2281 bytes --]

You're welcome!

On Thu, Apr 26, 2018, 16:14 Da Zhang <zhangda82@gmail.com> wrote:

> Thank you very much!!
>
> Dave
>
> On 2018-04-26 5:25 AM, João Távora wrote:
>
> Da Zhang <zhangda82@gmail.com> <zhangda82@gmail.com> writes:
>
>
> Hello --
>
> I am a long term Emacs user and I use flymake together with flymake-cursor on a daily basis.
>
> Starting Emacs 26.1, I noticed that flyamke was redesigned and no
> longer has the var flymake-err-info that contains the error info
> reported by the backend syntax checker.
>
> This makes flymake-cursor and code like the following not work:
>
> (defun elpy-flymake-error-at-point ()
>   "Return the flymake error at point, or nil if there is none."
>   (when (boundp 'flymake-err-info)
>     (let* ((lineno (line-number-at-pos))
>            (err-info (car (flymake-find-err-info flymake-err-info
>                                                  lineno))))
>       (when err-info
>         (mapconcat #'flymake-ler-text
>                    err-info
>                    ", ")))))
>
> I believe this is a potential issue and wonder if someone could direct
> me to any alternatives to flymake-err-info in the newly designed
> flyamke.
>
>
> Hi Da Zhang,
>
> I'm the responsible for the redesign. Although I tried to keep *some*
> backward compatibility to old flymake.el's API, the truth is that *all*
> of it was an API.
>
> The bad news is that this variable is gone: it couldn't be
> backward-adapted. The good news is that it should be much easier to
> write your function:
>
> (defun elpy-flymake-error-at-point ()
>   "Return the flymake error at point, or nil if there is none."
>   (mapconcat #'flymake-diagnostic-text (flymake-diagnostics (point)) "\n"))
>
> Notice that, to keep with the protocol, this returns a concatenation of
> the text strings of all the errors at point. You might be better served
> by returning and manipulating the objects returned by
> flymake-diagnostics instead.
>
> See section "2.2.1 Flymake utility functions" of the Flymake manual
> bundled with Emacs for more information.
>
> I don't know what flymake-cursor does, but I suspect it can be fixed
> accordingly.
>
> Hope this helps,
> João
>
>
>
>
>
>
>
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 3128 bytes --]

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

* bug#31270: 26.1; Emacs 26.1 RC1 -- flymake-err-info is no longer available
  2018-04-26  9:25 ` João Távora
  2018-04-26 15:14   ` Da Zhang
@ 2018-04-27 13:35   ` Da Zhang
  2018-04-27 13:45     ` João Távora
  1 sibling, 1 reply; 7+ messages in thread
From: Da Zhang @ 2018-04-27 13:35 UTC (permalink / raw)
  To: João Távora; +Cc: Jorgen.Schaefer, 31270

[-- Attachment #1: Type: text/html, Size: 3230 bytes --]

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

* bug#31270: 26.1; Emacs 26.1 RC1 -- flymake-err-info is no longer available
  2018-04-27 13:35   ` Da Zhang
@ 2018-04-27 13:45     ` João Távora
  2018-04-27 13:47       ` Da Zhang
  0 siblings, 1 reply; 7+ messages in thread
From: João Távora @ 2018-04-27 13:45 UTC (permalink / raw)
  To: Da Zhang; +Cc: Jorgen.Schaefer, 31270

[-- Attachment #1: Type: text/plain, Size: 2852 bytes --]

I believe (fboundp 'flymake-diagnostics) is a simple and effective enough
check.

Incidentally, I don't know what elpy does in regards to syntax checking,
but it might have been completely or partially superseded by the new
flymake python backend.

On Fri, Apr 27, 2018, 14:35 Da Zhang <zhangda82@gmail.com> wrote:

> Hi Joao,
>
> I tried your suggested solution and it worked beautifully. Is there a way
> to check if the new mechanism of flymake-diagnostics etc are available?
>
> I am working with the maintainer of elpy to update the function
> "elpy-flymake-error-at-point", and ideally we want to see if the new
> mechanism is available.
>
> Thanks in advance!
>
> Da
>
> On 2018-04-26 5:25 AM, João Távora wrote:
>
> Da Zhang <zhangda82@gmail.com> <zhangda82@gmail.com> writes:
>
>
> Hello --
>
> I am a long term Emacs user and I use flymake together with flymake-cursor on a daily basis.
>
> Starting Emacs 26.1, I noticed that flyamke was redesigned and no
> longer has the var flymake-err-info that contains the error info
> reported by the backend syntax checker.
>
> This makes flymake-cursor and code like the following not work:
>
> (defun elpy-flymake-error-at-point ()
>   "Return the flymake error at point, or nil if there is none."
>   (when (boundp 'flymake-err-info)
>     (let* ((lineno (line-number-at-pos))
>            (err-info (car (flymake-find-err-info flymake-err-info
>                                                  lineno))))
>       (when err-info
>         (mapconcat #'flymake-ler-text
>                    err-info
>                    ", ")))))
>
> I believe this is a potential issue and wonder if someone could direct
> me to any alternatives to flymake-err-info in the newly designed
> flyamke.
>
>
> Hi Da Zhang,
>
> I'm the responsible for the redesign. Although I tried to keep *some*
> backward compatibility to old flymake.el's API, the truth is that *all*
> of it was an API.
>
> The bad news is that this variable is gone: it couldn't be
> backward-adapted. The good news is that it should be much easier to
> write your function:
>
> (defun elpy-flymake-error-at-point ()
>   "Return the flymake error at point, or nil if there is none."
>   (mapconcat #'flymake-diagnostic-text (flymake-diagnostics (point)) "\n"))
>
> Notice that, to keep with the protocol, this returns a concatenation of
> the text strings of all the errors at point. You might be better served
> by returning and manipulating the objects returned by
> flymake-diagnostics instead.
>
> See section "2.2.1 Flymake utility functions" of the Flymake manual
> bundled with Emacs for more information.
>
> I don't know what flymake-cursor does, but I suspect it can be fixed
> accordingly.
>
> Hope this helps,
> João
>
>
>
>
>
>
>
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 3940 bytes --]

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

* bug#31270: 26.1; Emacs 26.1 RC1 -- flymake-err-info is no longer available
  2018-04-27 13:45     ` João Távora
@ 2018-04-27 13:47       ` Da Zhang
  0 siblings, 0 replies; 7+ messages in thread
From: Da Zhang @ 2018-04-27 13:47 UTC (permalink / raw)
  To: João Távora; +Cc: Jorgen.Schaefer, 31270

[-- Attachment #1: Type: text/html, Size: 5807 bytes --]

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

end of thread, other threads:[~2018-04-27 13:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-26  5:35 bug#31270: 26.1; Emacs 26.1 RC1 -- flymake-err-info is no longer available Da Zhang
2018-04-26  9:25 ` João Távora
2018-04-26 15:14   ` Da Zhang
2018-04-26 16:26     ` João Távora
2018-04-27 13:35   ` Da Zhang
2018-04-27 13:45     ` João Távora
2018-04-27 13:47       ` Da Zhang

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