From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Braun =?UTF-8?Q?G=C3=A1bor?= Newsgroups: gmane.emacs.bugs Subject: bug#38514: Confusion about where 1value, noreturn are defined Date: Fri, 06 Dec 2019 22:57:49 +0100 Message-ID: <5950995.LlS0bncbJ4@gabor> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="93742"; mail-complaints-to="usenet@blaine.gmane.org" To: 38514@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 06 22:58:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1idLc8-000OGV-UL for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Dec 2019 22:58:17 +0100 Original-Received: from localhost ([::1]:45718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idLc7-0005a5-Oi for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Dec 2019 16:58:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37363) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idLbx-0005Xv-3B for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2019 16:58:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1idLbu-0001VB-MQ for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2019 16:58:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41146) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1idLbu-0001Tq-Fm for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2019 16:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1idLbu-0005Hp-EL for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2019 16:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Braun =?UTF-8?Q?G=C3=A1bor?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Dec 2019 21:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38514 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157566947920309 (code B ref -1); Fri, 06 Dec 2019 21:58:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Dec 2019 21:57:59 +0000 Original-Received: from localhost ([127.0.0.1]:47119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idLbq-0005HV-Pj for submit@debbugs.gnu.org; Fri, 06 Dec 2019 16:57:59 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:59851) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idLbp-0005HL-1J for submit@debbugs.gnu.org; Fri, 06 Dec 2019 16:57:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36699) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idLbn-0005Xl-7h for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2019 16:57:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1idLbl-0000c0-HH for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2019 16:57:54 -0500 Original-Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:41053) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1idLbl-0000Vf-93 for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2019 16:57:53 -0500 Original-Received: by mail-wr1-x435.google.com with SMTP id c9so9360293wrw.8 for ; Fri, 06 Dec 2019 13:57:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=7Ar0LHKKX/DTCSUEWBGkqNAVo/e3yNmLU4CTcFLYSpc=; b=e4sitdAPVEl50T+vMDkUAqBVAPMYOJ4FZ/J8rGkydPM/N+3H8BG2liGR9J+x4UpG9K vJaLYb4lD+juBs0B8J6f/ju512WMF44BAx6pgY6hW1KdhLIscu3chTQ5z+EiljgNoBR7 hz3jHXYu2FRvU/81qbzKGf7SlQbVa6LrS72rMHpgC0WWA7vLWj5xuYOXZUNulpzfTz/f UUdZ9F/Y0Tk9z4XEzgcj5opwJqWtIzNT3C5lubqHBvd4x9W0JPGCJFe/9M2cPt3rx2L4 s1fJlNMpjRJUfHGtL3RGA3q6MY6MboI9z/oVCnwV4KRqGxlHuoxRELnN0ubKDNaeUrFo 7Yhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=7Ar0LHKKX/DTCSUEWBGkqNAVo/e3yNmLU4CTcFLYSpc=; b=N5X52B3NEZATCGFJcAI146z3OFd0nzqOkDabSvOo8TRxeRpq3CbQ+Tm6tPu7xG4PMs BODDjxtozWTnA6MbP+0Rhb3IC48XpzdXTWEfbYXlp356HdBXLzr852MXAYjOLxr/cg4P +iJkx7zICZPUMZH8sfP2ksCFqFVNp8/fYbMjH5iBWTt7TOzcrOPFiuyvpo4SyXs5Uz8o WEKYMW2siSE/3GmdBbpNcV0SihumT1lyJevKaQsJVDiAlsC1exZStA1dkqL2/k0i0NNT HNEFAt6gGQzBe4S1v/pUlgnhWJo9eN7QECtyw5E0NMMWwuu6n+/bZ1sOcaClmzjjlkAy CatA== X-Gm-Message-State: APjAAAXuL2UOcdrLNWhMdtTyOvyNoMLJzuRHPHVXfE9m+CBFLOFfAwm3 eaiuWzTSPkdlWna8Zs+27UGvL5cZ X-Google-Smtp-Source: APXvYqyGAYRVTUocx8pZ/qgAwGCg7Tif1DBlqfMeSTBewRPFgBDe4tb/dSYbaGxILIcqZMNwGorb6A== X-Received: by 2002:adf:dc06:: with SMTP id t6mr18125996wri.378.1575669471496; Fri, 06 Dec 2019 13:57:51 -0800 (PST) Original-Received: from gabor.localnet (254C1F03.nat.pool.telekom.hu. [37.76.31.3]) by smtp.gmail.com with ESMTPSA id t8sm17485580wrp.69.2019.12.06.13.57.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2019 13:57:50 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172983 Archived-At: Hi, After `emacs -Q' execute 'M-x find-function RET 1value RET' and then 'C-h f 1value RET'; I have done it via the following keystrokes (copied from the output of `C-h l'): M-x [execute-extended-command] f [self-insert-command] i [self-insert-command] n [self-insert-command] d [self-insert-command] - [self-insert-command] f [self-insert-command] u [self-insert-command] n [self-insert-command] [minibuffer-complete] [minibuffer-complete-and-exit] 1 [self-insert-command] v [self-insert-command] a [self-insert-command] l [self-insert-command] u [self-insert-command] e [self-insert-command] [minibuffer-complete-and-exit] C-h f [describe-function] [previous-line-or-history-element] [minibuffer-complete-and-exit] =20 At this point Emacs displays two windows: in the top window there is Lisp code defining macro `1value' and the modeline displays `subr.el.gz' as buffer name. The bottom window display the *Help* buffer with the first line being: 1value is a Lisp macro in =E2=80=98ses.el=E2=80=99. Clcking with the mouse on `ses.el' changes the top window to display another definition of `1value' with modeline now showing `ses.el.gz' as buffer name. So Emacs is inconsistent on where 1value is defined: it claims both=20 subr.el and ses.el. The case is similar for macro `noreturn'. IMHO, ses.el should redefine neither 1value nor noreturn, to adhere to=20 the following tip from the Elisp manual: QUOTE: Redefining or advising an Emacs primitive is a bad idea. It may do the right thing for a particular program, but there is no telling what other programs might break as a result. ENDQUOTE Best wishes, G=C3=A1bor In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-09-23, modified by Debian built on x86-grnet-01 Windowing system distributor 'The X.Org Foundation', version=20 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Recent messages: =46or information about GNU Emacs and the GNU system, type C-h C-a. uncompressing subr.el.gz...done Note: file is write protected Type C-x 1 to delete the help window. Making completion list... Configured using: 'configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystemd --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/26.1/site- lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/ usr/share/emacs/site-lisp --with-sound=3Dalsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystemd --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/26.1/site- lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/ usr/share/emacs/site-lisp --with-sound=3Dalsa --without-gconf --with-mailutils --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2 -fdebug-prefix-map=3D/build/emacs-StqULU/emacs-26.1+1=3D. -fstack- protector-strong -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2' LDFLAGS=3D-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: hu_HU.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp 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 buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. =46eatures: (shadow sort mail-extr emacsbug message rmc puny seq gv dired dired-loaddefs format-spec rfc822 mml 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 ses byte-opt bytecomp byte-compile cconv unsafep help-fns radix-tree help-mode easymenu cl-loaddefs cl-lib jka-compr thingatpt find-func elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd 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 dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 104995 9175) (symbols 48 20912 1) (miscs 40 59 129) (strings 32 31904 1204) (string-bytes 1 811459) (vectors 16 15581) (vector-slots 8 506680 8152) (floats 8 63 192) (intervals 56 338 3) (buffers 992 14))