From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: sbaugh@catern.com Newsgroups: gmane.emacs.bugs Subject: bug#66614: 29.1.50; Support not capitalizing words inside symbols Date: Sat, 21 Oct 2023 15:13:08 +0000 (UTC) Message-ID: <87sf64rou3.fsf@catern.com> References: <831qdrok34.fsf@gnu.org> <87cyxa6fwg.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35746"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Spencer Baugh , Eli Zaretskii , 66614@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 21 17:13:56 2023 Return-path: Envelope-to: geb-bug-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 1quDfn-00094A-Qr for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Oct 2023 17:13:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quDfU-0001C8-25; Sat, 21 Oct 2023 11:13:36 -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 1quDfS-0001BX-Hq for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 11:13:34 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1quDfS-000801-A7 for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 11:13:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1quDft-0001Bg-Ry for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 11:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: sbaugh@catern.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Oct 2023 15:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66614 X-GNU-PR-Package: emacs Original-Received: via spool by 66614-submit@debbugs.gnu.org id=B66614.16979012334540 (code B ref 66614); Sat, 21 Oct 2023 15:14:01 +0000 Original-Received: (at 66614) by debbugs.gnu.org; 21 Oct 2023 15:13:53 +0000 Original-Received: from localhost ([127.0.0.1]:44882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quDfg-0001B5-Tv for submit@debbugs.gnu.org; Sat, 21 Oct 2023 11:13:53 -0400 Original-Received: from s.wfbtzhsw.outbound-mail.sendgrid.net ([159.183.224.105]:48568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quDfb-0001Am-Gg for 66614@debbugs.gnu.org; Sat, 21 Oct 2023 11:13:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catern.com; h=from:subject:in-reply-to:references:mime-version:to:cc:content-type: content-transfer-encoding:cc:content-type:from:subject:to; s=s1; bh=b2lXnuvmEmNc/VkCqI/4l4TDN1hLy18Qfj2aM9T4+Rw=; b=0lAVxWnxzIKM6/XUbrv0CtNa4SsfGwEKyKlYmqAuz3TIScFFHbB5Q879AKlOX0rHVTnn tKhHeH3nmiOkfa5w68xMJEYsVZGaAg2V89GmCc6Pyv40wsQI9WHrVoVqlrxi5Db26PxgKu 3KMFbLQ1+34MASvul6vR8I0NJBC1Czvh9CB9dEDWzAyZoiHRYnuIMQYwSElsPA467S1fp/ cXgMQxqRgE14kK3r2jGn7jbt5By1ebfBDEuGZZN7jdg+Vei8s0bnhu9cL1zGmPezFFSMwO uS/oErRTjgNafJQAPHHBPJV0LIV3KNkEysbkeqcl5J7qHiKHF/j2043h8ZSzu+7A== Original-Received: by filterdrecv-6b68c9f446-wb9xt with SMTP id filterdrecv-6b68c9f446-wb9xt-1-6533EA84-35 2023-10-21 15:13:08.91451324 +0000 UTC m=+333133.267291372 Original-Received: from earth.catern.com (unknown) by geopod-ismtpd-6 (SG) with ESMTP id F6P-YvGASMCJTcQmHEl9WQ Sat, 21 Oct 2023 15:13:08.827 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=::1; helo=localhost; envelope-from=sbaugh@catern.com; receiver=yahoo.com Original-Received: from localhost (localhost [IPv6:::1]) by earth.catern.com (Postfix) with ESMTPSA id 701BE601BB; Sat, 21 Oct 2023 11:13:08 -0400 (EDT) In-Reply-To: <87cyxa6fwg.fsf@yahoo.com> (Po Lu's message of "Thu, 19 Oct 2023 18:54:55 +0800") X-SG-EID: ZgbRq7gjGrt0q/Pjvxk7wM0yQFRdOkTJAtEbkjCkHbIlGE8GshshM4Uifg7A6yF+pbB0H8HpCssK/GseYZPJIEMlS2uWPGZdXXmyDZFwHgD/+mav0JBfxyr+eSqoaIpHhjVfSoqQQQCzLPBQw7akiR7GVGlwAFgeFWexRa7zB8Gw3TrGPueHpdfTr0T5XpHug3aAyp2cbQqKGzqd5+bvHw== X-Entity-ID: d/0VcHixlS0t7iB1YKCv4Q== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272915 Archived-At: Po Lu writes: > Spencer Baugh writes: > >> + DEFVAR_BOOL ("case-symbols-as-words", case_symbols_as_words, >> + doc: /* If non-nil, case functions treat symbol syntax as part of words. >> + >> +Functions such as `upcase-initials' and `replace-match' check or modify >> +the case pattern of sequences of characters. Normally, these operate on >> +sequences of characters whose syntax is word constituent. If this >> +variable is non-nil, then they operate on sequences of characters whose >> +syntax is either word constituent or symbol constituent. >> + >> +This is useful for programming languages and styles where only the first >> +letter of a symbol's name is ever capitalized.*/); >> + case_symbols_as_words = 0; > > Incidentally: > > Let's not introduce further instances of the anti-pattern where the > ``doc:'' marker in DEFVAR constructs is aligned with its opening paren, > rather than two columns into the word DEFVAR itself. Generally, this > deprives you of latitude for the first line of the doc string, for you > are either compelled to contravene the 80 column limit or to render that > line exceptionally laconic, both of which are ultimately > counterproductive. > > TIA. I agree and I made this change, but if you want this style of indentation for doc: markers to be more common, then you should probably make c-indent-line-or-region do this. Right now if I indent a region it will re-indent the doc: marker to align with the opening paren.