bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21168: 25.0.50; ffap-string-at-point-region gets raw cons value, bre


From: Rupert Swarbrick
Subject: bug#21168: 25.0.50; ffap-string-at-point-region gets raw cons value, breaking ffap-string-at-point
Date: Fri, 31 Jul 2015 17:42:31 +0100

My Emacs session has got into a situation where the
ffap-string-at-point-region is the raw cons

  (14812 . 2284)

As a result, the line at the bottom of ffap-string-at-point fails
when it tries to run

  (setcar (cdr ffap-string-at-point-region) end)


I'm running Emacs compiled from commit 123c82e, plus an unrelated commit
to fix the scheme lexer for semantic (hence the weird looking repository
version below).


I think the problem is probably caused by commit e48a116780d (from last
Wednesday), which changes line 1137 of ffap.el to:

            (setcdr ffap-string-at-point-region (point))

because the rest of ffap.el expects the variable to be a list with two
elements rather than a cons pair.


I've changed the line to 

            (setcar (cdr ffap-string-at-point-region) (point))

and stuff seems to work fine.


Rupert

In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars)
 of 2015-07-31 on <snipped>
Repository revision: b164ad9311b4f2c1a34ac61ac565e75f81aa6eaf
Windowing system distributor `The X.Org Foundation', version 11.0.11300000
System Description:     Red Hat Enterprise Linux Server release 6.4 (Santiago)

Configured using:
 `configure
 --prefix=<snipped>
 --with-xml2 --without-sound --without-rsvg --without-imagemagick
 --with-x-toolkit=lucid'

Configured features:
XPM JPEG TIFF GIF PNG GPM DBUS GCONF NOTIFY ACL LIBSELINUX GNUTLS
LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11

Important settings:
  value of $LC_COLLATE: C
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  elisp-slime-nav-mode: t
  paredit-mode: t
  global-semantic-decoration-mode: t
  global-semanticdb-minor-mode: t
  global-semantic-idle-scheduler-mode: t
  stock-ticker-global-mode: t
  semantic-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  helm-mode: t
  async-bytecomp-package-mode: t
  desktop-save-mode: t
  keyfreq-autosave-mode: t
  keyfreq-mode: t
  show-paren-mode: t
  recentf-mode: t
  diff-auto-refine-mode: t
  magit-auto-revert-mode: t
  global-auto-revert-mode: t
  global-git-commit-mode: t
  shell-dirtrack-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
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t

Recent messages:
buffer-substring-no-properties: Wrong type argument: consp, 2284
ffap-string-at-point
buffer-substring-no-properties: Wrong type argument: consp, 2284
(14812 . 2284)
buffer-substring-no-properties: Wrong type argument: consp, 2284
Searching for setcar...
Quit [2 times]
Auto-saving...
Mark set
Mark saved where search started

Load-path shadows:
<snipped: contain Broadcom-specific paths>

Features:
(shadow sort mail-extr emacsbug sendmail vc-annotate debug misearch
multi-isearch derived helm-command helm-elisp helm-eval edebug
semantic/tag-write find-file ido semantic/analyze/complete
semantic/db-typecache image-file winner eww mm-url gnus gnus-ems
nnheader url-queue shr dom subr-x autoconf autoconf-mode m4-mode
conf-mode elisp-slime-nav semantic/bovine/scm semantic/bovine/scm-by
org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view
jka-compr image-mode org-bibtex bibtex org-bbdb org-element avl-tree
org-w3m org-location-google-maps org-agenda google-maps
google-maps-static google-maps-geocode google-maps-base org org-macro
org-footnote org-pcomplete org-list org-faces org-entities noutline
outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table
ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs
org-loaddefs find-func company-files company-oddmuse company-keywords
company-etags company-gtags company-dabbrev-code company-dabbrev
company-capf company-cmake company-xcode company-clang company-semantic
company-eclim company-template company-css company-nxml company-bbdb
company paredit geiser-mode geiser-xref geiser-guile geiser-repl
geiser-image geiser-compile geiser-debug geiser-company geiser-doc
geiser-menu geiser-autodoc info-look geiser-edit etags xref project
geiser-completion geiser-eval geiser-connection tq geiser-syntax
geiser-log geiser-popup view geiser-impl geiser-custom geiser-base
scheme perl-mode sh-script smie executable semantic/bovine/make
semantic/bovine/make-by make-mode vc vc-dispatcher vc-git semantic/sb
speedbar sb-image dframe semantic/tag-file semantic/db-file data-debug
cedet-files semantic/bovine/c semantic/decorate/include hideif
semantic/bovine/c-by semantic/lex-spp semantic/bovine/gcc semantic/dep
semantic/bovine semantic/analyze/refs semantic/db-find semantic/db-ref
semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn
semantic/decorate/mode semantic/decorate disp-table
fill-column-indicator cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs semantic/db-mode
semantic/db eieio-base pulse semantic/idle semantic/format ezimage
semantic/tag-ls semantic/find semantic/ctxt em-ls esh-ext esh-opt
esh-util stock-ticker s ucs-normalize request url-http tls url-auth
url-gw json semantic/util-modes semantic/util semantic semantic/tag
semantic/lex semantic/fw mode-local cedet undo-tree diff cus-start
cus-load geiser <snip> cl diary-lib
diary-loaddefs midnight helm-mode helm-files rx image-dired dired-aux
ffap thingatpt helm-buffers helm-elscreen helm-tags helm-bookmark
helm-adaptive helm-info bookmark pp helm-locate helm-match-plugin
helm-grep helm-regexp helm-plugin helm-external helm-net browse-url xml
url url-proxy url-privacy url-expand url-methods url-history url-cookie
url-domsuf url-util url-parse url-vars mailcap helm-utils compile
helm-help helm-types helm helm-source eieio-compat helm-lib helm-config
helm-easymenu async-bytecomp async helm-aliases desktop frameset keyfreq
dired-x paren windmove recentf tree-widget wid-edit edmacro kmacro
magit-wip magit-extras magit-backup magit-ediff ediff-merg ediff-wind
ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff magit-blame
magit-bisect magit-remote magit-commit magit-stash magit-sequence magit
magit-log crm magit-apply magit-diff smerge-mode diff-mode magit-core
magit-process magit-popup magit-mode autorevert filenotify magit-git
magit-section magit-utils git-rebase git-commit log-edit easy-mmode
message dired rfc822 mml mml-sec mm-decode mm-bodies mm-encode
mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils
gmm-utils mailheader pcvs-util add-log with-editor tramp-sh tramp
tramp-compat auth-source cl-seq eieio byte-opt bytecomp byte-compile
cl-extra seq cconv eieio-core cl-macs gv gnus-util mm-util help-fns
help-mode mail-prsvr password-cache tramp-loaddefs trampver shell
pcomplete comint ansi-color ring format-spec advice server dash
cl-loaddefs pcase cl-lib finder-inf cal-menu calendar cal-loaddefs
highline-autoloads info easymenu slime-autoloads package epg-config
time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset
image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core 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 charscript case-table epa-hook
jka-cmpr-hook help simple abbrev 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 dbusbind gfilenotify dynamic-setting
system-font-setting font-render-setting x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 1489287 73899)
 (symbols 48 59905 10)
 (miscs 40 11051 1377)
 (strings 32 264578 71214)
 (string-bytes 1 8338897)
 (vectors 16 108644)
 (vector-slots 8 1507597 41874)
 (floats 8 747 432)
 (intervals 56 63601 271)
 (buffers 976 125)
 (heap 1024 117679 5838))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]