From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: JS Newsgroups: gmane.emacs.help Subject: Re: How to change keys for uncomment (C-u C-c C-c)? Date: Fri, 22 Apr 2005 10:22:55 +0200 Organization: UNI-C Message-ID: References: <877jiwrvuc.fsf@robotron.ath.cx> <87is2gq7i1.fsf@robotron.ath.cx> <87ekd4q6bn.fsf@robotron.ath.cx> <87acnrrik8.fsf@robotron.ath.cx> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1114159205 31910 80.91.229.2 (22 Apr 2005 08:40:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Apr 2005 08:40:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 22 10:40:04 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOthQ-0006mz-Tc for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Apr 2005 10:39:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOtmI-0000TV-DM for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Apr 2005 04:44:46 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!news.glorb.com!uio.no!uninett.no!news.net.uni-c.dk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-NNTP-Posting-Host: 130.225.245.182 Original-X-Trace: news.net.uni-c.dk 1114158077 9774 130.225.245.182 (22 Apr 2005 08:21:17 GMT) Original-X-Complaints-To: usenet@news.net.uni-c.dk Original-NNTP-Posting-Date: Fri, 22 Apr 2005 08:21:17 +0000 (UTC) User-Agent: KNode/0.7.7 Original-Xref: shelby.stanford.edu gnu.emacs.help:130358 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25929 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25929 David Hansen wrote: > On Thu, 21 Apr 2005 21:55:27 +0200 JS wrote: > >> I have just tried C-h k M-; and it gives me: >> >> >> M-, runs the command tags-loop-continue > > [...] > >> On my keyboard I get ";" by pressing Shift-, >> >> If I try to press M-shift-, nothing happens. > > And with C-h k before "M-shift-," (Holding down Alt *and* shift > and then ",")? > > Anyway, that's probably not a convenient key binding. You may as > well try: > > (global-set-key "\M-," 'comment-region) > > or get an US Keyboard ;) > > David When I do C-h k followed by "M-shift-," I get this: M-; runs the command comment-dwim which is an interactive compiled Lisp function in `newcomment'. (comment-dwim ARG) Call the comment command you want (Do What I Mean). If the region is active and `transient-mark-mode' is on, call `comment-region' (unless it only consists of comments, in which case it calls `uncomment-region'). Else, if the current line is empty, insert a comment and indent it. Else if a prefix ARG is specified, call `comment-kill'. Else, call `comment-indent'. So I guess it should work. I have some commented text that I select with the mouse. The I press "M-Shift-," but nothing happens. I have then changed the value for transistent-mark-mode to "on" and now it seems to work, but now everything gets painted in yellow when I use -space...but I guess it ok.