GNU bug report logs - #17966
select-safe-coding-system-interactively expects with-output-to-temp-buffer to set up help-mode

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Mon, 7 Jul 2014 17:02:02 UTC

Severity: normal

Tags: confirmed

Merged with 16038, 17109

Found in versions 24.3, 24.4.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17966 in the body.
You can then email your comments to 17966 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17966; Package emacs. (Mon, 07 Jul 2014 17:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dani Moncayo <dmoncayo <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 07 Jul 2014 17:02:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: bug-gnu-emacs <bug-gnu-emacs <at> gnu.org>
Subject: 24.4.50; Error while saving bookmarks: Unknown button type `help-xref'
Date: Mon, 7 Jul 2014 19:00:58 +0200
emacs -Q
(set-language-environment 'latin-1)
(info "(emacs)Regexp Backslash")
C-u 9 C-n
C-x r m foo RET
M-x bookmark-save RET

At that moment, a *Bookmarks* buffers appears and the echo area shows
the message "Unknown button type `help-xref'".

I can't even exit Emacs, because that implies saving the bookmarks,
which againg triggers the above error.  (I have to move point to another
place, define the bookmark there, and then save it).


In GNU Emacs 24.4.50.5 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
 of 2014-07-07 on LEG570
Windowing system distributor `The X.Org Foundation', version 11.0.11501000
System Description: Ubuntu 14.04 LTS

Configured using:
 `configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB

Important settings:
  value of $LC_MONETARY: es_ES.UTF-8
  value of $LC_NUMERIC: es_ES.UTF-8
  value of $LC_TIME: es_ES.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
C-y <return> C-p C-p C-e C-x C-e C-n C-x C-e C-u 9
C-n C-x r m f o o <return> M-x b o - s a <tab> <return>
M-x r e - e m - b u <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set
t
nil
Saving bookmarks to file ~/.emacs.d/bookmarks...
make-text-button: Unknown button type `help-xref'

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message dired format-spec
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util help-fns mail-prsvr mail-utils bookmark pp info easymenu
time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment lisp-mode prog-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 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 make-network-process dbusbind gfilenotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)

Memory information:
((conses 16 86066 4798)
 (symbols 48 18429 0)
 (miscs 40 49 212)
 (strings 32 15349 5638)
 (string-bytes 1 374310)
 (vectors 16 14117)
 (vector-slots 8 801460 115730)
 (floats 8 78 93)
 (intervals 56 318 181)
 (buffers 960 14)
 (heap 1024 50559 1322))

-- 
Dani Moncayo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17966; Package emacs. (Mon, 07 Jul 2014 18:23:02 GMT) Full text and rfc822 format available.

Message #8 received at 17966 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 17966 <at> debbugs.gnu.org
Subject: Re: bug#17966: 24.4.50;
 Error while saving bookmarks: Unknown button type `help-xref'
Date: Mon, 07 Jul 2014 14:22:14 -0400
Dani Moncayo wrote:

> emacs -Q
> (set-language-environment 'latin-1)
> (info "(emacs)Regexp Backslash")
> C-u 9 C-n
> C-x r m foo RET
> M-x bookmark-save RET
>
> At that moment, a *Bookmarks* buffers appears and the echo area shows
> the message "Unknown button type `help-xref'".

I can't reproduce this with current trunk on GNU/Linux.
Perhaps it depends on pre-existing contents of the bookmarks file;
mine is empty.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17966; Package emacs. (Mon, 07 Jul 2014 20:33:02 GMT) Full text and rfc822 format available.

Message #11 received at 17966 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 17966 <at> debbugs.gnu.org
Subject: Re: bug#17966: 24.4.50; Error while saving bookmarks: Unknown button
 type `help-xref'
Date: Mon, 7 Jul 2014 22:32:32 +0200
> I can't reproduce this with current trunk on GNU/Linux.

Oh, too bad :-(

> Perhaps it depends on pre-existing contents of the bookmarks file;
> mine is empty.

I've just verified that the problem persists even if I rename
"~/.emacs.d" to something else before running Emacs.

FWIW, I've compiled this Emacs from today's trunk (revno 117481) in
this same machine, whose OS is Ubuntu 14.04.

-- 
Dani Moncayo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17966; Package emacs. (Mon, 07 Jul 2014 20:46:02 GMT) Full text and rfc822 format available.

Message #14 received at 17966 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: 17966 <at> debbugs.gnu.org
Subject: Re: bug#17966: 24.4.50; Error while saving bookmarks: Unknown button
 type `help-xref'
Date: Mon, 7 Jul 2014 22:44:58 +0200
FWIW, these are the last two lines in the *Messages* buffer:

  Saving bookmarks to file ~/.emacs.d/bookmarks...
  make-text-button: Unknown button type `help-xref'

and these are the contents of the *Bookmarks* buffer which appears
suddenly after doing "M-x bookmark-save":

  ;;;; Emacs Bookmark Format Version 1 ;;;;
  ;;; This format is meant to be slightly human-readable;
  ;;; nevertheless, you probably don't want to edit it.
  ;;; -*- End Of Bookmark File Format Version Stamp -*-
  (("foo"
   (front-context-string . "‘\\|’\n     specif")
   (rear-context-string . "\\’ constructs.\n\n")
   (position . 345746)
   (filename . "/home/dani/devel/emacs/repo/info/emacs")
   (info-node . "Regexp Backslash")
   (handler . Info-bookmark-jump))
  )


-- 
Dani Moncayo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17966; Package emacs. (Mon, 07 Jul 2014 21:15:03 GMT) Full text and rfc822 format available.

Message #17 received at 17966 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 17966 <at> debbugs.gnu.org
Subject: Re: bug#17966: 24.4.50; Error while saving bookmarks: Unknown button
 type `help-xref'
Date: Mon, 7 Jul 2014 23:14:40 +0200
[Message part 1 (text/plain, inline)]
>> Perhaps it depends on pre-existing contents of the bookmarks file;
>> mine is empty.
>
> I've just verified that the problem persists even if I rename
> "~/.emacs.d" to something else before running Emacs.

Perhaps the key difference between your environment and mine is that I
have makeinfo version 5.2, which produces the special (non-ascii)
quotation chars ‘ and ’, and you may have an older version which
produces ` and ' instead.

Can you reproduce the problem with the following recipe?

emacs -Q
(set-language-environment 'latin-1)
Visit the attached file.
C-u 9 C-n
C-x r m RET
M-x bookmark-save RET


-- 
Dani Moncayo
[file1 (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17966; Package emacs. (Mon, 07 Jul 2014 22:47:02 GMT) Full text and rfc822 format available.

Message #20 received at 17966 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Dani Moncayo <dmoncayo <at> gmail.com>, Glenn Morris <rgm <at> gnu.org>
Cc: 17966 <at> debbugs.gnu.org
Subject: RE: bug#17966: 24.4.50; Error while saving bookmarks: Unknown button
 type `help-xref'
Date: Mon, 7 Jul 2014 15:46:45 -0700 (PDT)
> >> Perhaps it depends on pre-existing contents of the bookmarks file;
> >> mine is empty.
> >
> > I've just verified that the problem persists even if I rename
> > "~/.emacs.d" to something else before running Emacs.
> 
> Perhaps the key difference between your environment and mine is that I
> have makeinfo version 5.2, which produces the special (non-ascii)
> quotation chars ‘ and ’, and you may have an older version which
> produces ` and ' instead.
> 
> Can you reproduce the problem with the following recipe?
> 
> emacs -Q
> (set-language-environment 'latin-1)
> Visit the attached file.
> C-u 9 C-n
> C-x r m RET
> M-x bookmark-save RET

Sounds similar to what was reported in bug #17568, which I'm
guessing has to do with existing code expecting a buffer to be in
`help-mode' after `with-output-to-temp-buffer'.  IOW, perhaps
more collateral damage from bug #17109.  Just a hunch.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17966; Package emacs. (Tue, 08 Jul 2014 00:02:01 GMT) Full text and rfc822 format available.

Message #23 received at 17966 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 17966 <at> debbugs.gnu.org
Subject: Re: bug#17966: 24.4.50;
 Error while saving bookmarks: Unknown button type `help-xref'
Date: Mon, 07 Jul 2014 20:01:02 -0400
Dani Moncayo wrote:

> Perhaps the key difference between your environment and mine is that I
> have makeinfo version 5.2, which produces the special (non-ascii)
> quotation chars ' and ', and you may have an older version which
> produces ` and ' instead.

Good deductive skills! :)
(I have both makeinfo 4 and 5, but 5 is far too slow for everyday use.)

Yes, it is a problem with select-safe-coding-system-interactively.




Changed bug title to 'select-safe-coding-system-interactively expects with-output-to-temp-buffer to set up help-mode' from '24.4.50; Error while saving bookmarks: Unknown button type `help-xref'' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 10 Jul 2014 16:56:02 GMT) Full text and rfc822 format available.

Added tag(s) confirmed. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 10 Jul 2014 16:56:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 17966 <at> debbugs.gnu.org and Dani Moncayo <dmoncayo <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 09 Aug 2014 20:30:03 GMT) Full text and rfc822 format available.

Forcibly Merged 16038 17966. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 09 Aug 2014 20:31:02 GMT) Full text and rfc822 format available.

Forcibly Merged 16038 17109 17966. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 09 Aug 2014 20:31:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 07 Sep 2014 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 234 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.