Commit graph

3469 commits

Author SHA1 Message Date
Rob Pike
49ccc80e8c font/lucsans: fix reference to supsub.9
The euro files refer to the version in ../lucm/supsub.9 but unicode.9x24
was missing the ../lucm

Change-Id: I1a3237a3ea5271426cc53243785229634a843146
Reviewed-on: https://plan9port-review.googlesource.com/1350
Reviewed-by: Russ Cox <rsc@swtch.com>
2015-08-26 00:50:52 +00:00
Gleydson Soares
71de840f05 upas/nfs: search for stunnele3 in $PATH
Do not hardcode stunnel directory path, just make sure that is installed
in user '$PATH'. it is required for 'mailfs -t' TLS support, so printout
an error string if it was not found.

Tested with latest stunnel version 5.17 on OpenBSD and macosx.

% mailfs -t imap.gmail.com ; echo $?
0

Change-Id: Icbd507c7efa81ef2aa7aed37bec5f639b37526cb
Reviewed-on: https://plan9port-review.googlesource.com/1280
Reviewed-by: Russ Cox <rsc@swtch.com>
2015-06-29 02:25:42 +00:00
Aram Hăvărneanu
3f1c876e14 all: linux/arm64 port
Really trivial port.

Change-Id: Ib2e3ad48df555ca4bd9339ddf79a832be895bd95
Reviewed-on: https://plan9port-review.googlesource.com/1030
Reviewed-by: Russ Cox <rsc@google.com>
2015-06-03 15:34:38 +00:00
David du Colombier
7a6f3d9d6d libregexp: fix copy-paste error
Change-Id: I042d63ea62e2abd599bf9767acb3374bb39ddc7d
Reviewed-on: https://plan9port-review.googlesource.com/1050
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Russ Cox <rsc@google.com>
2015-06-03 15:34:13 +00:00
Aram Hăvărneanu
37d81a2915 all: linux/mips port
Change-Id: I0af67bc44c7bb62a8e5a47eac597367f521f1c11
Reviewed-on: https://plan9port-review.googlesource.com/1210
Reviewed-by: Russ Cox <rsc@google.com>
2015-06-03 15:34:06 +00:00
Aram Hăvărneanu
0c2926638b all: fix openbsd build
Change-Id: I6eaeebc9b6a4d78ce07efe7680ba8f2eff16462f
Reviewed-on: https://plan9port-review.googlesource.com/1230
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Russ Cox <rsc@google.com>
2015-06-03 15:31:44 +00:00
mischief
bab43f07d3 keyboard.h: add some missing key enums from Plan 9
Change-Id: I0d8b94037309b15f839588c6547acaaaf3e2ed4d
Reviewed-on: https://plan9port-review.googlesource.com/1151
Reviewed-by: Russ Cox <rsc@google.com>
2015-06-03 15:31:35 +00:00
Sergiusz Urbaniak
fdf6ef3337 acme: add focus change to log
Currently new, put and del events are being logged.
This patch adds a focus event to the log
whenever the user changes the focus to another window.

This lets programs react to files being edited in acme
without the need of being restarted.

Change-Id: Idf35c0d7dbfca30e79724dc9f49e44c6a4eb6a1e
Reviewed-on: https://plan9port-review.googlesource.com/1140
Reviewed-by: Russ Cox <rsc@google.com>
2015-06-03 15:31:21 +00:00
marius a. eriksen
d52bdd3356 devdraw: plumb drag-n-dropped files
Change-Id: I7585870aee57c7482ebdd19c117be7982123ce79
Reviewed-on: https://plan9port-review.googlesource.com/1130
Reviewed-by: Russ Cox <rsc@google.com>
2015-06-03 15:26:27 +00:00
Gleydson Soares
25822e8da3 libdraw, acme: fix acme segfault triggered passing an invalid font
acme -f nosuchfont

Change-Id: Iaa727db02b43e63082130796ec97c0efb7fe2b19
Reviewed-on: https://plan9port-review.googlesource.com/1220
Reviewed-by: Russ Cox <rsc@swtch.com>
2015-05-15 02:30:27 +00:00
Russ Cox
3aca22118d fontsrv: fix x11 build
Change-Id: I60eca10d7749ec71dc2ffbb0fbde564a1b711fa1
Reviewed-on: https://plan9port-review.googlesource.com/1180
Reviewed-by: Russ Cox <rsc@swtch.com>
2015-02-18 14:46:24 +00:00
Russ Cox
b3a110affa man: document font syntaxes
Change-Id: Id441d4df192c47388af6b5da306f14d90f066d18
Reviewed-on: https://plan9port-review.googlesource.com/1173
Reviewed-by: Russ Cox <rsc@swtch.com>
2015-02-17 20:53:15 +00:00
Russ Cox
4eac378eba devdraw: enable retina behavior by default on OS X
Change-Id: I243a1fe3f9ec0841570c4cd69c02be9cfd9ade50
Reviewed-on: https://plan9port-review.googlesource.com/1172
Reviewed-by: Russ Cox <rsc@swtch.com>
2015-02-17 20:52:59 +00:00
Russ Cox
79555a9987 libdraw: refine hidpi font selection
Change-Id: Id1e6a2630713024a1925ad1341bb9c846f82e93e
Reviewed-on: https://plan9port-review.googlesource.com/1171
Reviewed-by: Russ Cox <rsc@swtch.com>
2015-02-17 20:52:06 +00:00
Russ Cox
213fc4f6fb libdraw: autoscale fonts when moving between low and high dpi screens
Change-Id: I6093955b222db89dfe437fb723593b173d888d01
Reviewed-on: https://plan9port-review.googlesource.com/1170
Reviewed-by: Russ Cox <rsc@swtch.com>
2015-02-17 20:51:23 +00:00
Russ Cox
77f23268f7 libdraw: add 2*font syntax for scaled fonts
An experiment.

Change-Id: I40660a211b8372701597d80f7e86917e94cccbaa
Reviewed-on: https://plan9port-review.googlesource.com/1161
Reviewed-by: Russ Cox <rsc@swtch.com>
2015-02-17 05:58:37 +00:00
Russ Cox
32dc15fa62 fontsrv: use CoreText API on OS X
This gets us font fallback for free and avoids use of a
deprecated API that might go away some day.

Change-Id: I4b9b1a1ce3e6d98bfb407e3baea13f4adfe2c26a
Reviewed-on: https://plan9port-review.googlesource.com/1160
Reviewed-by: Russ Cox <rsc@swtch.com>
2015-02-17 05:00:09 +00:00
Russ Cox
5d86ecd4b7 CONTRIBUTING.md: fix link to codereview(1)
Change-Id: I259a397398776bf9a172f1f4ed69e608166f35fb
Reviewed-on: https://plan9port-review.googlesource.com/1097
Reviewed-by: Russ Cox <rsc@swtch.com>
2014-12-02 03:14:40 +00:00
Ethan Burns
d67a3d3083 fontsrv: disable X11 hinting
Discussion at:
https://groups.google.com/d/topic/plan9port-dev/L7RVkXPmrdY/discussion
https://github.com/9fans/plan9port/pull/7

Change-Id: I4f3a6791436120388ad8798e519f5e8473dd9306
Reviewed-on: https://plan9port-review.googlesource.com/1095
2014-12-02 01:51:11 +00:00
Merlijn Wajer
9bcee1f034 9pfuse: Disable glibc workaround for O_LARGEFILE on ARM
9pfuse fails on ARM when O_LARGEFILE is supported.
glibc does define O_LARGEFILE properly on ARM,
and the value is different than what that this workaround suggests,
causing it to wrongly detect bad flags.

Change-Id: I02b0cc222ca7785c4b1739c3df3caa17cf7bc265
Reviewed-on: https://plan9port-review.googlesource.com/1094
Reviewed-by: Russ Cox <rsc@swtch.com>
2014-12-02 01:46:43 +00:00
Russ Cox
709ba3c465 install.txt: regenerate (9 man 1 intro >install.txt)
Change-Id: I80331732ce955d5b025a3552d15c6d7494752bf6
Reviewed-on: https://plan9port-review.googlesource.com/1093
Reviewed-by: Russ Cox <rsc@swtch.com>
2014-12-02 01:24:34 +00:00
Russ Cox
fff818fe87 libdraw, libframe, acme: fix, guard against inverted range in textsetselect
Credit to Roi Martin <jroi.martin@gmail.com> for noticing that
libdraw was being passed a negative string length and for finding the
sequence of keystrokes that make acme do it reproducibly.

Change-Id: If3f3d04a25c506175f740d3e887d5d83b5cd1bfe
Reviewed-on: https://plan9port-review.googlesource.com/1092
Reviewed-by: Russ Cox <rsc@swtch.com>
2014-12-02 01:18:40 +00:00
Roi Martin
d3a47e14e5 devdraw: fix title and "open in top" on OS X
On OSX 10.10, when you open an application that depends on devdraw, the
title bar only shows the first letter of the application's name. The
patch sets a default title as soon as the window is created, which
fixes this issue.

On OSX 10.10, when you open an application that depends on devdraw, this
application is opened in top of other windows, however the menu bar is
not updated. The patch calls topwin() at the end of makewin() in
src/cmd/devdraw/cocoa-screen.m .

Change-Id: Ie036928b5574c8df20ad8b2b54047e2f7a22bb41
Reviewed-on: https://plan9port-review.googlesource.com/1091
Reviewed-by: Russ Cox <rsc@swtch.com>
2014-12-02 00:51:49 +00:00
Russ Cox
679d176fea CONTRIBUTING.md: add message about pull requests
Change-Id: Id3f1f8e16bbbaa99ead6d227c0b3dade9727ec61
Reviewed-on: https://plan9port-review.googlesource.com/1090
Reviewed-by: Russ Cox <rsc@swtch.com>
2014-12-02 00:20:22 +00:00
Russ Cox
01463bacd0 codereview: use 'git branch -v' for pending
Change-Id: Ib80b19cf69a15860315b2d7a38baf3b05d693acc
2014-11-17 20:59:15 -05:00
Russ Cox
c9ed52730b cmd: rename *.C to *.c
These were *.C back in 2003, before the 9 script, to avoid conflicts
with the system utilities. A later change renamed them, but that
change seems to have been lost during the hg->git conversion
because I ran the conversion on a case-insensitive file system.

Change-Id: Id32c99cb9571ef0e185c3cc9e8c8d6d5b48ca195
2014-11-17 11:21:06 -05:00
Russ Cox
08e793723c man: more Mercurial references changed to Git
Change-Id: I940a21d67b21b5dd139cb20b9fae9595506fc5ae
2014-11-16 22:00:17 -05:00
Russ Cox
0edb04685b codereview: make commit -a the default; warn about uncommitted changes at upload
also update README.md for github

Change-Id: I7d578a902ffed7f6d69780721e29a1972b6f6992
2014-11-16 21:48:16 -05:00
Russ Cox
294f22a470 README: rename to README.md, add markdown for github
Change-Id: I2e644aa2d693692f33d017c00367a734039532f1
2014-11-16 21:36:20 -05:00
Russ Cox
32f3c4ade4 codereview: fix a few bugs
Change-Id: Ifd9fda05e15c9e1e106ffd4e30e1dafe8423cdf4
2014-11-16 21:28:05 -05:00
Russ Cox
95fee1d42e all: update for Git
- rewrite .gitignore to use git patterns
- mv hg(1) to git(1) and rewrite
- add lib/git/commit-msg.hook
- add skeleton codereview script
- update codereview(1)

Change-Id: I061cd8e4de77ebbd6037a7c5d1582cd1d986f62f
2014-11-16 21:21:28 -05:00
Russ Cox
58d8f6c7ba Delete .cvsignore. It is time.
Change-Id: I3ed51b54252307f387f71955bbf547928bf26b5b
2014-11-12 17:38:21 -05:00
Russ Cox
4bd5168c6f Convert .hgignore to .gitignore. 2014-11-10 23:49:47 -05:00
Russ Cox
de00349cf7 Remove .hgtags. 2014-11-10 23:49:47 -05:00
David du Colombier
734ca6356b INSTALL: fix path of quote1 and quote2
Thanks to Akshat Kumar for reporting this issue.

LGTM=seed, rsc
R=rsc, seed
https://codereview.appspot.com/173770043
2014-11-07 22:52:31 +01:00
David du Colombier
6c7443a653 fix clang 3.4 warnings and ignore uninteresting ones
fixed warnings:
src/cmd/fossil/disk.c:37:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
src/cmd/fossil/disk.c:38:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
src/cmd/fossil/disk.c:39:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
src/cmd/fossil/disk.c:40:13: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
src/cmd/fossil/disk.c:41:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
src/libndb/ndbreorder.c:41:55: warning: for loop has empty body [-Wempty-body]

ignored warnings:
src/cmd/acid/dbg.y:393:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/bc.y:1327:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/bc.y:1327:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/grep/grep.y:420:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/grep/grep.y:420:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/hoc/hoc.y:692:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/hoc/hoc.y:692:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/lex/parser.y:886:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/rc/syn.y:303:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/units.y:1003:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/libregexp/regcomp.c:19:16: warning: variable 'reprog' is not needed and will not be emitted [-Wunneeded-internal-declaration]

LGTM=rsc
R=rsc
https://codereview.appspot.com/158250043
2014-10-21 14:22:12 +02:00
Russ Cox
2763a6d832 venti/copy: fix bug writing directories that zero truncate
Found by nwf.

TBR=rsc
https://codereview.appspot.com/162860045
2014-10-21 07:25:13 -04:00
Russ Cox
72197f89d4 col: import from plan 9, by popular demand
TBR=rsc
https://codereview.appspot.com/158240043
2014-10-20 20:41:41 -04:00
David du Colombier
fd3496d3ef 9l: link with -lresolv on Linux
LGTM=rsc
R=rsc
https://codereview.appspot.com/136520044
2014-10-20 22:21:43 +02:00
David du Colombier
738e890b19 vbackup: fix compilation on NetBSD (thanks Álvaro Jurado)
On NetBSD 5.0 and upper, mount() require
data_len as a fifth argument.

LGTM=rsc
R=rsc
CC=elbingmiss
https://codereview.appspot.com/111600043
2014-08-06 14:43:21 +02:00
Aram Hăvărneanu
a9e0d2b6c4 CONTRIBUTORS: add Aram Hăvărneanu
LGTM=rsc
R=rsc
CC=plan9port-dev
https://codereview.appspot.com/119500043
2014-08-06 15:37:41 +03:00
Aram Hăvărneanu
c0ae8e760c g: search in *.s files
LGTM=rsc
R=rsc
CC=plan9port-dev
https://codereview.appspot.com/115100043
2014-08-06 15:36:38 +03:00
Russ Cox
f5ae255cc3 mc: use $termprog to identify 9term
TBR=rsc
https://codereview.appspot.com/112890043
2014-07-09 10:26:09 -04:00
David du Colombier
32c6e78c6c upas: fix nil pointer dereference
R=rsc
https://codereview.appspot.com/92650043
2014-06-05 18:46:28 +02:00
Russ Cox
c99867c9e0 upas/common: rename aux to auxx
TBR=rsc
https://codereview.appspot.com/107760043
2014-06-03 14:30:52 -04:00
Russ Cox
fbe3f344c1 build: rename " and "" to quote1 and quote2 for hg
They'll be copied back during installation
but then hg doesn't have to create those files
on systems that have trouble with them.

TBR=rsc
https://codereview.appspot.com/105800043
2014-06-03 14:29:06 -04:00
Russ Cox
50ababbd55 acme: fix bufread crash due to typing-point scrolling
Acme tracks the most recent typing insertion point and
the home and end keys stop there on their way
up to the top or down to the bottom of the file.
That point should be iq1, and it should be adjusted
properly so that it's always between 0 and t->file->b.nc inclusive.
(This is all code from an external contributor, years old at this
point but new since Plan 9.)

Somehow, sometimes iq1 ends up a little beyond b.nc,
and when passed to textbacknl it crashes acme in bufread.
I can't see how that can happen but if it does, avoid the crash.

It's tempting to pull the insertion point code out entirely
but this is a little less invasive and should fix things for now.

TBR=rsc
https://codereview.appspot.com/107730043
2014-06-03 00:16:48 -04:00
Russ Cox
6400c9f20c acme: increase timer resolution to 10ms
We ran for a long time with 10ms kernel resolution,
so 10ms user space resolution here should be fine.
Some systems actually provide 1ms sleeps, which
makes this polling use a bit more cpu than we'd like.
Since the timers are for user-visible things, 10ms should
still be far from noticeable.

Reduces acme's cpu usage on Macs when plumber is missing
(and plumbproc is sleeping waiting for it to appear).

LGTM=aram, r
R=r, aram
https://codereview.appspot.com/99570043
2014-06-03 00:09:29 -04:00
Russ Cox
113ea95f7b undo CL 69070045 / 8539a916d98a
This breaks ^C in win windows, as expected.
People use ^C, win expects and handles ^C,
so I don't think we can just take it away.

I've noticed that it is broken but assumed my ssh
was screwed up.

If you want to make WindowsKey+C,X,V do the
operations, by analogy with command+C,X,V
on Mac, that's fine with me.

««« original CL description
acme: copy/cut/paste with ctl+c,x,v

LGTM=rsc
R=rsc
CC=plan9port.codebot
https://codereview.appspot.com/69070045

»»»

TBR=rsc
CC=burns.ethan, r
https://codereview.appspot.com/96410045
2014-05-19 09:39:34 -04:00
David du Colombier
bae34df843 upas: fix warnings
smtp.c:232: warning: comparison with string literal results in unspecified behavior
smtp.c:244: warning: comparison with string literal results in unspecified behavior
marshal.c:1179: warning: variable ‘err’ set but not used

LGTM=rsc
R=rsc
https://codereview.appspot.com/93290043
2014-05-15 06:28:54 +02:00