From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#27952: 26.0.50; Combine archive-int-to-mode and tar-grind-file-mode Date: Wed, 16 Aug 2017 22:13:48 +0900 (JST) Message-ID: References: <8760e3zf6v.fsf@calancha-pc> <87efsb7n6y.fsf@calancha-pc> <87fucrzprw.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1502889251 1471 195.159.176.226 (16 Aug 2017 13:14:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 16 Aug 2017 13:14:11 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: 27952@debbugs.gnu.org, stefan monnier , Tino Calancha To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 16 15:14:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhy97-0008Ta-PO for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Aug 2017 15:14:05 +0200 Original-Received: from localhost ([::1]:45721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhy9E-0006AC-7r for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Aug 2017 09:14:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhy98-00069e-23 for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 09:14:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhy94-00062I-2E for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 09:14:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59950) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhy93-00062E-VF for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 09:14:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dhy93-00050W-Pq for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 09:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Aug 2017 13:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 27952-submit@debbugs.gnu.org id=B27952.150288923819233 (code B ref 27952); Wed, 16 Aug 2017 13:14:01 +0000 Original-Received: (at 27952) by debbugs.gnu.org; 16 Aug 2017 13:13:58 +0000 Original-Received: from localhost ([127.0.0.1]:40398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhy90-000508-Es for submit@debbugs.gnu.org; Wed, 16 Aug 2017 09:13:58 -0400 Original-Received: from mail-pg0-f53.google.com ([74.125.83.53]:38500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhy8z-0004zt-De for 27952@debbugs.gnu.org; Wed, 16 Aug 2017 09:13:57 -0400 Original-Received: by mail-pg0-f53.google.com with SMTP id l64so22822146pge.5 for <27952@debbugs.gnu.org>; Wed, 16 Aug 2017 06:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=Vqdgm+vJLyV7ayDcUBT8ygt6rFCk2zplwxYs1gmlnrs=; b=t2vndKjgu6IhMmI/rTgFAx3OKD37ekBYNuyhEhD94pAxEi4GO/XaNbfc1OywBUcKwj 1x3RpnOR3ogh/03mPUwIC8TmTeFZ9kqqUdCocGNmoE+F/ncWkE/T/d21pU+fjcRgWgrI oykM//Mnigf+w/74v+gUtytL4PA3kvrHIQ1ssM3LETlgLI4g2DwK4c/Y83wNUyUKftYh BgCStf0gm0YyjNOh2p6GT2N8+dXYDdGaoQReNyUudRNhYrwDfBQlJj/FW8+EZo+RIhr0 pO7AbmdR08mZbOCLMqlRojD2tuM+cuyastf/vfU5lOXwdin//KjOBpE9VjFZpa3mjhFc 7yYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=Vqdgm+vJLyV7ayDcUBT8ygt6rFCk2zplwxYs1gmlnrs=; b=DIULoD09HbEB7j/Tfsv8DRPo3n5RzppHDJ9esDrmKn/ad04Nudg1+vYDzqdR3N01By iMC6DAIHwvGrz7xxXQmW+xFsUhZog6e0l+fenKjI0A+9/ep8i53wQ3gsu9NHGlGhzu1c 36rWorKKRwLMR/DwMz5uJL88hLaY4l0wT0RJePhESEGUoFh36sB7qlP/BuinWUwMyXx9 2BmmEYmicEfJ6AYtLwSUNM/cGWSSLFwXqxFffGsO1y6QkZdKHgcnBhk1hmdF6SN21Kse FGaJ+RlWSzRsPapicEVQu1cqlcoyPiPfBRBZ9xx+GO87vZdQ9TfPG2kq2EtN1tHriEYV Yzyg== X-Gm-Message-State: AHYfb5jlAgwhLX/+nM4by1x6fFh9lS08BIpCLPp7hVJTzq94Kpi70sAa BlhKiVkD/gRBgjIK X-Received: by 10.101.73.72 with SMTP id q8mr1575911pgs.219.1502889231889; Wed, 16 Aug 2017 06:13:51 -0700 (PDT) Original-Received: from calancha-pc (170.224.128.101.dy.bbexcite.jp. [101.128.224.170]) by smtp.gmail.com with ESMTPSA id t12sm3512363pgo.46.2017.08.16.06.13.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Aug 2017 06:13:51 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: <87fucrzprw.fsf@users.sourceforge.net> 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: 208.118.235.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:135811 Archived-At: On Wed, 16 Aug 2017, npostavs@users.sourceforge.net wrote: > Tino Calancha writes: > >> + (replace-regexp-in-string >> + ",\\`" "" > > This regex doesn't match anything, did you mean \\' at the end? Yes, you are right. I wanted to drop comma at the end. >> (defun tar-grind-file-mode (mode) >> "Construct a `rw-r--r--' string indicating MODE. > >> +MODE should be an integer which is a file mode value. >> +For instance, if mode is 448, then it produces `rwx------'." > > IMO, it's clearer if you write #o700 instead of 448 here, perhaps in the > code too. Yeah, for those people not having nbc.el (num-base-converters) might be easier to follow. Opps, i am the only one having nbc.el! :-)