From unknown Sat Jun 21 03:16:27 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#39624 <39624@debbugs.gnu.org> To: bug#39624 <39624@debbugs.gnu.org> Subject: Status: 26.3; Inserting text in a specified face Reply-To: bug#39624 <39624@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:16:27 +0000 retitle 39624 26.3; Inserting text in a specified face reassign 39624 emacs submitter 39624 Greg Hill severity 39624 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 15 16:46:31 2020 Received: (at submit) by debbugs.gnu.org; 15 Feb 2020 21:46:31 +0000 Received: from localhost ([127.0.0.1]:36518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j35Gh-0006AH-0F for submit@debbugs.gnu.org; Sat, 15 Feb 2020 16:46:31 -0500 Received: from lists.gnu.org ([209.51.188.17]:60182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j34rA-0005TK-Ne for submit@debbugs.gnu.org; Sat, 15 Feb 2020 16:20:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49832) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j34r9-0000za-8k for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2020 16:20:08 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j34r7-0005um-Ry for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2020 16:20:07 -0500 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:56163) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j34r7-0005qy-JZ for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2020 16:20:05 -0500 Received: by mail-pj1-x1034.google.com with SMTP id d5so5494629pjz.5 for ; Sat, 15 Feb 2020 13:20:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=JdZcTqmFJgCDGvoZrdC3t0pIQH3N4Gl7rjO8sAUcX7M=; b=LhhIYUL9aCIB5kTJN+Wngxwn1tnk0VgtEjwaeVrjlp7rishkJW5BGZVBYQsmb69bLN Hh+3QZCQZMGmdeOHPv2/t+GhaLhkrml/dDyZ7gJN9cKhre2JEMWzl8P5Mo8fol8ZFEVg vdeGl/80Y6thMKegna5cyn3LeQz3YJQwJrJfou7gLH1vQDtyHVuPDT4E2pI95PFn7pqC ON3/n3l1OzgeJ1kby53odiXtQDy6rmn1pawcxZcvgjXkCZCpMik+KzkY5nxQDEmoDru+ SC5dJs528Jwd/wJtzTJPl3ckiCDVcVZMECRxNpDgld4xlwP57BrvFR+biLT7XPgODvn+ 2dnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=JdZcTqmFJgCDGvoZrdC3t0pIQH3N4Gl7rjO8sAUcX7M=; b=mDGIikbGidA70ssOLLTq2QRHet/GTHuoQVcbi29KwbeL7lP1kAreMuJvic99XWlwTZ BtWZnxOFmzDCLSW40V1s7bu2BdB88vm20G9eATdTbPf9BXxIk5uEOtJYcncTTWopu2J8 qgJ9AgTVugoGOH6EOLGsG99H6fuC17VaDrsiqkrOTC5s70TdGE31I3YeDxlgt2APn246 +eo2I9HxEVePe0UfVXftwhhV2dgnd9pUP1dNyhpjAxjwIwwPIk4JMaNl4ZxPpW1ugV6g /4Teqcm8PxNJaGoEFX5+IskD++YR71HUFgAOGGdai8S/8J8f1vsD/mWwew6ApctQ2CYR mw9Q== X-Gm-Message-State: APjAAAVt6OUjY2BEP6EdqiggwgGFBDR+6m4lKWNPq9ZPcVdZ3gG+LrMd 9WTsOihdNkIHumlpHC7UjxzDeBJa X-Google-Smtp-Source: APXvYqzC4cJRM3AuosQnGRX508XNIi2l/f0swP397VjiXIwZY9GDPPBIEmBsaWccjFLNgp26AxA+IA== X-Received: by 2002:a17:902:302:: with SMTP id 2mr9714399pld.58.1581801603496; Sat, 15 Feb 2020 13:20:03 -0800 (PST) Received: from [192.168.1.3] (ip174-65-58-229.sd.sd.cox.net. [174.65.58.229]) by smtp.gmail.com with ESMTPSA id r62sm11372870pfc.89.2020.02.15.13.20.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Feb 2020 13:20:02 -0800 (PST) From: Greg Hill Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: 26.3; Inserting text in a specified face Message-Id: <79CCB225-06A3-40F0-A9C7-F5FE1A74165B@gmail.com> Date: Sat, 15 Feb 2020 13:20:01 -0800 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3445.9.1) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::1034 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 15 Feb 2020 16:46:29 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) I'm just trying to figure out how to use the 'insert' function to insert one string in the currently active buffer in a specific face like 'custom-comment'). I'm sure it's easy to do, but I have spent several hours searching through all the Info documentation and haven't found a single clue. If I could figure out how to do it, I would write my own function like '(insert-using-face STRING FACE)' if no existing function does that. In GNU Emacs 26.3 (build 1, x86_64-apple-darwin14.5.0, NS appkit-1348.17 = Version 10.10.5 (Build 14F2511)) of 2019-09-02 built on builder10-10.porkrind.org Windowing system distributor 'Apple', version 10.3.1561 Recent messages: Starting new Ispell process ispell with default dictionary... apply: Searching for program: No such file or directory, ispell Quit [2 times] Starting new Ispell process ispell with default dictionary... apply: Searching for program: No such file or directory, ispell Quit "Blue1" Auto-saving...done Mark saved where search started Mark set mwheel-scroll: Beginning of buffer [46 times] Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Info Minor modes in effect: save-place-mode: t tooltip-mode: t global-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. Features: (ispell ibuf-ext ibuffer ibuffer-loaddefs pp shadow sort mail-extr emacsbug message rmc puny seq 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 view tildify table rst rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-util nxml-enc xmltok refer refer-to-bibtex refbib printing picture noutline outline easy-mmode nroff-mode disp-table enriched ebnf2ps ps-print ps-print-loaddefs ps-def lpr delim-col bib-mode cus-edit wid-edit color two-column iso-transl rect delsel kmacro cl-print byte-opt gv bytecomp byte-compile cconv debug completion dos-w32 find-cmd grep compile comint ansi-color ring find-dired dired dired-loaddefs misearch multi-isearch mode-local find-func thingatpt help-fns radix-tree apropos warnings saveplace cus-start cus-load cl-seq cl-extra help-mode elec-pair jka-compr info easymenu desktop frameset cl-loaddefs cl-lib time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win 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 threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 449106 71432) (symbols 48 29014 3) (miscs 40 944 1252) (strings 32 67655 2467) (string-bytes 1 5282950) (vectors 16 45812) (vector-slots 8 840469 39428) (floats 8 559 529) (intervals 56 38870 11) (buffers 992 35)) From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 15 18:25:03 2020 Received: (at 39624) by debbugs.gnu.org; 15 Feb 2020 23:25:03 +0000 Received: from localhost ([127.0.0.1]:36582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j36o2-0003yN-R3 for submit@debbugs.gnu.org; Sat, 15 Feb 2020 18:25:03 -0500 Received: from mout.gmx.net ([212.227.15.15]:42969) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j36o0-0003xq-Jo for 39624@debbugs.gnu.org; Sat, 15 Feb 2020 18:25:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1581809093; bh=KjzX8jG9PK5NWt/HNc+HLlgXHGKbAxa5dGW4gPTZQJE=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=dwkLiD5RFNn5VsPAcrdsw/NGEfbooQ+oTI98BuSTRkY+EI4CWKQjl5m+VRm5VxdiY H1yzuHxejs96PE4FTaeBaeaEv4jnqw9Rbm+1vLBfgza3QyaidN+OVCTn6bCwVF7fwX 15XOWpG2DQAJeGzX/HkHuxN0epi2Jfmittgs4Sjo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-lfs84 ([188.109.162.71]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1McYCl-1jbbXr2RoL-00d1Su; Sun, 16 Feb 2020 00:24:53 +0100 From: Stephen Berman To: Greg Hill Subject: Re: bug#39624: 26.3; Inserting text in a specified face References: <79CCB225-06A3-40F0-A9C7-F5FE1A74165B@gmail.com> Date: Sun, 16 Feb 2020 00:24:49 +0100 In-Reply-To: <79CCB225-06A3-40F0-A9C7-F5FE1A74165B@gmail.com> (Greg Hill's message of "Sat, 15 Feb 2020 13:20:01 -0800") Message-ID: <87pnefl9ha.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:PybE2dAW/lbg7XfGloY7MrHoPTCgZ7dlV11kokgA+rqrpG/qN5/ wGSMlR6lhQUNV0i2vqHdJV5oLhTC5LhqCRFOdL8GNAWciJ/bKx5/anIccKwKzhBLJdj8WI0 OyFNCiv0zkhVuKxexR6xbZ83bUSPQtvVucLoPogPFfzyuC1ss1GxurCThSelikoVvqAdU4u trRCAyYH+asKeLyeqsjBQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Sb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4epjOTyGdBEgImOfSngTOmre2kZTgijchOLfvjRy4J/4esDefz350Pf c+4hur+wOXtw0edRcgxUN0OWhobaynlk5l38xKszQ4paJ+SI/7rBEmxS7qFXKe/dEzAM+FvOD U0YwEOGdxcVTdZcDPwNez0HLpuxRtAO2P95SQKlVN6K9wKRvqDi6wxzumUDx51sI/zWf803Uo WjYNwgK9IElREZoJO Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39624 Cc: 39624@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sat, 15 Feb 2020 13:20:01 -0800 Greg Hill wrot= e: > I'm just trying to figure out how to use the 'insert' function to insert > one string in the currently active buffer in a specific face like > 'custom-comment'). I'm sure it's easy to do, but I have spent > several hours searching through all the Info documentation and haven't > found a single clue. Here's one way: (insert (propertize "Test" 'face 'custom-comment)) And here's how you might have found that in the documentation: If you look in the Elisp manual at the node Faces, it says: "One way to represent a face is as a property list of attributes", and if you look at the node Insertion, it says that most of the insertion functions "copy text characters from strings and buffers along with their properties". So properties are a point of intersection between faces and insertion. In the Elisp node Text Properties there is a menu that contains the entry Changing Properties with the description "Setting the properties of a range of text", which seems to be what you're looking for. And indeed, the node Changing Properties describes the function propertize, saying it is "the easiest way to make a string with text properties". Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 20 12:52:17 2020 Received: (at 39624-done) by debbugs.gnu.org; 20 Feb 2020 17:52:17 +0000 Received: from localhost ([127.0.0.1]:45821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4pzl-000054-23 for submit@debbugs.gnu.org; Thu, 20 Feb 2020 12:52:17 -0500 Received: from mout.gmx.net ([212.227.17.22]:37089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4pzi-0008WT-FS for 39624-done@debbugs.gnu.org; Thu, 20 Feb 2020 12:52:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1582221128; bh=SgmMJmZhPkd0WKBftFLzSLEYivlwMC4O0YYKVgtiXSI=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=VjfVe2IOlS4MCkCdAnveNc0g1V98f9oyEwl/Fgh6UY8aVP9Om8BSbhKW7eLon0tGG hmQ6PpvnJJh8qLwTOBnAWR89KbP9SKish+QDwYCLGVDGNUDJWV7xKyQdWgMh3J28bL WAj1gXUZJQG7ffnrKkgbkHHAWikfBCSXf4b81wTE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-lfs84 ([178.6.212.58]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mf078-1jfZWf3a8o-00gaMw; Thu, 20 Feb 2020 18:52:07 +0100 From: Stephen Berman To: Greg Hill Subject: Re: bug#39624: 26.3; Inserting text in a specified face References: <79CCB225-06A3-40F0-A9C7-F5FE1A74165B@gmail.com> <87pnefl9ha.fsf@gmx.net> Date: Thu, 20 Feb 2020 18:52:07 +0100 In-Reply-To: <87pnefl9ha.fsf@gmx.net> (Stephen Berman's message of "Sun, 16 Feb 2020 00:24:49 +0100") Message-ID: <87blptrvso.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:f6tKgXCYICwg9HFvue6+1iILGaODOi4nS1l7XeecwabuMeei/dI 6KsabVeLnzYkPdzVfUqkKvOY6DYlIvNKqzHn5hHhYIWC1nNSZNuceQdpRM1BzRAgzBc/Xng R9dEXUhskByJx8GkDUSdQ8IRbTuA6Nb/6dZSw9dSTc4wggF70t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0ii3uNsA4sV76yuhI3zil2xC2P1+EqhBhlRGVDHeb1sz/pyn7T20NdPVPcY6TpUQjB3q697 63nYNFeim+cJ8z0CPMUbOjAoxqY6jB/t4xK+iT+mG/8AbBrgx7b1W5iRZcS5pvw1RfH44snbo PIcaxi4ka5ECnjeaBDfF0YrI8ab0LKZ0k0r6onx8xj1A7MQFIe2NJqF5AoXled8pxRuG4jxcP hxmniEXHI/PdqvsecC+Y60J3Lsw2TiP7U4yFHvd+DEx1qeFjR968a6axkOiO8NWuVfffY6Rxd jOv1y3MyZXJLMbI/a Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39624-done Cc: 39624-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) The OP confirmed to me off-list that this bug can be closed, so I'm doing so. On Sun, 16 Feb 2020 00:24:49 +0100 Stephen Berman = wrote: > On Sat, 15 Feb 2020 13:20:01 -0800 Greg Hill wr= ote: > >> I'm just trying to figure out how to use the 'insert' function to inser= t >> one string in the currently active buffer in a specific face like >> 'custom-comment'). I'm sure it's easy to do, but I have spent >> several hours searching through all the Info documentation and haven't >> found a single clue. > > Here's one way: > > (insert (propertize "Test" 'face 'custom-comment)) > > And here's how you might have found that in the documentation: If you > look in the Elisp manual at the node Faces, it says: "One way to > represent a face is as a property list of attributes", and if you look > at the node Insertion, it says that most of the insertion functions > "copy text characters from strings and buffers along with their > properties". So properties are a point of intersection between faces > and insertion. In the Elisp node Text Properties there is a menu that > contains the entry Changing Properties with the description "Setting the > properties of a range of text", which seems to be what you're looking > for. And indeed, the node Changing Properties describes the function > propertize, saying it is "the easiest way to make a string with text > properties". > > Steve Berman From unknown Sat Jun 21 03:16:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 20 Mar 2020 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator