From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Enabling mode for part of buffer / region Date: Thu, 23 Jan 2020 09:00:33 -0800 (PST) Message-ID: References: <87tv4mv5rg.fsf@winston.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="59496"; mail-complaints-to="usenet@ciao.gmane.io" To: Michael Anckaert , Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 23 20:29:05 2020 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 1iuiA4-000FRG-LI for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 23 Jan 2020 20:29:04 +0100 Original-Received: from localhost ([::1]:35754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuiA3-0001ds-CT for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 23 Jan 2020 14:29:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45951) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iufqY-0002JT-BY for Help-gnu-emacs@gnu.org; Thu, 23 Jan 2020 12:00:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iufqX-0001A5-3s for Help-gnu-emacs@gnu.org; Thu, 23 Jan 2020 12:00:46 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:45642) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iufqW-00018m-Ql for Help-gnu-emacs@gnu.org; Thu, 23 Jan 2020 12:00:45 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00NGd58X047513; Thu, 23 Jan 2020 17:00:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=dUki4RCCcYo8BD9FS7Tpi2h/rq1NW+ia4NTIr4TTAY4=; b=CvC6AK+ualvGu+AJazUwhmPEY1/RLMl1Q8gmSp1Fs+t2lwPRGF1M7dirqGC7O/2YWGcU h/PcdqYQLZ5GBgRdJMKKmPGKakEHwPh50kDdAj3B9MoSQ+QQJvFOQebHjFkIgnI/6EoH 2StiKTunTrOEzVU9ED70Uv5rLDJysRbOv7xZe17tkO7d5grJ6iRDRkz+L4b/REK24fPT aNgEH6in4N3nLu3aTuRG6q6ZgIdXhMo6oAhdMh8RghUGCq6WLdQfJPfXN1VYdUuNfK4B qel7dRPa+dRpEL8sUN7EY+XyP0ZgUKUlmpyUXA3vPbuEo42UReIxpUGMEct4txBvudrJ zw== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 2xkseuusu7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 Jan 2020 17:00:41 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00NGcwur116354; Thu, 23 Jan 2020 17:00:40 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 2xppq7wth1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 Jan 2020 17:00:40 +0000 Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 00NH0bFM015292; Thu, 23 Jan 2020 17:00:37 GMT In-Reply-To: <87tv4mv5rg.fsf@winston.localdomain> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4954.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9509 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=672 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001230132 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9509 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=732 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001230132 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 156.151.31.86 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:122270 Archived-At: > Suppose I'm writing an email and would like to enable python-mode in > the email, but only for a selected part. > Is this possible in Emacs? Please clarify just what you want to do. If you are using Lisp code you can use `save-restriction', narrow to the buffer portion of interest, change the mode, etc. Perhaps that is sufficient? What is it that you really want to do?