From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: How to get the ~ functionality of vi Date: Thu, 02 Jun 2016 17:28:59 +0000 Message-ID: References: <87shx44fbk.fsf@Equus.decebal.nl> <86h9dkfghn.fsf@student.uu.se> <87pos8p1js.fsf@elfie.nowhere.com> <87eg8n51ae.fsf@Equus.decebal.nl> <877fefg2h0.fsf@talkietoaster.mmweg.rwth-aachen.de> <86oa7j7brr.fsf@student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1464888589 6359 80.91.229.3 (2 Jun 2016 17:29:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jun 2016 17:29:49 +0000 (UTC) To: Emanuel Berg , Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 02 19:29:49 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b8WRI-0000Il-RC for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jun 2016 19:29:48 +0200 Original-Received: from localhost ([::1]:49472 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8WRI-00067R-1O for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jun 2016 13:29:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8WQi-00065O-Gx for help-gnu-emacs@gnu.org; Thu, 02 Jun 2016 13:29:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8WQg-0007CQ-E4 for help-gnu-emacs@gnu.org; Thu, 02 Jun 2016 13:29:11 -0400 Original-Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]:33951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8WQg-0007CM-9m for help-gnu-emacs@gnu.org; Thu, 02 Jun 2016 13:29:10 -0400 Original-Received: by mail-oi0-x22e.google.com with SMTP id e72so88395713oib.1 for ; Thu, 02 Jun 2016 10:29:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=UOHNqViCbQ5yoYCGmIZDoko7unEapMC9Nq9YWbMOj00=; b=Rff0Mkr7sZsNs5qwHMtWSloVj0O0b1F2PFCTGMPs6Lelm23eUfkfyZojM24B6UFN1D watLXnOlsSBy36z0IxS6KFtCSksICs7zVSMVmzsco01gIqEE7C7hX54R+1+ctDQ45nr1 a3aH5xsJNWwtco2u7pxes+yzqljJ06/b+vsjYPgkJlbFWzZs91r7qr45E75cPM2sAh7G 6UTCnmPdHqDE/rOApS0TC8Cbc5FRld5sWwWScXwAGhP2ksz8qs1zQneLmQCMiHBa58rn Haik5zTbK5OJtlb7jTleRYfTc0m3hkV8ElyB9tQBDxPrSsYhR1Ood+6/MPA+MzQKURjl KGWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=UOHNqViCbQ5yoYCGmIZDoko7unEapMC9Nq9YWbMOj00=; b=hZjn9LN8UhfjypphYarxmARiOyaZCdNOD/0LrdLAmNh+qpf0X6JUMR5m8Jgwnbk86/ BnEPnzxn/vxbxyFZl0vUnZSSLtY/IkJrQe5Vax0HUh7/ysyRsOWqK4hHLHg77KGfv2Z9 Lvwprg5KijdoEtBzWu5SwUowB7OZwUGdlo8Kq+IQwpjDSXr+hchNTPOQWM/CL1LQc5zI Te8fC9ijF4vvtYlMxhP6FR8dr7sR1fE6Cmj8mwiQUI45KjFADrZ2VFjYXrWE79PTXrsw NPWGhRJZiUC/JhrdkRFP3z+LWnhztXaRYzY7XFSGbzJJCX2YbQfaclQEkGuQn/d82zSG V9Tw== X-Gm-Message-State: ALyK8tJgFgCe0qCkYhiBhJBNsYaXItJLC+72F1ig8mMMYNN4lJZUy66GHmVT9xSpWf/ZxNEUPkgVs5hG36E3cA== X-Received: by 10.157.5.209 with SMTP id 75mr7377711otd.60.1464888549707; Thu, 02 Jun 2016 10:29:09 -0700 (PDT) In-Reply-To: <86oa7j7brr.fsf@student.uu.se> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::22e X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110263 Archived-At: On Thu, Jun 2, 2016 at 1:21 PM Emanuel Berg wrote: > That is sure a lot of code compared to the > previous suggestions. What does it add compared > to those? > It *cycles* the word under point (or region) through all-lowercase, all-uppercase, and capitalized. Also allows the user to directly set that text to all-lower/all-upper/all-capitalize. Also if the text is already all-lower, it will cycle to the next state intelligently. If it is all-upper to begin with, the next state to cycle to will be different. Most of the time, I end up using the hydra bindings. If I am too lazy, I keep on hitting `M-c` (as per my hydra-binding in my earlier email) till I get the text in the desired case state. -- -- Kaushal Modi