From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: Some dynamic module questions Date: Sun, 6 Dec 2020 18:04:27 +0100 Message-ID: References: <83zh33neyv.fsf@gnu.org> <83wny7nd2b.fsf@gnu.org> <83v9drncx7.fsf@gnu.org> <20201127135406.GI1558@odonien.localdomain> <83pn3yomzz.fsf@gnu.org> <20201127152114.GJ1558@odonien.localdomain> <83mtz2om79.fsf@gnu.org> <87o8jbz4z3.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38017"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , Emacs developers , Helmut Eller , Eli Zaretskii , Vasilij Schneidermann To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 06 18:09:45 2020 Return-path: Envelope-to: ged-emacs-devel@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 1klxXd-0009me-5h for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Dec 2020 18:09:45 +0100 Original-Received: from localhost ([::1]:42702 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klxXc-0006jU-6S for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Dec 2020 12:09:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klxSm-0001n6-Bo for emacs-devel@gnu.org; Sun, 06 Dec 2020 12:04:49 -0500 Original-Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]:38738) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klxSi-0003ss-T2; Sun, 06 Dec 2020 12:04:44 -0500 Original-Received: by mail-oi1-x22e.google.com with SMTP id o25so12712497oie.5; Sun, 06 Dec 2020 09:04:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sNfDq7Bjn7TH8VlZO+AvAhEp6qWjr87hDDOL6UiTiis=; b=TXuOockzXZiJXzsyewJZaXm0bRy+TWCviE+hQAbr3haJ5zVvJJEJp6KXThHKHj0f3p Yiwy7ivNB0Tk6uasb2FTd91ct/KWSWeZ+IXSSXWSoHilDYt1lw6wd3dwtIwWz1d/UVY2 gwmYDNzWR+W0WfPqPJ7Y34xAxRYCVhzROzNGbC23xtPLoQixD9NxM8cm8b8PZoIS0bCo yeA9iZ9gY0jGW0YHYXvGBhWGnaTAN/wHO249kWQ7hTXqL/niYoQEaJ4e2DXMdLJ8ldvZ dUQfwyc/4lRWYDm5DpQuWpWmQwcchky6dJqkXUqZ8GrAwsgDXSu8TuoNrita99OhD2GJ 2KNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sNfDq7Bjn7TH8VlZO+AvAhEp6qWjr87hDDOL6UiTiis=; b=pEz2DX7QlDTFgzPbu9Wti72OJBA2n2ydu2zcvoIed0Zy64ou7IGZ2gVh+5+5U9WsOf fhUAXVVDF6Hc13qIp8mWq102CLOqwQmNsBejVcK52og82GjKyKdgkcXC+FD+/Dw0Kol9 LNvN59Zo2SRj/98OV1bhE5KMTOblZULjZvUWQezcvKooYLLZdZIkAs81dunCMc/wnOrq a4tvOfBn0Or4RKQMB/e4fnRreWBfjsTyIchsELBbvM1h4zwksycUHgwNOTBciKXIF0dX r0F/uiAFNru9WZxux8bb+bZFM1b49Z6v84JaGwCHW9GE+/c3hWcML6sov9ZsuA0UEtIu 1TaQ== X-Gm-Message-State: AOAM532wA2Vdk5RlvHDVwPncrUysSqTT1lZ/0NzteISVjxWGy7G8HuFX rnS4IxT0BC48zwd+KI9FyrJg+YJBTKuTdlTAkHc= X-Google-Smtp-Source: ABdhPJxsR6eBPiU3PKJai4jJm9af5eEs6k75bSMjPpPUCFpTz8AJvf2tImBPF52DZM+MVRof7D3G9QJzN1t0Lry8glY= X-Received: by 2002:aca:1b0a:: with SMTP id b10mr9492931oib.9.1607274278504; Sun, 06 Dec 2020 09:04:38 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::22e; envelope-from=p.stephani2@gmail.com; helo=mail-oi1-x22e.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:260451 Archived-At: Am Do., 3. Dez. 2020 um 16:13 Uhr schrieb Stefan Monnier : > > > I agree that there should be a copy_unibyte_string_contents as well. > > An alternative would be to have a function like `copy_string_contents` > which either returns bytes or a utf-8-encoded sequence of chars > depending on whether the string was unibyte or not, and where it > additionally returns an indication of which was the case. > Yes, that would be a viable alternative. (It would need a different name, though, "copy_string_contents" is already taken.)