From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Emacs adds extra lines when pasting whenever a # is found. Date: Sat, 04 Dec 2021 09:29:53 +0200 Message-ID: <83fsr87rpq.fsf@gnu.org> References: <4269e951-2fbe-1691-8e3e-f25a6c758121@barrett.com.au> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12931"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 04 08:31:43 2021 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 1mtPWI-0003AI-K1 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 08:31:42 +0100 Original-Received: from localhost ([::1]:48770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtPWH-00045V-3C for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 02:31:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtPUh-00042u-Ra for help-gnu-emacs@gnu.org; Sat, 04 Dec 2021 02:30:03 -0500 Original-Received: from [2001:470:142:3::e] (port=52062 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtPUh-0003JG-J2 for help-gnu-emacs@gnu.org; Sat, 04 Dec 2021 02:30:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=5vsuOduBsXN8nPiih9vqv+VLBHeUwqUIJLel3lpTKws=; b=NQXAjuDUlZ5z 5oJFLnY3nVZ0uY5/Sq+t/xbZF+PQuQoM9UeFyE9JD18L7j4rbS/39xEROxowRp9ZhSIm7I7LFRYm0 jkJpxSvtjuDRKgUeCveLevpbUaoKo0GbUSPqjFglmuGnCoxvOGjSNASHBU1SW6fAQuYSvhS92SzEA 04PUp7jylZAYpLTUyc3Rairv2un+iIzlgtK6ULOyuWuxNZkv0pMUdJKxhliBetGrq7DmAGHvOk++W Xy1xEUadnT2bgCLHrFDDJP6uahTmAIv/McMnDJI2wViCAIE5AwfuXgbh+elwcdBg9lC8WCILl3nTc 7sF4XVVV8hpiGreh9b+R2w==; Original-Received: from [87.69.77.57] (port=2446 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtPUg-0001kQ-9y for help-gnu-emacs@gnu.org; Sat, 04 Dec 2021 02:30:03 -0500 In-Reply-To: <4269e951-2fbe-1691-8e3e-f25a6c758121@barrett.com.au> (message from Jobst Schmalenbach via Users list for the GNU Emacs text editor on Sat, 4 Dec 2021 09:46:29 +1100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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:134830 Archived-At: > Date: Sat, 4 Dec 2021 09:46:29 +1100 > From: Jobst Schmalenbach via Users list for the GNU Emacs text editor > > - I have two XTERMS open > - I run xterms run on either the same host or different hosts > - in both xterms I run emacs > - in both emacs I have the same source files open: bash or php or etc > - if I copy text in one emacs then paste it into the other emacs it ADDS > an extra line whenever a '#' is found > - its annoying > > I have searched the Internet, I haven't found a solution yet. > > I am in the midst creating a new mail server. > When I copy/paste between two different hosts both having emacs editing > a sendmail.mc file it does not happen. > It quite happily pastes into the new sendmail.mc without adding extra > lines as a comment in sendmail.mc is preceeded by a 'dnl'. > > > Anybody got any ideas how I can stop the PASTING emacs adding extra line > whenever a # is found? Does this happen in "emacs -Q"? If not, one of your customizations is the culprit.