From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tpeplt Newsgroups: gmane.emacs.help Subject: Re: Undefined behavior for the function =?utf-8?B?4oCYbGFzdA==?= =?utf-8?B?4oCZ?= or an error? Date: Mon, 01 Apr 2024 13:12:37 -0400 Message-ID: <87edbp9fcq.fsf@gmail.com> References: <87il119g8u.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17003"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 01 19:13:30 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rrLDu-0004CN-2I for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 Apr 2024 19:13:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrLDC-0000Y8-Ra; Mon, 01 Apr 2024 13:12:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rrLDA-0000Xt-Vp for help-gnu-emacs@gnu.org; Mon, 01 Apr 2024 13:12:45 -0400 Original-Received: from mail-qv1-xf2e.google.com ([2607:f8b0:4864:20::f2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rrLD6-0006B5-Dt for help-gnu-emacs@gnu.org; Mon, 01 Apr 2024 13:12:44 -0400 Original-Received: by mail-qv1-xf2e.google.com with SMTP id 6a1803df08f44-6904a5d71abso20583376d6.1 for ; Mon, 01 Apr 2024 10:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711991559; x=1712596359; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:to:from:from:to:cc:subject:date :message-id:reply-to; bh=644cc//Jzym01RoMRY5qFmF/3Jt+cOuumxHeltT6eKk=; b=frhmmluFc/wDbkIFgR5H0HlZMfb5ITKEQtJ+3uVsXv0jUH+ddQ4FqJfPEP98mX4xlK O4MYmyL7/+T9SFvx0qRRYopm0/DOAfFUxd5kBIXhuqpp+VkwFtSkt0tEVyvo3re22Hy0 ArfFb0Gm4k8Wx6Z554gQ5kLtpCHPpZ6NusuOzB8XPZEroy9wpIsnlZokM1B7EdFsRoSy 4cA9FVK6Hxd4zzrpnLsjf71ebFCBIw2m3vZudt89u6f4fc4X/RVBzIRnAdVd4q9OyCHS XYBD8cS8IjcRAcj/zrYFfrQJAgyHJwPF/FMSh9W5rXiikk+qdbriArzu8PvKzUFlhh/q JhPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711991559; x=1712596359; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=644cc//Jzym01RoMRY5qFmF/3Jt+cOuumxHeltT6eKk=; b=CBLCjPZckgkCSCrbW560Ms+6/kKi6tBHzUJgKhiWnxSmjG1V+QwKGZBYtaqa1sA65F 9pgy5mEccfBVAOqZoex/Js/8ur/Uvwl4yVgyxS5kCsffgFGGXtnNCrMa9Bu/NJ1o9ZAV 12uGMN8/Qr4Pt2rX2fg2Eua1VT8K3g/oNsu0J4ItbTZ2Q3c9LeLc6zGRRXN25ISHssaF FjdSnMwzYV0pQz0o+bR8deMKN0FIEYTaMNmuXr49CUmUe7bXoxuLLlH/H2pMsDb96V6c Q5py1iGQ6v3aCyJBfOyeOdhWeLZoLxGUoNB9qDRRJQVivjIpvuS+RQNn5NjIVxpkt/+i qw9w== X-Gm-Message-State: AOJu0YwVrm6veXgvMcYzDD2oKMU0kMPc5jGna0fNgzwaMpJGDXBC5xEm HTLdMlE9wm5wQkKh67goLEmokP4oXxRIhLoVynI/LfF2LUrBXAvw X-Google-Smtp-Source: AGHT+IGZ3gLZu1JrUzTPRT9iLZcxjU1sINXjcLM+3WmNyLgMHP+Dion2eXgs4spVjPCPIIKQba7PGg== X-Received: by 2002:ad4:4810:0:b0:696:89e5:f954 with SMTP id qd16-20020ad44810000000b0069689e5f954mr10062680qvb.53.1711991559122; Mon, 01 Apr 2024 10:12:39 -0700 (PDT) Original-Received: from t530.local ([2600:8806:a821:2b00::5acf]) by smtp.gmail.com with ESMTPSA id e2-20020a0562140d8200b0069691b268c9sm4672285qve.42.2024.04.01.10.12.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 10:12:38 -0700 (PDT) In-Reply-To: <87il119g8u.fsf@gmail.com> (tpeplt@gmail.com's message of "Mon, 01 Apr 2024 12:53:21 -0400") Received-SPF: pass client-ip=2607:f8b0:4864:20::f2e; envelope-from=tpeplt@gmail.com; helo=mail-qv1-xf2e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146220 Archived-At: Forgot to mention -- these results are from Emacs version 29.3. Start emacs from a shell prompt with "emacs -Q" to avoid any re-definition of =E2=80=98last=E2=80=99. > The built-in Emacs Lisp function =E2=80=98last=E2=80=99 accepts a list as= its argument: > > (last '(a b c)) =3D> (c) > > It also (surprisingly) accepts a non-list as its argument: > > (last 'a) =3D> a > (last 3.14) =3D> 3.14 > (last "string of chars") =3D> "string of chars" > --