unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36121: 26.1; bookmark-set-internal marked as interactively but doesn't work
@ 2019-06-07  0:31 Stefan Kangas
  2019-06-07  0:39 ` Stefan Kangas
  2019-06-09 17:18 ` bug#36121: [PATCH] 26.1; bookmark-set-internal marked as interactive but Paul Eggert
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Kangas @ 2019-06-07  0:31 UTC (permalink / raw)
  To: 36121

Steps to reproduce:

1. Run emacs -Q
2. Evaluate (require 'bookmark)
3. M-x bookmark-set-internal

This bug was introduced in
https://git.savannah.gnu.org/gitweb/?p=emacs.git;a=commit;h=3812e17978547bd659b92da817f9ddd557bd511c

Thanks,
Stefan Kangas

In GNU Emacs 26.1 (build 1, x86_64-apple-darwin14.5.0, NS
appkit-1348.17 Version 10.10.5 (Build 14F2511))
 of 2018-05-31 built on builder10-10.porkrind.org
Windowing system distributor 'Apple', version 10.3.1404
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
bookmark
funcall-interactively: Wrong number of arguments: #[(prompt name
overwrite-or-push) "ÆŽÇ  È Á\"‰ :ƒ     @‚          ƒ\"ÉÁ \" ‚' @‰  Ê
ˆ ƒ2 „6` p
†IËÌÍ
#Î  Ή    & ‰  ϘƒT
    з‚ Ñ  Ò\"ƒlÓÔ  \"ˆ‚“Õ   AÎ#ˆ‚“Õ   AÎ#ˆ‚“Õ   AÒ#ˆ‚“ÓÖ  \"ˆ  …œ×  !-‡"
[record defaults default bookmark-yank-point bookmark-current-buffer
name #[nil "‰ ‰ ‡" [bookmark-yank-point bookmark-current-buffer nil]
3] bookmark-make-record bookmark-prop-get assq-delete-all ...] 8
("/Applications/Emacs.app/Contents/Resources/lisp/bookmark.elc" .
21892) (list nil current-prefix-arg)], 2
Configured using:
 'configure --with-ns '--enable-locallisppath=/Library/Application
 Support/Emacs/${version}/site-lisp:/Library/Application
 Support/Emacs/site-lisp' --with-modules'

Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS

Important settings:
  value of $LC_CTYPE: UTF-8
  value of $LANG: en_SE@calendar=iso8601.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-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
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils bookmark pp elec-pair
time-date tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util
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 kqueue cocoa ns multi-tty make-network-process emacs)

Memory information:
((conses 16 205116 9292)
 (symbols 48 20270 2)
 (miscs 40 47 154)
 (strings 32 29268 2259)
 (string-bytes 1 773680)
 (vectors 16 35305)
 (vector-slots 8 717184 9838)
 (floats 8 49 80)
 (intervals 56 214 0)
 (buffers 992 11))





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

* bug#36121: 26.1; bookmark-set-internal marked as interactively but doesn't work
  2019-06-07  0:31 bug#36121: 26.1; bookmark-set-internal marked as interactively but doesn't work Stefan Kangas
@ 2019-06-07  0:39 ` Stefan Kangas
  2019-06-07  0:43   ` Stefan Kangas
  2019-06-09 17:18 ` bug#36121: [PATCH] 26.1; bookmark-set-internal marked as interactive but Paul Eggert
  1 sibling, 1 reply; 4+ messages in thread
From: Stefan Kangas @ 2019-06-07  0:39 UTC (permalink / raw)
  To: 36121

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

This function is internal and should never have been marked interactive.

I therefore believe the fix is as simple as the attached patch.

Thanks,
Stefan Kangas

[-- Attachment #2: 0001-Make-bookmark-set-interactive-non-interactive-bug-36.patch --]
[-- Type: application/x-patch, Size: 870 bytes --]

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

* bug#36121: 26.1; bookmark-set-internal marked as interactively but doesn't work
  2019-06-07  0:39 ` Stefan Kangas
@ 2019-06-07  0:43   ` Stefan Kangas
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Kangas @ 2019-06-07  0:43 UTC (permalink / raw)
  To: 36121

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

Please find attached a patch with a better commit message.

Sorry for the extra noise.

Thanks,
Stefan Kangas

[-- Attachment #2: 0001-Remove-interactive-spec-from-bookmark-set-internal-b.patch --]
[-- Type: application/octet-stream, Size: 879 bytes --]

From 95619d6648313b6c101259d6ca30c71d43fefea4 Mon Sep 17 00:00:00 2001
From: Stefan Kangas <stefankangas@gmail.com>
Date: Fri, 7 Jun 2019 02:34:50 +0200
Subject: [PATCH] Remove interactive spec from bookmark-set-internal
 (bug#36121)

* lisp/bookmark.el (bookmark-set-internal): Remove interactive spec.
---
 lisp/bookmark.el | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index ed71dd1ade..6fca8bf116 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -775,7 +775,6 @@ bookmark-set-internal
 bookmarks named NAME, this most recently set one becomes the one in
 effect, but the others are still there, in order, if the topmost one
 is ever deleted."
-  (interactive (list nil current-prefix-arg))
   (unwind-protect
        (let* ((record (bookmark-make-record))
               ;; `defaults' is a transient element of the
-- 
2.21.0


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

* bug#36121: [PATCH] 26.1; bookmark-set-internal marked as interactive but
  2019-06-07  0:31 bug#36121: 26.1; bookmark-set-internal marked as interactively but doesn't work Stefan Kangas
  2019-06-07  0:39 ` Stefan Kangas
@ 2019-06-09 17:18 ` Paul Eggert
  1 sibling, 0 replies; 4+ messages in thread
From: Paul Eggert @ 2019-06-09 17:18 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 36121-done

I installed that fix too. Thanks for all these fixes.





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

end of thread, other threads:[~2019-06-09 17:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-07  0:31 bug#36121: 26.1; bookmark-set-internal marked as interactively but doesn't work Stefan Kangas
2019-06-07  0:39 ` Stefan Kangas
2019-06-07  0:43   ` Stefan Kangas
2019-06-09 17:18 ` bug#36121: [PATCH] 26.1; bookmark-set-internal marked as interactive but Paul Eggert

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